diff --git a/Tests/LibWeb/Layout/expected/list-render-list-owner-is-document.txt b/Tests/LibWeb/Layout/expected/list-render-list-owner-is-document.txt new file mode 100644 index 00000000000..a951d746a2f --- /dev/null +++ b/Tests/LibWeb/Layout/expected/list-render-list-owner-is-document.txt @@ -0,0 +1,35 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x52 [BFC] children: not-inline + BlockContainer at (8,8) content-size 784x36 children: not-inline + BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline + TextNode <#text> + TextNode <#text> + TextNode <#text> + ListItemBox
  • at (8,8) content-size 784x18 children: inline + frag 0 from TextNode start: 0, length: 3, rect: [8,8 29.8125x18] baseline: 13.796875 + "One" + ListItemMarkerBox <(anonymous)> at (-14.6875,8.5) content-size 10.6875x17 children: not-inline + TextNode <#text> + BlockContainer <(anonymous)> at (8,26) content-size 784x0 children: inline + TextNode <#text> + ListItemBox
  • at (8,26) content-size 784x18 children: inline + frag 0 from TextNode start: 0, length: 3, rect: [8,26 33.875x18] baseline: 13.796875 + "Two" + ListItemMarkerBox <(anonymous)> at (-17.15625,26.5) content-size 13.15625x17 children: not-inline + TextNode <#text> + BlockContainer <(anonymous)> at (8,44) content-size 784x0 children: inline + TextNode <#text> + TextNode <#text> + +ViewportPaintable (Viewport<#document>) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x52] + PaintableWithLines (BlockContainer) [8,8 784x36] + PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0] + PaintableWithLines (ListItemBox
  • ) [8,8 784x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [-14.6875,8.5 10.6875x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (BlockContainer(anonymous)) [8,26 784x0] + PaintableWithLines (ListItemBox
  • ) [8,26 784x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [-17.15625,26.5 13.15625x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (BlockContainer(anonymous)) [8,44 784x0] diff --git a/Tests/LibWeb/Layout/expected/list-render-list-owner-not-ol.txt b/Tests/LibWeb/Layout/expected/list-render-list-owner-not-ol.txt new file mode 100644 index 00000000000..6453572e867 --- /dev/null +++ b/Tests/LibWeb/Layout/expected/list-render-list-owner-not-ol.txt @@ -0,0 +1,40 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x52 [BFC] children: not-inline + BlockContainer at (8,8) content-size 784x36 children: not-inline + BlockContainer at (8,8) content-size 784x36 children: not-inline + BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline + TextNode <#text> + TextNode <#text> + TextNode <#text> + ListItemBox
  • at (8,8) content-size 784x18 children: inline + frag 0 from TextNode start: 0, length: 3, rect: [8,8 29.8125x18] baseline: 13.796875 + "One" + ListItemMarkerBox <(anonymous)> at (-14.6875,8.5) content-size 10.6875x17 children: not-inline + TextNode <#text> + BlockContainer <(anonymous)> at (8,26) content-size 784x0 children: inline + TextNode <#text> + ListItemBox
  • at (8,26) content-size 784x18 children: inline + frag 0 from TextNode start: 0, length: 3, rect: [8,26 33.875x18] baseline: 13.796875 + "Two" + ListItemMarkerBox <(anonymous)> at (-17.15625,26.5) content-size 13.15625x17 children: not-inline + TextNode <#text> + BlockContainer <(anonymous)> at (8,44) content-size 784x0 children: inline + TextNode <#text> + TextNode <#text> + BlockContainer <(anonymous)> at (8,44) content-size 784x0 children: inline + TextNode <#text> + +ViewportPaintable (Viewport<#document>) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x52] + PaintableWithLines (BlockContainer) [8,8 784x36] + PaintableWithLines (BlockContainer
    #list-item-owner) [8,8 784x36] + PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0] + PaintableWithLines (ListItemBox
  • ) [8,8 784x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [-14.6875,8.5 10.6875x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (BlockContainer(anonymous)) [8,26 784x0] + PaintableWithLines (ListItemBox
  • ) [8,26 784x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [-17.15625,26.5 13.15625x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (BlockContainer(anonymous)) [8,44 784x0] + PaintableWithLines (BlockContainer(anonymous)) [8,44 784x0] diff --git a/Tests/LibWeb/Layout/expected/list-render-no-list.txt b/Tests/LibWeb/Layout/expected/list-render-no-list.txt new file mode 100644 index 00000000000..034f7da9cb1 --- /dev/null +++ b/Tests/LibWeb/Layout/expected/list-render-no-list.txt @@ -0,0 +1,26 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x52 [BFC] children: not-inline + BlockContainer at (8,8) content-size 784x36 children: not-inline + BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline + TextNode <#text> + ListItemBox
  • at (8,8) content-size 784x18 children: inline + frag 0 from TextNode start: 0, length: 3, rect: [8,8 29.8125x18] baseline: 13.796875 + "One" + ListItemMarkerBox <(anonymous)> at (-16,8.5) content-size 12x17 children: not-inline + TextNode <#text> + ListItemBox
  • at (8,26) content-size 784x18 children: inline + frag 0 from TextNode start: 0, length: 3, rect: [8,26 33.875x18] baseline: 13.796875 + "Two" + ListItemMarkerBox <(anonymous)> at (-16,26.5) content-size 12x17 children: not-inline + TextNode <#text> + +ViewportPaintable (Viewport<#document>) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x52] + PaintableWithLines (BlockContainer) [8,8 784x36] + PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0] + PaintableWithLines (ListItemBox
  • ) [8,8 784x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [-16,8.5 12x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (ListItemBox
  • ) [8,26 784x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [-16,26.5 12x17] + TextPaintable (TextNode<#text>) diff --git a/Tests/LibWeb/Layout/expected/ol-render-deep-hybrid-list-item-list.txt b/Tests/LibWeb/Layout/expected/ol-render-deep-hybrid-list-item-list.txt new file mode 100644 index 00000000000..bdaeba9874c --- /dev/null +++ b/Tests/LibWeb/Layout/expected/ol-render-deep-hybrid-list-item-list.txt @@ -0,0 +1,187 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x400 [BFC] children: not-inline + BlockContainer at (8,16) content-size 784x368 children: not-inline + BlockContainer
      at (48,16) content-size 744x368 children: not-inline + BlockContainer <(anonymous)> at (48,16) content-size 744x0 children: inline + TextNode <#text> + ListItemBox
    1. 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
    2. 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> + BlockContainer
      at (48,52) content-size 744x18 children: inline + frag 0 from TextNode start: 0, length: 12, rect: [48,52 100.609375x18] baseline: 13.796875 + "Ignore these" + TextNode <#text> + BlockContainer <(anonymous)> at (48,70) content-size 744x0 children: inline + TextNode <#text> + BlockContainer
      at (48,70) content-size 744x72 children: not-inline + BlockContainer <(anonymous)> at (48,70) content-size 744x18 children: inline + frag 0 from TextNode start: 0, length: 2, rect: [48,70 24.890625x18] baseline: 13.796875 + "+A" + TextNode <#text> + BlockContainer
      at (48,88) content-size 744x54 children: not-inline + BlockContainer <(anonymous)> at (48,88) content-size 744x18 children: inline + frag 0 from TextNode start: 0, length: 2, rect: [48,88 19.96875x18] baseline: 13.796875 + "+B" + TextNode <#text> + BlockContainer
      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

    3. 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

    4. 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
    5. 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
      1. ) [48,16 744x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [25.3125,16.5 10.6875x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (BlockContainer(anonymous)) [48,34 744x0] + PaintableWithLines (ListItemBox
      2. ) [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

      3. ) [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

      4. ) [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
      5. ) [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
        1. 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
        2. 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
        3. 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
        4. 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
          1. ) [48,16 744x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [22.9375,16.5 13.0625x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (BlockContainer(anonymous)) [48,34 744x0] + PaintableWithLines (ListItemBox
          2. ) [48,34 744x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [3.671875,34.5 32.328125x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (BlockContainer(anonymous)) [48,52 744x0] + PaintableWithLines (ListItemBox
          3. ) [48,52 744x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [-0.84375,52.5 36.84375x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (BlockContainer(anonymous)) [48,70 744x0] + PaintableWithLines (ListItemBox
          4. ) [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
            1. 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
            2. 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
            3. 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

            4. 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
            5. 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
              1. ) [48,16 744x18] + MarkerPaintable (ListItemMarkerBox(anonymous)) [25.3125,16.5 10.6875x17] + TextPaintable (TextNode<#text>) + PaintableWithLines (BlockContainer(anonymous)) [48,34 744x0] + PaintableWithLines (ListItemBox
              2. ) [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
              3. ) [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

              4. ) [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
              5. ) [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
              6. 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
              7. 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
              8. 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
              9. 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 @@ + + +
                      + +
                    1. One
                    2. +
                    3. Two
                    4. +
                    + 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 @@ + + +
                    +
                      + +
                    1. One
                    2. +
                    3. Two
                    4. +
                    +
                    + 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 @@ + + +
                      +
                    1. One
                    2. +
                    3. Twenty-two
                    4. +
                      Ignore these
                      +
                      +A
                      +B
                      +C +
                      Twenty-three
                      +
                      +

                      Ignore this paragraph

                      +

                      XYZ +

                    5. Twenty-four
                    6. + +
                      List item paragraph inside nested divs
                      2025 +

                      Twenty-five

                      +
                      +
                    7. Twenty-six
                    8. + Twenty-seven +
                    9. Twenty-eight
                    10. +
                    + 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 @@ + + + +
                      +
                    1. Seven
                    2. +
                    3. Minus one hundred and twelve
                    4. +
                    5. Two to the power of ten
                    6. +
                    7. Eleven
                    8. +
                    + 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 @@ + + +
                      +
                    1. One
                    2. +
                    3. Twenty-two
                    4. +
                      Twenty-three
                      +
                    5. Twenty-four
                    6. +

                      Twenty-five

                      +
                    7. Twenty-six
                    8. + Twenty-seven +
                    9. Twenty-eight
                    10. +
                    + 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 @@ + + + + + + +
                      +
                    • Three
                    • +
                    • Four
                    • +
                    +
                      +
                    • One
                    • +
                    • Two
                    • +
                    + 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 @@ + + +
                      +
                    1. One
                    2. +
                    3. Two
                    4. +
                    5. Three
                    6. +
                    +
                      +
                    1. Fourteen
                    2. +
                    3. Fifteen
                    4. +
                    5. Sixteen
                    6. +
                    +
                      +
                    1. Minus eleven
                    2. +
                    3. Minus ten
                    4. +
                    5. Minus nine
                    6. +
                    +
                      +
                    1. Minus one
                    2. +
                    3. Zero
                    4. +
                    5. One
                    6. +
                    +
                      +
                    1. Three
                    2. +
                    3. Two
                    4. +
                    5. One
                    6. +
                    +
                      +
                    1. Fourteen
                    2. +
                    3. Thirteen
                    4. +
                    5. Twelve
                    6. +
                    +
                      +
                    1. Minus fourteen
                    2. +
                    3. Minus fifteen
                    4. +
                    5. Minus sixteen
                    6. +
                    +
                      +
                    1. One
                    2. +
                    3. Zero
                    4. +
                    5. Minus one
                    6. +
                    + 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 @@ + + +
                      +
                    1. One +
                    2. Five +
                        +
                      1. Thirty-one +
                      2. Thirty-two +
                          +
                        1. Four +
                        2. Three +
                        3. Two +
                        4. One +
                        +
                      3. Thirty-three +
                      +
                    3. 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 @@ + + + + + +
                      +
                    1. One
                    2. +
                    3. Two
                    4. +
                    5. Three
                    6. +
                    +
                      +
                    1. Fourteen
                    2. +
                    3. Fifteen
                    4. +
                    5. Sixteen
                    6. +
                    +
                      +
                    1. Minus eleven
                    2. +
                    3. Minus ten
                    4. +
                    5. Minus nine
                    6. +
                    +
                      +
                    1. Minus one
                    2. +
                    3. Zero
                    4. +
                    5. One
                    6. +
                    +
                      +
                    1. Three
                    2. +
                    3. Two
                    4. +
                    5. One
                    6. +
                    +
                      +
                    1. Fourteen
                    2. +
                    3. Thirteen
                    4. +
                    5. Twelve
                    6. +
                    +
                      +
                    1. Minus fourteen
                    2. +
                    3. Minus fifteen
                    4. +
                    5. Minus sixteen
                    6. +
                    +
                      +
                    1. One
                    2. +
                    3. Zero
                    4. +
                    5. Minus one
                    6. +
                    + 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 @@ + + + + + + + + +
                      +
                    1. One +
                    2. Five +
                        +
                      1. Thirty-one +
                      2. Thirty-two +
                          +
                        1. Four +
                        2. Three +
                        3. Two +
                        4. One +
                        +
                      3. Thirty-three +
                      +
                    3. Six +
                    + +