mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWeb: Add support for "display: contents"
This change makes tree builder omit elements with "display: contents" from the layout tree during construction. Their child elements are instead directly appended to the parent element in layout tree.
This commit is contained in:
parent
b91af3c6a0
commit
0e8a0a8191
5 changed files with 31 additions and 3 deletions
|
@ -5327,8 +5327,7 @@ ErrorOr<RefPtr<StyleValue>> Parser::parse_display_value(Vector<ComponentValue> c
|
|||
|
||||
// display-box
|
||||
case ValueID::Contents:
|
||||
// FIXME this should be Display::Short::Contents but contents is currently not implemented
|
||||
return Display::from_short(Display::Short::Flow);
|
||||
return Display::from_short(Display::Short::Contents);
|
||||
case ValueID::None:
|
||||
return Display::from_short(Display::Short::None);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue