1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 13:15:06 +00:00
serenity/Tests/LibWeb/Ref/css-invalid-var.html
Sam Atkins 240ec9aeed LibWeb: Treat invalid StyleValues that included var() as unset
This means StyleComputer::resolve_unresolved_style_value() always
returns a value, so we can change its return type.

However, it does still return an UnresolvedStyleValue sometimes, so we
can't remove those checks from the user code.
2023-08-26 15:33:45 +01:00

6 lines
126 B
HTML

<!doctype html><style>
div {
color: red;
color: var(--wat);
}
</style><div>This text should be black.