summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2023-03-18 20:49:00 +0100
committerSam Atkins <atkinssj@gmail.com>2023-03-23 08:27:51 +0000
commit87b8a36e561aa19b68e5931780274de317815218 (patch)
treefd8a9d8838c8f9c04b46bd1c6c0eda98a6565c1d /Userland/Libraries/LibWeb/Layout
parentd005b1ad1b085fc1758854084609a9006c6df7f9 (diff)
downloadserenity-87b8a36e561aa19b68e5931780274de317815218.zip
LibWeb: Parse and plumb the `accent-color` CSS property
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout')
-rw-r--r--Userland/Libraries/LibWeb/Layout/Node.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp
index 317281516e..c93ede71f3 100644
--- a/Userland/Libraries/LibWeb/Layout/Node.cpp
+++ b/Userland/Libraries/LibWeb/Layout/Node.cpp
@@ -462,6 +462,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
if (justify_content.has_value())
computed_values.set_justify_content(justify_content.value());
+ auto accent_color = computed_style.accent_color(*this);
+ if (accent_color.has_value())
+ computed_values.set_accent_color(accent_color.value());
+
auto align_content = computed_style.align_content();
if (align_content.has_value())
computed_values.set_align_content(align_content.value());