From 4c54a28c45be4e8185158d40a37e083e038a6465 Mon Sep 17 00:00:00 2001 From: Psychpsyo Date: Sun, 4 May 2025 15:39:31 +0200 Subject: [PATCH] Meta: Add doctypes to a few more layout tests --- Tests/LibWeb/Layout/expected/css-counters/basic.txt | 4 ++-- .../css-counters/counters-function-single-argument.txt | 4 ++-- .../LibWeb/Layout/expected/css-counters/counters-function.txt | 4 ++-- Tests/LibWeb/Layout/expected/css-counters/hidden-elements.txt | 4 ++-- .../expected/css-values/rect-non-token-contents-crash.txt | 4 ++-- .../layout-tree-update/simple-update-inside-svg-subtree.txt | 4 ++-- .../misc/grid-template-block-components-whitespace-crash.txt | 4 ++-- Tests/LibWeb/Layout/input/css-counters/basic.html | 1 + .../input/css-counters/counters-function-single-argument.html | 1 + Tests/LibWeb/Layout/input/css-counters/counters-function.html | 1 + Tests/LibWeb/Layout/input/css-counters/hidden-elements.html | 1 + .../input/css-values/rect-non-token-contents-crash.html | 1 + .../layout-tree-update/simple-update-inside-svg-subtree.html | 1 + .../misc/grid-template-block-components-whitespace-crash.html | 1 + 14 files changed, 21 insertions(+), 14 deletions(-) diff --git a/Tests/LibWeb/Layout/expected/css-counters/basic.txt b/Tests/LibWeb/Layout/expected/css-counters/basic.txt index a3156d76867..3165e251654 100644 --- a/Tests/LibWeb/Layout/expected/css-counters/basic.txt +++ b/Tests/LibWeb/Layout/expected/css-counters/basic.txt @@ -1,5 +1,5 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline - BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (0,0) content-size 800x356 [BFC] children: not-inline BlockContainer at (8,16) content-size 784x324 children: not-inline BlockContainer
at (8,16) content-size 784x154 children: not-inline BlockContainer

at (8,16) content-size 784x18 children: inline @@ -87,7 +87,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline TextNode <#text> ViewportPaintable (Viewport<#document>) [0,0 800x600] - PaintableWithLines (BlockContainer) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x356] PaintableWithLines (BlockContainer) [8,16 784x324] PaintableWithLines (BlockContainer

) [8,16 784x154] PaintableWithLines (BlockContainer

) [8,16 784x18] diff --git a/Tests/LibWeb/Layout/expected/css-counters/counters-function-single-argument.txt b/Tests/LibWeb/Layout/expected/css-counters/counters-function-single-argument.txt index 4f086988a74..cb891ea1348 100644 --- a/Tests/LibWeb/Layout/expected/css-counters/counters-function-single-argument.txt +++ b/Tests/LibWeb/Layout/expected/css-counters/counters-function-single-argument.txt @@ -1,11 +1,11 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline - BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (0,0) content-size 800x34 [BFC] children: not-inline BlockContainer at (8,8) content-size 784x18 children: inline frag 0 from TextNode start: 0, length: 19, rect: [8,8 162.109375x18] baseline: 13.796875 "PASS (didn't crash)" TextNode <#text> ViewportPaintable (Viewport<#document>) [0,0 800x600] - PaintableWithLines (BlockContainer) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x34] PaintableWithLines (BlockContainer) [8,8 784x18] TextPaintable (TextNode<#text>) diff --git a/Tests/LibWeb/Layout/expected/css-counters/counters-function.txt b/Tests/LibWeb/Layout/expected/css-counters/counters-function.txt index c86d9c0045e..5acb5320952 100644 --- a/Tests/LibWeb/Layout/expected/css-counters/counters-function.txt +++ b/Tests/LibWeb/Layout/expected/css-counters/counters-function.txt @@ -1,5 +1,5 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline - BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (0,0) content-size 800x286 [BFC] children: not-inline BlockContainer at (8,8) content-size 784x270 children: not-inline BlockContainer at (24,8) content-size 768x270 children: not-inline BlockContainer <(anonymous)> at (24,8) content-size 768x0 children: inline @@ -166,7 +166,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline TextNode <#text> ViewportPaintable (Viewport<#document>) [0,0 800x600] - PaintableWithLines (BlockContainer) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x286] PaintableWithLines (BlockContainer) [8,8 784x270] PaintableWithLines (BlockContainer

.ol) [8,8 784x270] PaintableWithLines (BlockContainer(anonymous)) [24,8 768x0] diff --git a/Tests/LibWeb/Layout/expected/css-counters/hidden-elements.txt b/Tests/LibWeb/Layout/expected/css-counters/hidden-elements.txt index c00791a9493..b4177e148b5 100644 --- a/Tests/LibWeb/Layout/expected/css-counters/hidden-elements.txt +++ b/Tests/LibWeb/Layout/expected/css-counters/hidden-elements.txt @@ -1,5 +1,5 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline - BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (0,0) content-size 800x186 [BFC] children: not-inline BlockContainer at (8,16) content-size 784x154 children: not-inline BlockContainer

at (8,16) content-size 784x18 children: inline frag 0 from TextNode start: 0, length: 1, rect: [26.125,16 14.265625x18] baseline: 13.796875 @@ -43,7 +43,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline TextNode <#text> ViewportPaintable (Viewport<#document>) [0,0 800x600] - PaintableWithLines (BlockContainer) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x186] PaintableWithLines (BlockContainer) [8,16 784x154] PaintableWithLines (BlockContainer

) [8,16 784x18] PaintableWithLines (InlineNode(anonymous)) diff --git a/Tests/LibWeb/Layout/expected/css-values/rect-non-token-contents-crash.txt b/Tests/LibWeb/Layout/expected/css-values/rect-non-token-contents-crash.txt index 6c9ecfcf1f7..c921381db9c 100644 --- a/Tests/LibWeb/Layout/expected/css-values/rect-non-token-contents-crash.txt +++ b/Tests/LibWeb/Layout/expected/css-values/rect-non-token-contents-crash.txt @@ -1,12 +1,12 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline - BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (0,0) content-size 800x16 [BFC] children: not-inline BlockContainer at (8,8) content-size 784x0 children: not-inline BlockContainer

at (8,8) content-size 784x0 children: not-inline BlockContainer <(anonymous)> at (8,16) content-size 784x0 children: inline TextNode <#text> ViewportPaintable (Viewport<#document>) [0,0 800x600] - PaintableWithLines (BlockContainer) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x16] PaintableWithLines (BlockContainer) [8,8 784x0] PaintableWithLines (BlockContainer
) [8,8 784x0] PaintableWithLines (BlockContainer(anonymous)) [8,16 784x0] diff --git a/Tests/LibWeb/Layout/expected/layout-tree-update/simple-update-inside-svg-subtree.txt b/Tests/LibWeb/Layout/expected/layout-tree-update/simple-update-inside-svg-subtree.txt index d828c00c1ed..492a3020281 100644 --- a/Tests/LibWeb/Layout/expected/layout-tree-update/simple-update-inside-svg-subtree.txt +++ b/Tests/LibWeb/Layout/expected/layout-tree-update/simple-update-inside-svg-subtree.txt @@ -1,5 +1,5 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline - BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (0,0) content-size 800x166 [BFC] children: not-inline BlockContainer at (8,8) content-size 784x150 children: inline frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150 SVGSVGBox at (8,8) content-size 300x150 [SVG] children: inline @@ -10,7 +10,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline TextNode <#text> ViewportPaintable (Viewport<#document>) [0,0 800x600] - PaintableWithLines (BlockContainer) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x166] PaintableWithLines (BlockContainer) [8,8 784x150] SVGSVGPaintable (SVGSVGBox) [8,8 300x150] SVGGraphicsPaintable (SVGGraphicsBox) [8,8 300x150] diff --git a/Tests/LibWeb/Layout/expected/misc/grid-template-block-components-whitespace-crash.txt b/Tests/LibWeb/Layout/expected/misc/grid-template-block-components-whitespace-crash.txt index f5204a0f463..ac8ed6ccee5 100644 --- a/Tests/LibWeb/Layout/expected/misc/grid-template-block-components-whitespace-crash.txt +++ b/Tests/LibWeb/Layout/expected/misc/grid-template-block-components-whitespace-crash.txt @@ -1,7 +1,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline - BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (0,0) content-size 800x16 [BFC] children: not-inline BlockContainer at (8,8) content-size 784x0 children: not-inline ViewportPaintable (Viewport<#document>) [0,0 800x600] - PaintableWithLines (BlockContainer) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x16] PaintableWithLines (BlockContainer) [8,8 784x0] diff --git a/Tests/LibWeb/Layout/input/css-counters/basic.html b/Tests/LibWeb/Layout/input/css-counters/basic.html index c96a4608760..dd455f63663 100644 --- a/Tests/LibWeb/Layout/input/css-counters/basic.html +++ b/Tests/LibWeb/Layout/input/css-counters/basic.html @@ -1,3 +1,4 @@ +