at (48,106) content-size 744x36 children: not-inline
+ BlockContainer <(anonymous)> at (48,106) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 2, rect: [48,106 20.9375x18] baseline: 13.796875
+ "+C"
+ TextNode <#text>
+ ListItemBox
at (48,124) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 12, rect: [48,124 104.78125x18] baseline: 13.796875
+ "Twenty-three"
+ ListItemMarkerBox <(anonymous)> at (13.75,124.5) content-size 22.25x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,142) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,142) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer
at (48,158) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 21, rect: [48,158 177.125x18] baseline: 13.796875
+ "Ignore this paragraph"
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,192) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer
at (48,192) content-size 744x18 children: inline
+ InlineNode
+ frag 0 from TextNode start: 0, length: 1, rect: [48,192 11.5625x18] baseline: 13.796875
+ "X"
+ TextNode <#text>
+ InlineNode
+ frag 0 from TextNode start: 0, length: 1, rect: [59.5625,192 11.09375x18] baseline: 13.796875
+ "Y"
+ TextNode <#text>
+ InlineNode
+ frag 0 from TextNode start: 0, length: 1, rect: [70.65625,192 12.609375x18] baseline: 13.796875
+ "Z"
+ TextNode <#text>
+ ListItemBox at (48,226) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 11, rect: [48,226 97.75x18] baseline: 13.796875
+ "Twenty-four"
+ ListItemMarkerBox <(anonymous)> at (15.09375,226.5) content-size 20.90625x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,244) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer at (48,244) content-size 744x70 children: not-inline
+ BlockContainer <(anonymous)> at (48,244) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 38, rect: [48,244 311.09375x18] baseline: 13.796875
+ "List item paragraph inside nested divs"
+ TextNode <#text>
+ BlockContainer
at (48,262) content-size 744x52 children: not-inline
+ BlockContainer <(anonymous)> at (48,262) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 4, rect: [48,262 35.671875x18] baseline: 13.796875
+ "2025"
+ TextNode <#text>
+ ListItemBox
at (48,296) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 11, rect: [48,296 90.28125x18] baseline: 13.796875
+ "Twenty-five"
+ ListItemMarkerBox <(anonymous)> at (14.390625,296.5) content-size 21.609375x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,330) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,330) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
at (48,330) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 10, rect: [48,330 85.96875x18] baseline: 13.796875
+ "Twenty-six"
+ ListItemMarkerBox <(anonymous)> at (14.109375,330.5) content-size 21.890625x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,348) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox at (48,348) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 12, rect: [48,348 106.953125x18] baseline: 13.796875
+ "Twenty-seven"
+ ListItemMarkerBox <(anonymous)> at (14.125,348.5) content-size 21.875x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,366) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox at (48,366) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 12, rect: [48,366 99.359375x18] baseline: 13.796875
+ "Twenty-eight"
+ ListItemMarkerBox <(anonymous)> at (13.359375,366.5) content-size 22.640625x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,384) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (8,400) content-size 784x0 children: inline
+ TextNode <#text>
+
+ViewportPaintable (Viewport<#document>) [0,0 800x600]
+ PaintableWithLines (BlockContainer) [0,0 800x400]
+ PaintableWithLines (BlockContainer) [8,16 784x368]
+ PaintableWithLines (BlockContainer) [8,16 784x368]
+ PaintableWithLines (BlockContainer(anonymous)) [48,16 744x0]
+ PaintableWithLines (ListItemBox- ) [48,16 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [25.3125,16.5 10.6875x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,34 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,34 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [14.03125,34.5 21.96875x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,52 744x0]
+ PaintableWithLines (BlockContainer
) [48,52 744x18]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,70 744x0]
+ PaintableWithLines (BlockContainer
) [48,70 744x72]
+ PaintableWithLines (BlockContainer(anonymous)) [48,70 744x18]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer
) [48,88 744x54]
+ PaintableWithLines (BlockContainer(anonymous)) [48,88 744x18]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer
) [48,106 744x36]
+ PaintableWithLines (BlockContainer(anonymous)) [48,106 744x18]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (ListItemBox
) [48,124 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [13.75,124.5 22.25x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,142 744x0]
+ PaintableWithLines (BlockContainer(anonymous)) [48,142 744x0]
+ PaintableWithLines (BlockContainer
) [48,158 744x18]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,192 744x0]
+ PaintableWithLines (BlockContainer
) [48,192 744x18]
+ PaintableWithLines (InlineNode)
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (InlineNode)
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (InlineNode)
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (ListItemBox- ) [48,226 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [15.09375,226.5 20.90625x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,244 744x0]
+ PaintableWithLines (BlockContainer
) [48,244 744x70]
+ PaintableWithLines (BlockContainer(anonymous)) [48,244 744x18]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer
) [48,262 744x52]
+ PaintableWithLines (BlockContainer(anonymous)) [48,262 744x18]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (ListItemBox
) [48,296 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [14.390625,296.5 21.609375x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,330 744x0]
+ PaintableWithLines (BlockContainer(anonymous)) [48,330 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,330 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [14.109375,330.5 21.890625x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,348 744x0]
+ PaintableWithLines (ListItemBox) [48,348 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [14.125,348.5 21.875x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,366 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,366 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [13.359375,366.5 22.640625x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,384 744x0]
+ PaintableWithLines (BlockContainer(anonymous)) [8,400 784x0]
diff --git a/Tests/LibWeb/Layout/expected/ol-render-item-values.txt b/Tests/LibWeb/Layout/expected/ol-render-item-values.txt
new file mode 100644
index 00000000000..5d611b97739
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/ol-render-item-values.txt
@@ -0,0 +1,63 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (0,0) content-size 800x104 [BFC] children: not-inline
+ BlockContainer at (8,16) content-size 784x72 children: not-inline
+ BlockContainer <(anonymous)> at (8,16) content-size 784x0 children: inline
+ TextNode <#text>
+ BlockContainer
at (48,16) content-size 744x72 children: not-inline
+ BlockContainer <(anonymous)> at (48,16) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox - at (48,16) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 5, rect: [48,16 47.21875x18] baseline: 13.796875
+ "Seven"
+ ListItemMarkerBox <(anonymous)> at (22.9375,16.5) content-size 13.0625x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,34) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,34) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 28, rect: [48,34 242.4375x18] baseline: 13.796875
+ "Minus one hundred and twelve"
+ ListItemMarkerBox <(anonymous)> at (3.671875,34.5) content-size 32.328125x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,52) content-size 744x0 children: inline
+ TextNode <#text>
+ TextNode <#text>
+ ListItemBox
- at (48,52) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 23, rect: [48,52 206.5x18] baseline: 13.796875
+ "Two to the power of ten"
+ ListItemMarkerBox <(anonymous)> at (-0.84375,52.5) content-size 36.84375x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,70) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,70) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [48,70 51.34375x18] baseline: 13.796875
+ "Eleven"
+ ListItemMarkerBox <(anonymous)> at (18.96875,70.5) content-size 17.03125x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,88) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (8,104) content-size 784x0 children: inline
+ TextNode <#text>
+
+ViewportPaintable (Viewport<#document>) [0,0 800x600]
+ PaintableWithLines (BlockContainer) [0,0 800x104]
+ PaintableWithLines (BlockContainer) [8,16 784x72]
+ PaintableWithLines (BlockContainer(anonymous)) [8,16 784x0]
+ PaintableWithLines (BlockContainer
) [8,16 784x72]
+ PaintableWithLines (BlockContainer(anonymous)) [48,16 744x0]
+ PaintableWithLines (ListItemBox- ) [48,16 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [22.9375,16.5 13.0625x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,34 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,34 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [3.671875,34.5 32.328125x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,52 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,52 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [-0.84375,52.5 36.84375x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,70 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,70 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [18.96875,70.5 17.03125x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,88 744x0]
+ PaintableWithLines (BlockContainer(anonymous)) [8,104 784x0]
diff --git a/Tests/LibWeb/Layout/expected/ol-render-style-list-item.txt b/Tests/LibWeb/Layout/expected/ol-render-style-list-item.txt
new file mode 100644
index 00000000000..052d92a0cc0
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/ol-render-style-list-item.txt
@@ -0,0 +1,103 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (0,0) content-size 800x208 [BFC] children: not-inline
+ BlockContainer at (8,16) content-size 784x176 children: not-inline
+ BlockContainer
at (48,16) content-size 744x176 children: not-inline
+ BlockContainer <(anonymous)> at (48,16) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox - at (48,16) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 3, rect: [48,16 29.8125x18] baseline: 13.796875
+ "One"
+ ListItemMarkerBox <(anonymous)> at (25.3125,16.5) content-size 10.6875x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,34) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,34) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 10, rect: [48,34 90.796875x18] baseline: 13.796875
+ "Twenty-two"
+ ListItemMarkerBox <(anonymous)> at (14.03125,34.5) content-size 21.96875x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,52) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
at (48,52) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 12, rect: [48,52 104.78125x18] baseline: 13.796875
+ "Twenty-three"
+ ListItemMarkerBox <(anonymous)> at (13.75,52.5) content-size 22.25x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,70) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,70) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 11, rect: [48,70 97.75x18] baseline: 13.796875
+ "Twenty-four"
+ ListItemMarkerBox <(anonymous)> at (15.09375,70.5) content-size 20.90625x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,88) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
at (48,104) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 11, rect: [48,104 90.28125x18] baseline: 13.796875
+ "Twenty-five"
+ ListItemMarkerBox <(anonymous)> at (14.390625,104.5) content-size 21.609375x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,138) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,138) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 10, rect: [48,138 85.96875x18] baseline: 13.796875
+ "Twenty-six"
+ ListItemMarkerBox <(anonymous)> at (14.109375,138.5) content-size 21.890625x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,156) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox at (48,156) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 12, rect: [48,156 106.953125x18] baseline: 13.796875
+ "Twenty-seven"
+ ListItemMarkerBox <(anonymous)> at (14.125,156.5) content-size 21.875x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,174) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,174) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 12, rect: [48,174 99.359375x18] baseline: 13.796875
+ "Twenty-eight"
+ ListItemMarkerBox <(anonymous)> at (13.359375,174.5) content-size 22.640625x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,192) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (8,208) content-size 784x0 children: inline
+ TextNode <#text>
+
+ViewportPaintable (Viewport<#document>) [0,0 800x600]
+ PaintableWithLines (BlockContainer) [0,0 800x208]
+ PaintableWithLines (BlockContainer) [8,16 784x176]
+ PaintableWithLines (BlockContainer
) [8,16 784x176]
+ PaintableWithLines (BlockContainer(anonymous)) [48,16 744x0]
+ PaintableWithLines (ListItemBox- ) [48,16 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [25.3125,16.5 10.6875x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,34 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,34 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [14.03125,34.5 21.96875x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,52 744x0]
+ PaintableWithLines (ListItemBox
) [48,52 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [13.75,52.5 22.25x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,70 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,70 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [15.09375,70.5 20.90625x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,88 744x0]
+ PaintableWithLines (ListItemBox
) [48,104 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [14.390625,104.5 21.609375x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,138 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,138 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [14.109375,138.5 21.890625x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,156 744x0]
+ PaintableWithLines (ListItemBox) [48,156 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [14.125,156.5 21.875x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,174 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,174 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [13.359375,174.5 22.640625x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,192 744x0]
+ PaintableWithLines (BlockContainer(anonymous)) [8,208 784x0]
diff --git a/Tests/LibWeb/Layout/expected/ul-render.txt b/Tests/LibWeb/Layout/expected/ul-render.txt
new file mode 100644
index 00000000000..911c45abe18
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/ul-render.txt
@@ -0,0 +1,73 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (0,0) content-size 800x120 [BFC] children: not-inline
+ BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline
+ TextNode <#text>
+ BlockContainer at (8,16) content-size 784x88 children: not-inline
+ BlockContainer <(anonymous)> at (8,16) content-size 784x0 children: inline
+ TextNode <#text>
+ BlockContainer at (48,16) content-size 744x36 children: not-inline
+ BlockContainer <(anonymous)> at (48,16) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,16) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 5, rect: [48,16 47.859375x18] baseline: 13.796875
+ "Three"
+ ListItemMarkerBox <(anonymous)> at (24,16.5) content-size 12x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,34) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,34) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 4, rect: [48,34 41.5x18] baseline: 13.796875
+ "Four"
+ ListItemMarkerBox <(anonymous)> at (24,34.5) content-size 12x17 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,52) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (8,68) content-size 784x0 children: inline
+ TextNode <#text>
+ BlockContainer at (48,68) content-size 744x36 children: not-inline
+ BlockContainer <(anonymous)> at (48,68) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,68) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 3, rect: [48,68 29.8125x18] baseline: 13.796875
+ "One"
+ ListItemMarkerBox <(anonymous)> at (40,68) content-size 4x9 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,86) content-size 744x0 children: inline
+ TextNode <#text>
+ ListItemBox
- at (48,86) content-size 744x18 children: inline
+ frag 0 from TextNode start: 0, length: 3, rect: [48,86 33.875x18] baseline: 13.796875
+ "Two"
+ ListItemMarkerBox <(anonymous)> at (40,86) content-size 4x9 children: not-inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (48,104) content-size 744x0 children: inline
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (8,120) content-size 784x0 children: inline
+ TextNode <#text>
+
+ViewportPaintable (Viewport<#document>) [0,0 800x600]
+ PaintableWithLines (BlockContainer) [0,0 800x120]
+ PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0]
+ PaintableWithLines (BlockContainer) [8,16 784x88]
+ PaintableWithLines (BlockContainer(anonymous)) [8,16 784x0]
+ PaintableWithLines (BlockContainer
.A) [8,16 784x36]
+ PaintableWithLines (BlockContainer(anonymous)) [48,16 744x0]
+ PaintableWithLines (ListItemBox- ) [48,16 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [24,16.5 12x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,34 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,34 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [24,34.5 12x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,52 744x0]
+ PaintableWithLines (BlockContainer(anonymous)) [8,68 784x0]
+ PaintableWithLines (BlockContainer
.B) [8,68 784x36]
+ PaintableWithLines (BlockContainer(anonymous)) [48,68 744x0]
+ PaintableWithLines (ListItemBox- ) [48,68 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [40,68 4x9]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,86 744x0]
+ PaintableWithLines (ListItemBox
- ) [48,86 744x18]
+ MarkerPaintable (ListItemMarkerBox(anonymous)) [40,86 4x9]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [48,104 744x0]
+ PaintableWithLines (BlockContainer(anonymous)) [8,120 784x0]
diff --git a/Tests/LibWeb/Layout/input/list-render-list-owner-is-document.html b/Tests/LibWeb/Layout/input/list-render-list-owner-is-document.html
new file mode 100644
index 00000000000..fea00f1f9ec
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/list-render-list-owner-is-document.html
@@ -0,0 +1,12 @@
+
+
+
+
+ - One
+ - Two
+
+
diff --git a/Tests/LibWeb/Layout/input/list-render-list-owner-not-ol.html b/Tests/LibWeb/Layout/input/list-render-list-owner-not-ol.html
new file mode 100644
index 00000000000..b522e20189f
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/list-render-list-owner-not-ol.html
@@ -0,0 +1,14 @@
+
+
+
+
diff --git a/Tests/LibWeb/Layout/input/list-render-no-list.html b/Tests/LibWeb/Layout/input/list-render-no-list.html
new file mode 100644
index 00000000000..74fe6bb45d0
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/list-render-no-list.html
@@ -0,0 +1,5 @@
+
+
+ - One
+
- Two
+
diff --git a/Tests/LibWeb/Layout/input/ol-render-deep-hybrid-list-item-list.html b/Tests/LibWeb/Layout/input/ol-render-deep-hybrid-list-item-list.html
new file mode 100644
index 00000000000..22134c6914a
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/ol-render-deep-hybrid-list-item-list.html
@@ -0,0 +1,21 @@
+
+
+
+ - One
+ - Twenty-two
+ Ignore these
+
+ Ignore this paragraph
+ XYZ
+ - Twenty-four
+
+
List item paragraph inside nested divs
+ - Twenty-six
+ Twenty-seven
+ - Twenty-eight
+
+
diff --git a/Tests/LibWeb/Layout/input/ol-render-item-values.html b/Tests/LibWeb/Layout/input/ol-render-item-values.html
new file mode 100644
index 00000000000..4a931a53cef
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/ol-render-item-values.html
@@ -0,0 +1,13 @@
+
+
+
+
+- Seven
+- Minus one hundred and twelve
+- Two to the power of ten
+- Eleven
+
+
diff --git a/Tests/LibWeb/Layout/input/ol-render-style-list-item.html b/Tests/LibWeb/Layout/input/ol-render-style-list-item.html
new file mode 100644
index 00000000000..24e5c6ff5d5
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/ol-render-style-list-item.html
@@ -0,0 +1,13 @@
+
+
+
+ - One
+ - Twenty-two
+ Twenty-three
+ - Twenty-four
+ Twenty-five
+ - Twenty-six
+ Twenty-seven
+ - Twenty-eight
+
+
diff --git a/Tests/LibWeb/Layout/input/ul-render.html b/Tests/LibWeb/Layout/input/ul-render.html
new file mode 100644
index 00000000000..62162bb7500
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/ul-render.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
diff --git a/Tests/LibWeb/Ref/expected/ol-render-default-ref.html b/Tests/LibWeb/Ref/expected/ol-render-default-ref.html
new file mode 100644
index 00000000000..766ffafae46
--- /dev/null
+++ b/Tests/LibWeb/Ref/expected/ol-render-default-ref.html
@@ -0,0 +1,43 @@
+
+
+
+ - One
+ - Two
+ - Three
+
+
+ - Fourteen
+ - Fifteen
+ - Sixteen
+
+
+ - Minus eleven
+ - Minus ten
+ - Minus nine
+
+
+ - Minus one
+ - Zero
+ - One
+
+
+ - Three
+ - Two
+ - One
+
+
+ - Fourteen
+ - Thirteen
+ - Twelve
+
+
+ - Minus fourteen
+ - Minus fifteen
+ - Minus sixteen
+
+
+ - One
+ - Zero
+ - Minus one
+
+
diff --git a/Tests/LibWeb/Ref/expected/ol-render-nested-ref.html b/Tests/LibWeb/Ref/expected/ol-render-nested-ref.html
new file mode 100644
index 00000000000..d437fd8493c
--- /dev/null
+++ b/Tests/LibWeb/Ref/expected/ol-render-nested-ref.html
@@ -0,0 +1,19 @@
+
+
+
+ - One
+
- Five
+
+ - Thirty-one
+
- Thirty-two
+
+ - Four
+
- Three
+
- Two
+
- One
+
+ - Thirty-three
+
+ - Six
+
+
diff --git a/Tests/LibWeb/Ref/input/ol-render-default.html b/Tests/LibWeb/Ref/input/ol-render-default.html
new file mode 100644
index 00000000000..c8141efa9e4
--- /dev/null
+++ b/Tests/LibWeb/Ref/input/ol-render-default.html
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+ - One
+ - Two
+ - Three
+
+
+ - Fourteen
+ - Fifteen
+ - Sixteen
+
+
+ - Minus eleven
+ - Minus ten
+ - Minus nine
+
+
+ - Minus one
+ - Zero
+ - One
+
+
+ - Three
+ - Two
+ - One
+
+
+ - Fourteen
+ - Thirteen
+ - Twelve
+
+
+ - Minus fourteen
+ - Minus fifteen
+ - Minus sixteen
+
+
+ - One
+ - Zero
+ - Minus one
+
+
diff --git a/Tests/LibWeb/Ref/input/ol-render-nested.html b/Tests/LibWeb/Ref/input/ol-render-nested.html
new file mode 100644
index 00000000000..baa7c6eab98
--- /dev/null
+++ b/Tests/LibWeb/Ref/input/ol-render-nested.html
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+ - One
+
- Five
+
+ - Thirty-one
+
- Thirty-two
+
+ - Four
+
- Three
+
- Two
+
- One
+
+ - Thirty-three
+
+ - Six
+
+
+