mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibWeb: Allow block children of inlines
Hey, why not. We did all the hard work for display:inline-block already and now we can just allow this. This makes <a><h1>Hello friends!</h1></a> work :^)
This commit is contained in:
parent
96da15a8a4
commit
308c3ccc44
2 changed files with 1 additions and 7 deletions
|
@ -154,11 +154,7 @@ LayoutDocument& LayoutNode::root()
|
|||
void LayoutNode::split_into_lines(LayoutBlock& container, LayoutMode layout_mode)
|
||||
{
|
||||
for_each_child([&](auto& child) {
|
||||
if (child.is_inline()) {
|
||||
child.split_into_lines(container, layout_mode);
|
||||
} else {
|
||||
// FIXME: Support block children of inlines.
|
||||
}
|
||||
child.split_into_lines(container, layout_mode);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue