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
commit 140463e833
Notes: sideshowbarker 2024-07-18 23:07:15 +09:00
5 changed files with 10 additions and 0 deletions

View file

@ -147,6 +147,8 @@ RefPtr<Layout::Node> Element::create_layout_node()
inline_block->set_inline(true);
return inline_block;
}
if (display == CSS::Display::Flex)
return adopt(*new Layout::BlockBox(document(), this, move(style)));
ASSERT_NOT_REACHED();
}