1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:37:35 +00:00

LibWeb: Parse "display: flex" and create BlockBox layout nodes for them

I'm not 100% sure that BlockBox is the right layout node for flex
containers, but it's the most obviously fitting one we already have.
This commit is contained in:
Andreas Kling 2021-01-18 17:32:34 +01:00
parent 6715ca3e16
commit 140463e833
5 changed files with 10 additions and 0 deletions

View file

@ -70,6 +70,7 @@
"dotted",
"double",
"fixed",
"flex",
"full-size-kana",
"full-width",
"groove",

View file

@ -410,6 +410,8 @@ CSS::Display StyleProperties::display() const
return CSS::Display::TableHeaderGroup;
case CSS::ValueID::TableFooterGroup:
return CSS::Display::TableFooterGroup;
case CSS::ValueID::Flex:
return CSS::Display::Flex;
default:
return CSS::Display::Block;
}

View file

@ -90,6 +90,7 @@ enum class Display {
TableColumn,
TableColumnGroup,
TableCaption,
Flex,
};
enum class WhiteSpace {