mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
LibWeb: Implement appearance
CSS property
This includes the "compat" values even though they are not strictly necessary.
This commit is contained in:
parent
b5febe538c
commit
d7d34d88e5
7 changed files with 78 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue