mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
LibWeb: Handle float clearing specified on line break elements
This commit is contained in:
parent
0652cc48c0
commit
b12820c967
6 changed files with 60 additions and 9 deletions
|
@ -246,9 +246,15 @@ void InlineFormattingContext::generate_line_boxes(LayoutMode layout_mode)
|
|||
continue;
|
||||
|
||||
switch (item.type) {
|
||||
case InlineLevelIterator::Item::Type::ForcedBreak:
|
||||
case InlineLevelIterator::Item::Type::ForcedBreak: {
|
||||
line_builder.break_line(LineBuilder::ForcedBreak::Yes);
|
||||
if (item.node) {
|
||||
auto introduce_clearance = parent().clear_floating_boxes(*item.node);
|
||||
if (introduce_clearance == BlockFormattingContext::DidIntroduceClearance::Yes)
|
||||
parent().reset_margin_state();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case InlineLevelIterator::Item::Type::Element: {
|
||||
auto& box = verify_cast<Layout::Box>(*item.node);
|
||||
compute_inset(box);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue