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:
parent
62bc8590ad
commit
a8d08357c9
3 changed files with 31 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue