1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibWeb: Compute inset for relative positioned inline-block

This commit is contained in:
Emil Militzer 2023-04-28 11:44:21 +02:00 committed by Andreas Kling
parent 62bc8590ad
commit a8d08357c9
3 changed files with 31 additions and 0 deletions

View file

@ -256,6 +256,7 @@ void InlineFormattingContext::generate_line_boxes(LayoutMode layout_mode)
break;
case InlineLevelIterator::Item::Type::Element: {
auto& box = verify_cast<Layout::Box>(*item.node);
compute_inset(box);
line_builder.break_if_needed(item.border_box_width());
line_builder.append_box(box, item.border_start + item.padding_start, item.padding_end + item.border_end, item.margin_start, item.margin_end);
break;