summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-08-03 14:56:08 +0100
committerAndreas Kling <kling@serenityos.org>2021-08-14 12:45:01 +0200
commitdcbfb618169858dcea1a654505c55f72b6e277b7 (patch)
tree73ca58ae7589a2df4c5028a92afb103a1273ea77 /Base
parent59501f19404b709fc0b5d460284cc112e8122d97 (diff)
downloadserenity-dcbfb618169858dcea1a654505c55f72b6e277b7.zip
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.
Diffstat (limited to 'Base')
-rw-r--r--Base/res/html/misc/custom-properties.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/Base/res/html/misc/custom-properties.html b/Base/res/html/misc/custom-properties.html
index 87c341e85c..8ff9584355 100644
--- a/Base/res/html/misc/custom-properties.html
+++ b/Base/res/html/misc/custom-properties.html
@@ -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 {