1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

LibWeb: Implement appearance CSS property

This includes the "compat" values even though they are not strictly
necessary.
This commit is contained in:
MacDue 2022-07-22 16:05:11 +01:00 committed by Andreas Kling
parent b5febe538c
commit d7d34d88e5
7 changed files with 78 additions and 0 deletions

View file

@ -431,6 +431,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
if (align_self.has_value())
computed_values.set_align_self(align_self.value());
auto appearance = computed_style.appearance();
if (appearance.has_value())
computed_values.set_appearance(appearance.value());
auto position = computed_style.position();
if (position.has_value())
computed_values.set_position(position.value());