mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 03:52:12 +00:00
LibWeb: Make things aware of box-sizing
Of course, we don't actually *use* the box-sizing property yet, but the value is applied and shows up in the computed style.
This commit is contained in:
parent
3c192f492a
commit
fc7af21c7c
6 changed files with 41 additions and 0 deletions
|
@ -223,6 +223,8 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
|
|||
m_background_image = bgimage.value()->as_image();
|
||||
}
|
||||
|
||||
computed_values.set_box_sizing(specified_style.box_sizing());
|
||||
|
||||
// FIXME: BorderXRadius properties are now BorderRadiusStyleValues, so make use of that.
|
||||
auto border_bottom_left_radius = specified_style.property(CSS::PropertyID::BorderBottomLeftRadius);
|
||||
if (border_bottom_left_radius.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue