diff --git a/Tests/LibWeb/Layout/expected/details-closed.txt b/Tests/LibWeb/Layout/expected/details-closed.txt index 968cba8fc7..2aaa7a9271 100644 --- a/Tests/LibWeb/Layout/expected/details-closed.txt +++ b/Tests/LibWeb/Layout/expected/details-closed.txt @@ -3,12 +3,12 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (8,8) content-size 784x17.46875 children: not-inline BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline InlineNode
- ListItemBox at (37,8) content-size 755x17.46875 children: inline + ListItemBox at (32,8) content-size 760x17.46875 children: inline line 0 width: 114.625, height: 17.46875, bottom: 17.46875, baseline: 13.53125 - frag 0 from TextNode start: 0, length: 13, rect: [37,8 114.625x17.46875] + frag 0 from TextNode start: 0, length: 13, rect: [32,8 114.625x17.46875] "I'm a summary" TextNode <#text> - ListItemMarkerBox <(anonymous)> at (8,8.234375) content-size 17x17 children: not-inline + ListItemMarkerBox <(anonymous)> at (8,8.234375) content-size 12x17 children: not-inline BlockContainer <(anonymous)> at (8,25.46875) content-size 784x0 children: inline TextNode <#text> @@ -17,7 +17,7 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [8,8 784x17.46875] PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0] InlinePaintable (InlineNode
) - PaintableWithLines (ListItemBox) [37,8 755x17.46875] + PaintableWithLines (ListItemBox) [32,8 760x17.46875] TextPaintable (TextNode<#text>) - MarkerPaintable (ListItemMarkerBox(anonymous)) [8,8.234375 17x17] + MarkerPaintable (ListItemMarkerBox(anonymous)) [8,8.234375 12x17] PaintableWithLines (BlockContainer(anonymous)) [8,25.46875 784x0] diff --git a/Tests/LibWeb/Layout/expected/details-open.txt b/Tests/LibWeb/Layout/expected/details-open.txt index c7c44bc83b..76b418d630 100644 --- a/Tests/LibWeb/Layout/expected/details-open.txt +++ b/Tests/LibWeb/Layout/expected/details-open.txt @@ -3,12 +3,12 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (8,8) content-size 784x34.9375 children: not-inline BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline InlineNode
- ListItemBox at (37,8) content-size 755x17.46875 children: inline + ListItemBox at (32,8) content-size 760x17.46875 children: inline line 0 width: 114.625, height: 17.46875, bottom: 17.46875, baseline: 13.53125 - frag 0 from TextNode start: 0, length: 13, rect: [37,8 114.625x17.46875] + frag 0 from TextNode start: 0, length: 13, rect: [32,8 114.625x17.46875] "I'm a summary" TextNode <#text> - ListItemMarkerBox <(anonymous)> at (8,8.234375) content-size 17x17 children: not-inline + ListItemMarkerBox <(anonymous)> at (8,8.234375) content-size 12x17 children: not-inline BlockContainer at (8,25.46875) content-size 784x17.46875 children: inline line 0 width: 82.3125, height: 17.46875, bottom: 17.46875, baseline: 13.53125 frag 0 from TextNode start: 0, length: 10, rect: [8,25.46875 82.3125x17.46875] @@ -26,9 +26,9 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [8,8 784x34.9375] PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0] InlinePaintable (InlineNode
) - PaintableWithLines (ListItemBox) [37,8 755x17.46875] + PaintableWithLines (ListItemBox) [32,8 760x17.46875] TextPaintable (TextNode<#text>) - MarkerPaintable (ListItemMarkerBox(anonymous)) [8,8.234375 17x17] + MarkerPaintable (ListItemMarkerBox(anonymous)) [8,8.234375 12x17] PaintableWithLines (BlockContainer) [8,25.46875 784x17.46875] InlinePaintable (InlineNode) TextPaintable (TextNode<#text>) diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp index 4f952c79d9..27590d4437 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp @@ -1105,9 +1105,6 @@ void BlockFormattingContext::layout_list_item_marker(ListItemBox const& list_ite marker_state.set_content_height(max(image_height, marker.font().pixel_size_rounded_up() + 1)); - if (marker.list_style_type() == CSS::ListStyleType::DisclosureClosed || marker.list_style_type() == CSS::ListStyleType::DisclosureOpen) - marker_state.set_content_width(marker_state.content_height()); - auto final_marker_width = marker_state.content_width() + default_marker_width; if (marker.list_style_position() == CSS::ListStylePosition::Inside) {