mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00
LibWeb: Add parsing and application of CSS "overflow" property
We don't actually do anything with the values yet, but now they are available for layout nodes once we are ready to implement them.
This commit is contained in:
parent
42f582bf8b
commit
21371bf6ee
8 changed files with 85 additions and 0 deletions
|
@ -260,6 +260,14 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
|
|||
if (clear.has_value())
|
||||
computed_values.set_clear(clear.value());
|
||||
|
||||
auto overflow_x = specified_style.overflow_x();
|
||||
if (overflow_x.has_value())
|
||||
computed_values.set_overflow_x(overflow_x.value());
|
||||
|
||||
auto overflow_y = specified_style.overflow_y();
|
||||
if (overflow_y.has_value())
|
||||
computed_values.set_overflow_y(overflow_y.value());
|
||||
|
||||
auto text_decoration_line = specified_style.text_decoration_line();
|
||||
if (text_decoration_line.has_value())
|
||||
computed_values.set_text_decoration_line(text_decoration_line.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue