1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 02:38:13 +00:00

LibWeb: Parse and plumb the accent-color CSS property

This commit is contained in:
MacDue 2023-03-18 20:49:00 +01:00 committed by Sam Atkins
parent d005b1ad1b
commit 87b8a36e56
5 changed files with 26 additions and 0 deletions

View file

@ -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());