mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
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.
This commit is contained in:
parent
6b66e80fb8
commit
240ec9aeed
5 changed files with 28 additions and 21 deletions
5
Tests/LibWeb/Ref/css-invalid-var-ref.html
Normal file
5
Tests/LibWeb/Ref/css-invalid-var-ref.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!doctype html><style>
|
||||
div {
|
||||
color: black;
|
||||
}
|
||||
</style><div>This text should be black.
|
Loading…
Add table
Add a link
Reference in a new issue