LibWeb: Handle float clearing specified on line break elements

This commit is contained in:
Andi Gallo 2023-07-19 23:44:40 +00:00 committed by Andreas Kling
commit b12820c967
Notes: sideshowbarker 2024-07-17 00:47:29 +09:00
6 changed files with 60 additions and 9 deletions

View file

@ -187,9 +187,11 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next(CSSPixels availabl
}
if (is<Layout::BreakNode>(*m_current_node)) {
auto& node = *m_current_node;
skip_to_next();
return Item {
.type = Item::Type::ForcedBreak,
.node = &node,
};
}