mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibWeb: Implement and use BackgroundStyleValue
This one represents one secton of a `background` property, since it can have multiple background values separated by commas. Eventually, we will represent that as a List of BackgroundStyleValues. Also modified some background-foo properties in StyleResolver so that the is_background_x() functions could be removed. I realized that our handling of var() in shorthand properties is wrong, so have been removing the is_builtin_or_dynamic() calls from the parsing code for shorthands. This broke our var() test page, so I have replaced the use of 'background' with 'background-color' there.
This commit is contained in:
parent
59501f1940
commit
dcbfb61816
5 changed files with 184 additions and 130 deletions
|
@ -13,7 +13,7 @@
|
|||
}
|
||||
|
||||
.test {
|
||||
background: var(--my-color);
|
||||
background-color: var(--my-color);
|
||||
}
|
||||
|
||||
.test-parent {
|
||||
|
@ -37,7 +37,7 @@
|
|||
}
|
||||
|
||||
.test {
|
||||
background: var(--my-color);
|
||||
background-color: var(--my-color);
|
||||
}
|
||||
|
||||
.test-parent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue