Skip to content

Truly independent web browser

LibWeb: Keep the strut depth below baseline-aligned replaced elements

Andreas Kling46e88a36a452
diff --git a/Libraries/LibWeb/Rust/src/layout/line_builder.rs b/Libraries/LibWeb/Rust/src/layout/line_builder.rs
index 880af04c78c..2c5e90cb296 100644
--- a/Libraries/LibWeb/Rust/src/layout/line_builder.rs
+++ b/Libraries/LibWeb/Rust/src/layout/line_builder.rs
@@ -1080,8 +1080,17 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {
// The minimum height consists of a minimum height above the baseline and a minimum depth below
// it, exactly as if each line box starts with a zero-width inline box with the element's font and
// line height properties.
+ // NB: That holds for a replaced element too, which leaves the depth of the strut below the
+ // baseline it sits on, except in quirks mode, where a line box with no text gets no strut:
+ // https://quirks.spec.whatwg.org/#the-line-height-calculation-quirk
+ // In a vertical line, the replaced element sits on the central baseline, so the strut fits
+ // within it.
+ let is_replaced_box_with_strut = self.facts(node).is_replaced_box()
+ && !self.facts(node).document_in_quirks_mode()
+ && containing_style.writing_mode() == writing_mode::HORIZONTAL_TB;
should_align_strut_to_line_box_baseline |= has_line_relative_aligned_subtree
|| ((style.display().is_inline_block()
+ || is_replaced_box_with_strut
|| (style.display().is_inline_outside()
&& (style.display().is_flex_inside() || style.display().is_grid_inside())))
&& alignment_style.vertical_align_keyword() == vertical_align::BASELINE);
diff --git a/Tests/LibWeb/Layout/expected/HTMLImageElement-update-the-image-data-temporary-document.txt b/Tests/LibWeb/Layout/expected/HTMLImageElement-update-the-image-data-temporary-document.txt
index d54e13f70bb..dad3f10cff3 100644
--- a/Tests/LibWeb/Layout/expected/HTMLImageElement-update-the-image-data-temporary-document.txt
+++ b/Tests/LibWeb/Layout/expected/HTMLImageElement-update-the-image-data-temporary-document.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: not-inline
- BlockContainer <div#image-container> at [8,8] [0+0+0 784 0+0+0] [0+0+0 150 0+0+0] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: not-inline
+ BlockContainer <div#image-container> at [8,8] [0+0+0 784 0+0+0] [0+0+0 153 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 150x150] baseline: 150
ImageBox <img> at [8,8] [0+0+0 150 0+0+0] [0+0+0 150 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/abspos-box-with-replaced-element.txt b/Tests/LibWeb/Layout/expected/abspos-box-with-replaced-element.txt
index 9758d809807..48a3b1ab75f 100644
--- a/Tests/LibWeb/Layout/expected/abspos-box-with-replaced-element.txt
+++ b/Tests/LibWeb/Layout/expected/abspos-box-with-replaced-element.txt
@@ -1,7 +1,7 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 0 0+1+0] [BFC] children: not-inline
BlockContainer <body> at [10,10] positioned [8+1+0 500 0+1+8] [8+1+0 100 0+1+8] [BFC] children: not-inline
- BlockContainer <div.image-container> at [261,11] positioned [0+1+0 248 0+1+0] [0+1+0 28.46875 0+1+0] [BFC] children: inline
+ BlockContainer <div.image-container> at [261,11] positioned [0+1+0 248 0+1+0] [0+1+0 31.46875 0+1+0] [BFC] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [262,12 248x26.46875] baseline: 28.46875
ImageBox <img> at [262,12] [0+1+0 248 0+1+0] [0+1+0 26.46875 0+1+0] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/aspect-ratio-auto-and-ratio.txt b/Tests/LibWeb/Layout/expected/aspect-ratio-auto-and-ratio.txt
index 80da7f742af..28b345ebc01 100644
--- a/Tests/LibWeb/Layout/expected/aspect-ratio-auto-and-ratio.txt
+++ b/Tests/LibWeb/Layout/expected/aspect-ratio-auto-and-ratio.txt
@@ -1,11 +1,11 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 320 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 304 0+0+8] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 323 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 307 0+0+8] children: not-inline
BlockContainer <div> at [9,9] [0+1+0 200 0+1+582] [0+1+0 100 0+1+0] children: not-inline
- BlockContainer <(anonymous)> at [8,110] [0+0+0 784 0+0+0] [0+0+0 202 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [8,110] [0+0+0 784 0+0+0] [0+0+0 205 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [9,111 200x200] baseline: 202
ImageBox <img> at [9,111] [0+1+0 200 0+1+0] [0+1+0 200 0+1+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x320] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x323] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/aspect-ratio-auto.txt b/Tests/LibWeb/Layout/expected/aspect-ratio-auto.txt
index ab5ed2a1db2..87661f7cc80 100644
--- a/Tests/LibWeb/Layout/expected/aspect-ratio-auto.txt
+++ b/Tests/LibWeb/Layout/expected/aspect-ratio-auto.txt
@@ -1,11 +1,11 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 220 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 204 0+0+8] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 223 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 207 0+0+8] children: not-inline
BlockContainer <div> at [9,9] [0+1+0 200 0+1+582] [0+1+0 0 0+1+0] children: not-inline
- BlockContainer <(anonymous)> at [8,10] [0+0+0 784 0+0+0] [0+0+0 202 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [8,10] [0+0+0 784 0+0+0] [0+0+0 205 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [9,11 200x200] baseline: 202
ImageBox <img> at [9,11] [0+1+0 200 0+1+0] [0+1+0 200 0+1+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x220] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x223] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/aspect-ratio-degenerate-ratio.txt b/Tests/LibWeb/Layout/expected/aspect-ratio-degenerate-ratio.txt
index e5b222ac888..0424ec0a8b4 100644
--- a/Tests/LibWeb/Layout/expected/aspect-ratio-degenerate-ratio.txt
+++ b/Tests/LibWeb/Layout/expected/aspect-ratio-degenerate-ratio.txt
@@ -1,8 +1,8 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 219 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 203 0+0+8] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 200x200] baseline: 200
ImageBox <img> at [8,8] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x219] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/aspect-ratio-ratio.txt b/Tests/LibWeb/Layout/expected/aspect-ratio-ratio.txt
index e44fb9e4f16..2844fe81647 100644
--- a/Tests/LibWeb/Layout/expected/aspect-ratio-ratio.txt
+++ b/Tests/LibWeb/Layout/expected/aspect-ratio-ratio.txt
@@ -1,11 +1,11 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 220 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 204 0+0+8] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 223 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 207 0+0+8] children: not-inline
BlockContainer <div> at [9,9] [0+1+0 200 0+1+582] [0+1+0 100 0+1+0] children: not-inline
- BlockContainer <(anonymous)> at [8,110] [0+0+0 784 0+0+0] [0+0+0 102 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [8,110] [0+0+0 784 0+0+0] [0+0+0 105 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [9,111 200x100] baseline: 102
ImageBox <img> at [9,111] [0+1+0 200 0+1+0] [0+1+0 100 0+1+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x220] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x223] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-image-only.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-image-only.txt
index 44b9dd0a668..bc7817ddc62 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-image-only.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-image-only.txt
@@ -1,13 +1,13 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 442 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 426 0+0+8] children: inline
- frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 420x420] baseline: 423
- BlockContainer <button> at [17,11] inline-block [0+2+7 420 7+2+0] [0+2+1 420 1+2+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 420 0+0+0] [0+0+0 420 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 420 0+0+0] [0+0+0 420 0+0+0] [BFC] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 445 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 429 0+0+8] children: inline
+ frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 420x423] baseline: 423
+ BlockContainer <button> at [17,11] inline-block [0+2+7 420 7+2+0] [0+2+1 423 1+2+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 420 0+0+0] [0+0+0 423 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 420 0+0+0] [0+0+0 423 0+0+0] [BFC] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [17,11 420x420] baseline: 420
ImageBox <img> at [17,11] [0+0+0 420 0+0+0] [0+0+0 420 0+0+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x442] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x445] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/content-image-principal-box.txt b/Tests/LibWeb/Layout/expected/content-image-principal-box.txt
index 207e64f8667..90240371923 100644
--- a/Tests/LibWeb/Layout/expected/content-image-principal-box.txt
+++ b/Tests/LibWeb/Layout/expected/content-image-principal-box.txt
@@ -1,19 +1,19 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 276 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 260 0+0+8] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 282 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 266 0+0+8] children: not-inline
ImageBox <div.replaced> at [8,8] [0+0+0 40 0+0+744] [0+0+0 40 0+0+0] children: not-inline
- BlockContainer <(anonymous)> at [8,48] [0+0+0 784 0+0+0] [0+0+0 40 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [8,48] [0+0+0 784 0+0+0] [0+0+0 43 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,48 40x40] baseline: 40
ImageBox <span.replaced.inline> at [8,48] [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] children: not-inline
TextNode <#text> (not painted)
- ImageBox <div.replaced.list> at [8,88] [0+0+0 40 0+0+744] [0+0+0 40 0+0+0] children: not-inline
- ImageBox <div.replaced.layered> at [8,128] [0+0+0 40 0+0+744] [0+0+0 40 0+0+0] children: not-inline
- ImageBox <div.set> at [8,168] [0+0+0 20 0+0+764] [0+0+0 20 0+0+0] children: not-inline
- BlockContainer <(anonymous)> at [8,188] [0+0+0 784 0+0+0] [0+0+0 40 0+0+0] children: inline
- frag 0 from ImageBox start: 0, length: 0, rect: [8,188 40x40] baseline: 40
- ImageBox <img.replaced> at [8,188] [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] children: not-inline
+ ImageBox <div.replaced.list> at [8,91] [0+0+0 40 0+0+744] [0+0+0 40 0+0+0] children: not-inline
+ ImageBox <div.replaced.layered> at [8,131] [0+0+0 40 0+0+744] [0+0+0 40 0+0+0] children: not-inline
+ ImageBox <div.set> at [8,171] [0+0+0 20 0+0+764] [0+0+0 20 0+0+0] children: not-inline
+ BlockContainer <(anonymous)> at [8,191] [0+0+0 784 0+0+0] [0+0+0 43 0+0+0] children: inline
+ frag 0 from ImageBox start: 0, length: 0, rect: [8,191 40x40] baseline: 40
+ ImageBox <img.replaced> at [8,191] [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] children: not-inline
TextNode <#text> (not painted)
- ImageBox <div.replaced> at [8,228] [0+0+0 40 0+0+744] [0+0+0 40 0+0+0] children: not-inline
+ ImageBox <div.replaced> at [8,234] [0+0+0 40 0+0+744] [0+0+0 40 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x276] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x282] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/content-image-set.txt b/Tests/LibWeb/Layout/expected/content-image-set.txt
index b9d1ff19e5e..328f038bf88 100644
--- a/Tests/LibWeb/Layout/expected/content-image-set.txt
+++ b/Tests/LibWeb/Layout/expected/content-image-set.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline
- BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 200 0+0+0] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 219 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 203 0+0+8] children: not-inline
+ BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 203 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 200x200] baseline: 200
ImageBox <(anonymous)> at [8,8] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x219] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/content-image-simple.txt b/Tests/LibWeb/Layout/expected/content-image-simple.txt
index 570e6df0497..e7c0ae0b402 100644
--- a/Tests/LibWeb/Layout/expected/content-image-simple.txt
+++ b/Tests/LibWeb/Layout/expected/content-image-simple.txt
@@ -1,7 +1,7 @@
-Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x1222]
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 1222 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 1206 0+0+8] children: not-inline
- BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 1206 0+0+0] children: inline
+Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x1225]
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 1225 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 1209 0+0+8] children: not-inline
+ BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 1209 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,814 400x400] baseline: 400
InlineNode <(anonymous)> at [8,395] [0+0+0 454.796875 0+0+0] [0+0+0 419 0+0+0]
frag 0 from GeneratedTextNode start: 0, length: 3, rect: [8,395 27.15625x16] baseline: 13
@@ -21,4 +21,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x1222] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x1225] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/grid/image-in-grid.txt b/Tests/LibWeb/Layout/expected/grid/image-in-grid.txt
index cd5ab928869..4c70d05e31e 100644
--- a/Tests/LibWeb/Layout/expected/grid/image-in-grid.txt
+++ b/Tests/LibWeb/Layout/expected/grid/image-in-grid.txt
@@ -1,11 +1,11 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 24 0+0+8] children: not-inline
- Box <div.grid-container> at [8,8] [0+0+0 784 0+0+0] [0+0+0 24 0+0+0] [GFC] children: not-inline
- BlockContainer <div.wrapper> at [8,8] [0+0+0 64 0+0+0] [0+0+0 24 0+0+0] [BFC] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 43 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 27 0+0+8] children: not-inline
+ Box <div.grid-container> at [8,8] [0+0+0 784 0+0+0] [0+0+0 27 0+0+0] [GFC] children: not-inline
+ BlockContainer <div.wrapper> at [8,8] [0+0+0 64 0+0+0] [0+0+0 27 0+0+0] [BFC] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 64x24] baseline: 24
ImageBox <img> at [8,8] [0+0+0 64 0+0+0] [0+0+0 24 0+0+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x40] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x43] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/grid/inline-svg-cyclic-percentage-width.txt b/Tests/LibWeb/Layout/expected/grid/inline-svg-cyclic-percentage-width.txt
index 1785d3ff552..87aa64bd162 100644
--- a/Tests/LibWeb/Layout/expected/grid/inline-svg-cyclic-percentage-width.txt
+++ b/Tests/LibWeb/Layout/expected/grid/inline-svg-cyclic-percentage-width.txt
@@ -1,11 +1,11 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 332 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [0,0] [0+0+0 800 0+0+0] [0+0+0 332 0+0+0] children: not-inline
- Box <div.grid> at [0,0] [0+0+0 800 0+0+0] [0+0+0 332 0+0+0] [GFC] children: not-inline
- BlockContainer <p> at [0,16] [0+0+0 300 0+0+0] [16+0+0 300 0+0+16] [BFC] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 335 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [0,0] [0+0+0 800 0+0+0] [0+0+0 335 0+0+0] children: not-inline
+ Box <div.grid> at [0,0] [0+0+0 800 0+0+0] [0+0+0 335 0+0+0] [GFC] children: not-inline
+ BlockContainer <p> at [0,16] [0+0+0 300 0+0+0] [16+0+0 303 0+0+16] [BFC] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [0,16 300x300] baseline: 300
SVGSVGBox <svg> at [0,16] [0+0+0 300 0+0+0] [0+0+0 300 0+0+0] viewport-transform=[3.030303 0 0 3.030303 0 0] [SVG] children: not-inline
SVGGeometryBox <circle> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x332] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x335] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/image-with-max-width-and-max-height.txt b/Tests/LibWeb/Layout/expected/image-with-max-width-and-max-height.txt
index 14eb16d656c..566dee4518a 100644
--- a/Tests/LibWeb/Layout/expected/image-with-max-width-and-max-height.txt
+++ b/Tests/LibWeb/Layout/expected/image-with-max-width-and-max-height.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 70 0+1+0] [BFC] children: not-inline
- BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 52 0+1+8] children: inline
+ BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 73 0+1+0] [BFC] children: not-inline
+ BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 55 0+1+8] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [11,11 66.65625x50] baseline: 52
ImageBox <img> at [11,11] [0+1+0 66.65625 0+1+0] [0+1+0 50 0+1+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [1,1 798x70] (z-index: auto)
+ SC for BlockContainer<HTML> [1,1 798x73] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/image-with-multiple-constraint-violations.txt b/Tests/LibWeb/Layout/expected/image-with-multiple-constraint-violations.txt
index 901af6bd948..30e6c4e3b17 100644
--- a/Tests/LibWeb/Layout/expected/image-with-multiple-constraint-violations.txt
+++ b/Tests/LibWeb/Layout/expected/image-with-multiple-constraint-violations.txt
@@ -1,8 +1,8 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 80 0+1+0] [BFC] children: not-inline
- BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 62 0+1+8] children: inline
+ BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 83 0+1+0] [BFC] children: not-inline
+ BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 65 0+1+8] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [11,11 80x60] baseline: 62
ImageBox <img> at [11,11] [0+1+0 80 0+1+0] [0+1+0 60 0+1+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [1,1 798x80] (z-index: auto)
+ SC for BlockContainer<HTML> [1,1 798x83] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/images-replaced-after-first-layout.txt b/Tests/LibWeb/Layout/expected/images-replaced-after-first-layout.txt
index 2186d49cf6c..ee366499c6c 100644
--- a/Tests/LibWeb/Layout/expected/images-replaced-after-first-layout.txt
+++ b/Tests/LibWeb/Layout/expected/images-replaced-after-first-layout.txt
@@ -1,16 +1,16 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 539 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 523 0+0+8] children: not-inline
- BlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 120 0+0+0] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 542 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 526 0+0+8] children: not-inline
+ BlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 123 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 120x120] baseline: 120
ImageBox <img#image> at [8,8] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: not-inline
TextNode <#text> (not painted)
- BlockContainer <div#generated.swapped> at [8,128] [0+0+0 784 0+0+0] [0+0+0 403 0+0+0] children: inline
- InlineNode <(anonymous)> at [8,515] [0+0+0 520 0+0+0] [0+0+0 16 0+0+0]
- frag 0 from ImageBox start: 0, length: 0, rect: [8,408 120x120] baseline: 120
- frag 1 from ImageBox start: 0, length: 0, rect: [128,128 400x400] baseline: 400
- ImageBox <(anonymous)> at [8,408] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: not-inline
- ImageBox <(anonymous)> at [128,128] [0+0+0 400 0+0+0] [0+0+0 400 0+0+0] children: not-inline
+ BlockContainer <div#generated.swapped> at [8,131] [0+0+0 784 0+0+0] [0+0+0 403 0+0+0] children: inline
+ InlineNode <(anonymous)> at [8,518] [0+0+0 520 0+0+0] [0+0+0 16 0+0+0]
+ frag 0 from ImageBox start: 0, length: 0, rect: [8,411 120x120] baseline: 120
+ frag 1 from ImageBox start: 0, length: 0, rect: [128,131 400x400] baseline: 400
+ ImageBox <(anonymous)> at [8,411] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: not-inline
+ ImageBox <(anonymous)> at [128,131] [0+0+0 400 0+0+0] [0+0+0 400 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x539] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x542] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/img-max-width-border-box.txt b/Tests/LibWeb/Layout/expected/img-max-width-border-box.txt
index 46eab97f284..9e3e3ece672 100644
--- a/Tests/LibWeb/Layout/expected/img-max-width-border-box.txt
+++ b/Tests/LibWeb/Layout/expected/img-max-width-border-box.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 96 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 80 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 99 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 83 0+0+8] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [23,23 50x50] baseline: 80
ImageBox <img> at [23,23] [0+10+5 50 5+10+0] [0+10+5 50 5+10+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x96] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x99] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/img-with-box-sizing-border-box-and-padding.txt b/Tests/LibWeb/Layout/expected/img-with-box-sizing-border-box-and-padding.txt
index 149d2a2762d..32cb68f86cf 100644
--- a/Tests/LibWeb/Layout/expected/img-with-box-sizing-border-box-and-padding.txt
+++ b/Tests/LibWeb/Layout/expected/img-with-box-sizing-border-box-and-padding.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [29,29 58x58] baseline: 100
frag 1 from ImageBox start: 0, length: 0, rect: [129,29 58x58] baseline: 100
ImageBox <img.with-height> at [29,29] [0+1+20 58 20+1+0] [0+1+20 58 20+1+0] children: not-inline
@@ -8,4 +8,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/img-with-percentage-max-width-and-indefinite-containing-block-width.txt b/Tests/LibWeb/Layout/expected/img-with-percentage-max-width-and-indefinite-containing-block-width.txt
index a09600f946d..87b0a41e09b 100644
--- a/Tests/LibWeb/Layout/expected/img-with-percentage-max-width-and-indefinite-containing-block-width.txt
+++ b/Tests/LibWeb/Layout/expected/img-with-percentage-max-width-and-indefinite-containing-block-width.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 136 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 120 0+0+672] [8+0+0 120 0+0+8] children: not-inline
- BlockContainer <div> at [8,8] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 139 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 120 0+0+672] [8+0+0 123 0+0+8] children: not-inline
+ BlockContainer <div> at [8,8] [0+0+0 120 0+0+0] [0+0+0 123 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 120x120] baseline: 120
ImageBox <img> at [8,8] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x136] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x139] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/layout-tree-update/content-visibility-hidden-preserves-svg-resource-subtree.txt b/Tests/LibWeb/Layout/expected/layout-tree-update/content-visibility-hidden-preserves-svg-resource-subtree.txt
index e7f71f37ad0..7f561280ab9 100644
--- a/Tests/LibWeb/Layout/expected/layout-tree-update/content-visibility-hidden-preserves-svg-resource-subtree.txt
+++ b/Tests/LibWeb/Layout/expected/layout-tree-update/content-visibility-hidden-preserves-svg-resource-subtree.txt
@@ -1,8 +1,8 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: not-inline
BlockContainer <div#hidden> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 100 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 103 0+0+0] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100
SVGSVGBox <svg#visible> at [8,8] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect#target> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
@@ -11,5 +11,5 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
SC for BlockContainer<DIV>#hidden [8,8 784x0] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/layout-tree-update/content-visibility-hidden-rebuilds-internal-svg-resource-subtree.txt b/Tests/LibWeb/Layout/expected/layout-tree-update/content-visibility-hidden-rebuilds-internal-svg-resource-subtree.txt
index 1a2185a44f3..909234df694 100644
--- a/Tests/LibWeb/Layout/expected/layout-tree-update/content-visibility-hidden-rebuilds-internal-svg-resource-subtree.txt
+++ b/Tests/LibWeb/Layout/expected/layout-tree-update/content-visibility-hidden-rebuilds-internal-svg-resource-subtree.txt
@@ -1,7 +1,7 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: not-inline
- BlockContainer <div#container> at [8,8] [0+0+0 784 0+0+0] [0+0+0 150 0+0+0] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: not-inline
+ BlockContainer <div#container> at [8,8] [0+0+0 784 0+0+0] [0+0+0 153 0+0+0] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect#target> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
@@ -10,4 +10,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
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 503370d5567..1577c68803c 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,10 +1,10 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGraphicsBox <use> at [0,0] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] children: not-inline
SVGGraphicsBox <symbol#a> at [0,0] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [BFC] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/misc/create-iframes-using-innerhtml.txt b/Tests/LibWeb/Layout/expected/misc/create-iframes-using-innerhtml.txt
index 240b645304d..2aef326d962 100644
--- a/Tests/LibWeb/Layout/expected/misc/create-iframes-using-innerhtml.txt
+++ b/Tests/LibWeb/Layout/expected/misc/create-iframes-using-innerhtml.txt
@@ -4,61 +4,61 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <div#container> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: not-inline
BlockContainer <div> at [8,8] positioned [0+0+0 1 0+0+0] [0+0+0 1 0+0+0] [BFC] children: inline
frag 0 from NavigableContainerViewport start: 0, length: 0, rect: [18,18 10x10] baseline: 30
- frag 1 from NavigableContainerViewport start: 0, length: 0, rect: [18,48 10x10] baseline: 30
- frag 2 from NavigableContainerViewport start: 0, length: 0, rect: [18,78 10x10] baseline: 30
- frag 3 from NavigableContainerViewport start: 0, length: 0, rect: [18,108 10x10] baseline: 30
- frag 4 from NavigableContainerViewport start: 0, length: 0, rect: [18,138 10x10] baseline: 30
- frag 5 from NavigableContainerViewport start: 0, length: 0, rect: [18,168 10x10] baseline: 30
- frag 6 from NavigableContainerViewport start: 0, length: 0, rect: [18,198 10x10] baseline: 30
- frag 7 from NavigableContainerViewport start: 0, length: 0, rect: [18,228 10x10] baseline: 30
- frag 8 from NavigableContainerViewport start: 0, length: 0, rect: [18,258 10x10] baseline: 30
- frag 9 from NavigableContainerViewport start: 0, length: 0, rect: [18,288 10x10] baseline: 30
+ frag 1 from NavigableContainerViewport start: 0, length: 0, rect: [18,51 10x10] baseline: 30
+ frag 2 from NavigableContainerViewport start: 0, length: 0, rect: [18,84 10x10] baseline: 30
+ frag 3 from NavigableContainerViewport start: 0, length: 0, rect: [18,117 10x10] baseline: 30
+ frag 4 from NavigableContainerViewport start: 0, length: 0, rect: [18,150 10x10] baseline: 30
+ frag 5 from NavigableContainerViewport start: 0, length: 0, rect: [18,183 10x10] baseline: 30
+ frag 6 from NavigableContainerViewport start: 0, length: 0, rect: [18,216 10x10] baseline: 30
+ frag 7 from NavigableContainerViewport start: 0, length: 0, rect: [18,249 10x10] baseline: 30
+ frag 8 from NavigableContainerViewport start: 0, length: 0, rect: [18,282 10x10] baseline: 30
+ frag 9 from NavigableContainerViewport start: 0, length: 0, rect: [18,315 10x10] baseline: 30
NavigableContainerViewport <iframe> at [18,18] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- NavigableContainerViewport <iframe> at [18,48] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
+ NavigableContainerViewport <iframe> at [18,51] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- NavigableContainerViewport <iframe> at [18,78] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
+ NavigableContainerViewport <iframe> at [18,84] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- NavigableContainerViewport <iframe> at [18,108] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
+ NavigableContainerViewport <iframe> at [18,117] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- NavigableContainerViewport <iframe> at [18,138] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
+ NavigableContainerViewport <iframe> at [18,150] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- NavigableContainerViewport <iframe> at [18,168] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
+ NavigableContainerViewport <iframe> at [18,183] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- NavigableContainerViewport <iframe> at [18,198] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
+ NavigableContainerViewport <iframe> at [18,216] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- NavigableContainerViewport <iframe> at [18,228] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
+ NavigableContainerViewport <iframe> at [18,249] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- NavigableContainerViewport <iframe> at [18,258] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
+ NavigableContainerViewport <iframe> at [18,282] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- NavigableContainerViewport <iframe> at [18,288] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
+ NavigableContainerViewport <iframe> at [18,315] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/replaced-within-max-content.txt b/Tests/LibWeb/Layout/expected/replaced-within-max-content.txt
index eb73f6aac1e..25238f50e07 100644
--- a/Tests/LibWeb/Layout/expected/replaced-within-max-content.txt
+++ b/Tests/LibWeb/Layout/expected/replaced-within-max-content.txt
@@ -1,7 +1,7 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: not-inline
- BlockContainer <div.container> at [8,8] [0+0+0 150 0+0+634] [0+0+0 150 0+0+0] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: not-inline
+ BlockContainer <div.container> at [8,8] [0+0+0 150 0+0+634] [0+0+0 153 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 150x150] baseline: 150
ImageBox <img.replaced> at [8,8] [0+0+0 150 0+0+0] [0+0+0 150 0+0+0] children: not-inline
(SVG-as-image isolated context)
@@ -11,4 +11,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/resolve-cyclic-percentage-against-zero-when-available-size-is-min-content.txt b/Tests/LibWeb/Layout/expected/resolve-cyclic-percentage-against-zero-when-available-size-is-min-content.txt
index bde15634288..44937941128 100644
--- a/Tests/LibWeb/Layout/expected/resolve-cyclic-percentage-against-zero-when-available-size-is-min-content.txt
+++ b/Tests/LibWeb/Layout/expected/resolve-cyclic-percentage-against-zero-when-available-size-is-min-content.txt
@@ -1,18 +1,18 @@
-Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x1252]
- BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 1250 0+1+0] [BFC] children: not-inline
- BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 1232 0+1+8] children: not-inline
+Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x1261]
+ BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 1259 0+1+0] [BFC] children: not-inline
+ BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 1241 0+1+8] children: not-inline
BlockContainer <div.w.min> at [11,11] [0+1+0 2 0+1+776] [0+1+0 16 0+1+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [12,21 2x2] baseline: 4
ImageBox <img> at [12,21] [0+1+0 2 0+1+0] [0+1+0 2 0+1+0] children: not-inline
- BlockContainer <div.w.max> at [11,29] [0+1+0 402 0+1+376] [0+1+0 404 0+1+0] children: inline
+ BlockContainer <div.w.max> at [11,29] [0+1+0 402 0+1+376] [0+1+0 407 0+1+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [12,30 402x402] baseline: 404
ImageBox <img> at [12,30] [0+1+0 402 0+1+0] [0+1+0 402 0+1+0] children: not-inline
- BlockContainer <div.h.min> at [11,435] [0+1+0 778 0+1+0] [0+1+0 402 0+1+0] children: inline
- frag 0 from ImageBox start: 0, length: 0, rect: [12,436 400x400] baseline: 402
- ImageBox <img> at [12,436] [0+1+0 400 0+1+0] [0+1+0 400 0+1+0] children: not-inline
- BlockContainer <div.h.max> at [11,839] [0+1+0 778 0+1+0] [0+1+0 402 0+1+0] children: inline
- frag 0 from ImageBox start: 0, length: 0, rect: [12,840 400x400] baseline: 402
- ImageBox <img> at [12,840] [0+1+0 400 0+1+0] [0+1+0 400 0+1+0] children: not-inline
+ BlockContainer <div.h.min> at [11,438] [0+1+0 778 0+1+0] [0+1+0 405 0+1+0] children: inline
+ frag 0 from ImageBox start: 0, length: 0, rect: [12,439 400x400] baseline: 402
+ ImageBox <img> at [12,439] [0+1+0 400 0+1+0] [0+1+0 400 0+1+0] children: not-inline
+ BlockContainer <div.h.max> at [11,845] [0+1+0 778 0+1+0] [0+1+0 405 0+1+0] children: inline
+ frag 0 from ImageBox start: 0, length: 0, rect: [12,846 400x400] baseline: 402
+ ImageBox <img> at [12,846] [0+1+0 400 0+1+0] [0+1+0 400 0+1+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [1,1 798x1250] (z-index: auto)
+ SC for BlockContainer<HTML> [1,1 798x1259] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg-foreignobject-absolute-positioning.txt b/Tests/LibWeb/Layout/expected/svg-foreignobject-absolute-positioning.txt
index d589866e37a..d8ce6de74e9 100644
--- a/Tests/LibWeb/Layout/expected/svg-foreignobject-absolute-positioning.txt
+++ b/Tests/LibWeb/Layout/expected/svg-foreignobject-absolute-positioning.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 219 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 203 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 200x200] baseline: 200
SVGSVGBox <svg> at [8,8] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGForeignObjectBox <foreignObject> at [50,50] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] [BFC] children: not-inline
@@ -11,5 +11,5 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x219] (z-index: auto)
SC for SVGForeignObjectBox<foreignObject> [50,50 100x100] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg-preserve-aspect-ratio.txt b/Tests/LibWeb/Layout/expected/svg-preserve-aspect-ratio.txt
index 61533a2a2e6..49062d0c191 100644
--- a/Tests/LibWeb/Layout/expected/svg-preserve-aspect-ratio.txt
+++ b/Tests/LibWeb/Layout/expected/svg-preserve-aspect-ratio.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 273 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 257 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 276 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 260 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [9,84 100x50] baseline: 52
frag 1 from TextNode start: 0, length: 1, rect: [110,122 8x16] baseline: 13
" "
@@ -23,19 +23,19 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 13 from TextNode start: 0, length: 1, rect: [720,122 8x16] baseline: 13
" "
frag 14 from SVGSVGBox start: 0, length: 0, rect: [729,9 50x125] baseline: 127
- frag 15 from SVGSVGBox start: 0, length: 0, rect: [9,136 50x125] baseline: 127
- frag 16 from TextNode start: 0, length: 1, rect: [60,249 8x16] baseline: 13
+ frag 15 from SVGSVGBox start: 0, length: 0, rect: [9,139 50x125] baseline: 127
+ frag 16 from TextNode start: 0, length: 1, rect: [60,252 8x16] baseline: 13
" "
- frag 17 from SVGSVGBox start: 0, length: 0, rect: [69,136 50x125] baseline: 127
- frag 18 from TextNode start: 0, length: 1, rect: [120,249 8x16] baseline: 13
+ frag 17 from SVGSVGBox start: 0, length: 0, rect: [69,139 50x125] baseline: 127
+ frag 18 from TextNode start: 0, length: 1, rect: [120,252 8x16] baseline: 13
" "
- frag 19 from SVGSVGBox start: 0, length: 0, rect: [129,136 50x125] baseline: 127
- frag 20 from TextNode start: 0, length: 1, rect: [180,249 8x16] baseline: 13
+ frag 19 from SVGSVGBox start: 0, length: 0, rect: [129,139 50x125] baseline: 127
+ frag 20 from TextNode start: 0, length: 1, rect: [180,252 8x16] baseline: 13
" "
- frag 21 from SVGSVGBox start: 0, length: 0, rect: [189,136 50x125] baseline: 127
- frag 22 from TextNode start: 0, length: 1, rect: [240,249 8x16] baseline: 13
+ frag 21 from SVGSVGBox start: 0, length: 0, rect: [189,139 50x125] baseline: 127
+ frag 22 from TextNode start: 0, length: 1, rect: [240,252 8x16] baseline: 13
" "
- frag 23 from SVGSVGBox start: 0, length: 0, rect: [249,201 160x60] baseline: 62
+ frag 23 from SVGSVGBox start: 0, length: 0, rect: [249,204 160x60] baseline: 62
SVGSVGBox <svg> at [9,84] [0+1+0 100 0+1+0] [0+1+0 50 0+1+0] viewport-transform=[0.5 0 0 0.5 25 0] [SVG] children: not-inline
SVGGeometryBox <circle> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
TextNode <#text> (not painted)
@@ -60,21 +60,21 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGSVGBox <svg> at [729,9] [0+1+0 50 0+1+0] [0+1+0 125 0+1+0] viewport-transform=[0.5 0 0 0.5 0 37.5] [SVG] children: not-inline
SVGGeometryBox <circle> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
TextNode <#text> (not painted)
- SVGSVGBox <svg> at [9,136] [0+1+0 50 0+1+0] [0+1+0 125 0+1+0] viewport-transform=[0.5 0 0 0.5 0 75] [SVG] children: not-inline
+ SVGSVGBox <svg> at [9,139] [0+1+0 50 0+1+0] [0+1+0 125 0+1+0] viewport-transform=[0.5 0 0 0.5 0 75] [SVG] children: not-inline
SVGGeometryBox <circle> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
TextNode <#text> (not painted)
- SVGSVGBox <svg> at [69,136] [0+1+0 50 0+1+0] [0+1+0 125 0+1+0] viewport-transform=[1.25 0 0 1.25 0 0] [SVG] children: not-inline
+ SVGSVGBox <svg> at [69,139] [0+1+0 50 0+1+0] [0+1+0 125 0+1+0] viewport-transform=[1.25 0 0 1.25 0 0] [SVG] children: not-inline
SVGGeometryBox <circle> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
TextNode <#text> (not painted)
- SVGSVGBox <svg> at [129,136] [0+1+0 50 0+1+0] [0+1+0 125 0+1+0] viewport-transform=[1.25 0 0 1.25 -37.5 0] [SVG] children: not-inline
+ SVGSVGBox <svg> at [129,139] [0+1+0 50 0+1+0] [0+1+0 125 0+1+0] viewport-transform=[1.25 0 0 1.25 -37.5 0] [SVG] children: not-inline
SVGGeometryBox <circle> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
TextNode <#text> (not painted)
- SVGSVGBox <svg> at [189,136] [0+1+0 50 0+1+0] [0+1+0 125 0+1+0] viewport-transform=[1.25 0 0 1.25 -75 0] [SVG] children: not-inline
+ SVGSVGBox <svg> at [189,139] [0+1+0 50 0+1+0] [0+1+0 125 0+1+0] viewport-transform=[1.25 0 0 1.25 -75 0] [SVG] children: not-inline
SVGGeometryBox <circle> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
TextNode <#text> (not painted)
- SVGSVGBox <svg> at [249,201] [0+1+0 160 0+1+0] [0+1+0 60 0+1+0] viewport-transform=[1.6 0 0 0.6 0 0] [SVG] children: not-inline
+ SVGSVGBox <svg> at [249,204] [0+1+0 160 0+1+0] [0+1+0 60 0+1+0] viewport-transform=[1.6 0 0 0.6 0 0] [SVG] children: not-inline
SVGGeometryBox <circle> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x273] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x276] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg-text-dominant-baseline.txt b/Tests/LibWeb/Layout/expected/svg-text-dominant-baseline.txt
index 5e329307f93..a1ba540ec8c 100644
--- a/Tests/LibWeb/Layout/expected/svg-text-dominant-baseline.txt
+++ b/Tests/LibWeb/Layout/expected/svg-text-dominant-baseline.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 416 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 400 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 419 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 403 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 400x400] baseline: 400
SVGSVGBox <svg> at [8,8] [0+0+0 400 0+0+0] [0+0+0 400 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <line> at [-0.25,49.75] [0+0+0 400.5 0+0+0] [0+0+0 0.5 0+0+0] children: not-inline
@@ -27,4 +27,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x416] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x419] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg-text-with-percentage-values.txt b/Tests/LibWeb/Layout/expected/svg-text-with-percentage-values.txt
index d5805409025..1663a0a1dd3 100644
--- a/Tests/LibWeb/Layout/expected/svg-text-with-percentage-values.txt
+++ b/Tests/LibWeb/Layout/expected/svg-text-with-percentage-values.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 277.328125 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 261.328125 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 280.328125 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 264.328125 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x261.328125] baseline: 261.328125
SVGSVGBox <svg> at [8,8] [0+0+0 784 0+0+0] [0+0+0 261.328125 0+0+0] viewport-transform=[3.2666016 0 0 3.2666016 0 0] [SVG] children: not-inline
SVGTextBox <text.small> at [24,17.609375] [0+0+0 16.265625 0+0+0] [0+0+0 13 0+0+0] children: inline
@@ -14,4 +14,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x277.328125] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x280.328125] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg-text-with-viewbox.txt b/Tests/LibWeb/Layout/expected/svg-text-with-viewbox.txt
index c94b142b6c7..8794f190d79 100644
--- a/Tests/LibWeb/Layout/expected/svg-text-with-viewbox.txt
+++ b/Tests/LibWeb/Layout/expected/svg-text-with-viewbox.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 277.328125 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 261.328125 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 280.328125 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 264.328125 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x261.328125] baseline: 261.328125
SVGSVGBox <svg> at [8,8] [0+0+0 784 0+0+0] [0+0+0 261.328125 0+0+0] viewport-transform=[3.2666016 0 0 3.2666016 0 0] [SVG] children: not-inline
SVGTextBox <text.small> at [20,24.609375] [0+0+0 16.265625 0+0+0] [0+0+0 13 0+0+0] children: inline
@@ -14,4 +14,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x277.328125] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x280.328125] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg-transforms-and-viewboxes.txt b/Tests/LibWeb/Layout/expected/svg-transforms-and-viewboxes.txt
index 58f0f5d4d7b..eb1732c4308 100644
--- a/Tests/LibWeb/Layout/expected/svg-transforms-and-viewboxes.txt
+++ b/Tests/LibWeb/Layout/expected/svg-transforms-and-viewboxes.txt
@@ -1,6 +1,6 @@
-Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x700]
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 700 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [50,50] [50+0+0 700 0+0+50] [50+0+0 600 0+0+50] children: inline
+Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x709]
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 709 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [50,50] [50+0+0 700 0+0+50] [50+0+0 609 0+0+50] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [50,150 200x100] baseline: 100
frag 1 from TextNode start: 0, length: 1, rect: [250,237 8x16] baseline: 13
" "
@@ -8,14 +8,14 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 3 from TextNode start: 0, length: 1, rect: [458,237 8x16] baseline: 13
" "
frag 4 from SVGSVGBox start: 0, length: 0, rect: [466,50 200x200] baseline: 200
- frag 5 from SVGSVGBox start: 0, length: 0, rect: [50,250 200x200] baseline: 200
- frag 6 from TextNode start: 0, length: 1, rect: [250,437 8x16] baseline: 13
+ frag 5 from SVGSVGBox start: 0, length: 0, rect: [50,253 200x200] baseline: 200
+ frag 6 from TextNode start: 0, length: 1, rect: [250,440 8x16] baseline: 13
" "
- frag 7 from SVGSVGBox start: 0, length: 0, rect: [258,250 200x200] baseline: 200
- frag 8 from TextNode start: 0, length: 1, rect: [458,437 8x16] baseline: 13
+ frag 7 from SVGSVGBox start: 0, length: 0, rect: [258,253 200x200] baseline: 200
+ frag 8 from TextNode start: 0, length: 1, rect: [458,440 8x16] baseline: 13
" "
- frag 9 from SVGSVGBox start: 0, length: 0, rect: [466,250 200x200] baseline: 200
- frag 10 from SVGSVGBox start: 0, length: 0, rect: [50,450 200x200] baseline: 200
+ frag 9 from SVGSVGBox start: 0, length: 0, rect: [466,253 200x200] baseline: 200
+ frag 10 from SVGSVGBox start: 0, length: 0, rect: [50,456 200x200] baseline: 200
SVGSVGBox <svg> at [50,150] [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 25 0] [SVG] children: not-inline
SVGGraphicsBox <g> at [10,10] [0+0+0 80 0+0+0] [0+0+0 80 0+0+0] children: not-inline
SVGGeometryBox <path> at [10,10] [0+0+0 80 0+0+0] [0+0+0 80 0+0+0] children: not-inline
@@ -30,22 +30,22 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGGeometryBox <rect> at [-3,-3] [0+0+0 6 0+0+0] [0+0+0 6 0+0+0] children: not-inline
SVGGeometryBox <rect> at [-3,-3] [0+0+0 6 0+0+0] [0+0+0 6 0+0+0] children: not-inline
TextNode <#text> (not painted)
- SVGSVGBox <svg> at [50,250] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[5.882353 0 0 5.882353 70.588234 70.57721] [SVG] children: not-inline
+ SVGSVGBox <svg> at [50,253] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[5.882353 0 0 5.882353 70.588234 70.57721] [SVG] children: not-inline
SVGGeometryBox <rect> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
SVGGeometryBox <rect> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
SVGGeometryBox <rect> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
TextNode <#text> (not painted)
- SVGSVGBox <svg> at [258,250] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[2 0 0 2 100 100] [SVG] children: not-inline
+ SVGSVGBox <svg> at [258,253] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[2 0 0 2 100 100] [SVG] children: not-inline
SVGGeometryBox <circle> at [-10,-10] [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] children: not-inline
SVGGeometryBox <circle> at [-10,-10] [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] children: not-inline
SVGGeometryBox <circle> at [-10,-10] [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] children: not-inline
SVGGeometryBox <circle> at [-10,-10] [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] children: not-inline
TextNode <#text> (not painted)
- SVGSVGBox <svg> at [466,250] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[20 0 0 20 100 100] [SVG] children: not-inline
+ SVGSVGBox <svg> at [466,253] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[20 0 0 20 100 100] [SVG] children: not-inline
SVGGeometryBox <rect> at [-3,-3] [0+0+0 6 0+0+0] [0+0+0 6 0+0+0] children: not-inline
SVGGeometryBox <rect> at [-3,-3] [0+0+0 6 0+0+0] [0+0+0 6 0+0+0] children: not-inline
TextNode <#text> (not painted)
- SVGSVGBox <svg> at [50,450] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[2 0 0 2 0 0] [SVG] children: not-inline
+ SVGSVGBox <svg> at [50,456] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[2 0 0 2 0 0] [SVG] children: not-inline
SVGGeometryBox <rect> at [5,5] [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] children: not-inline
SVGGeometryBox <rect> at [5,5] [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] children: not-inline
SVGGeometryBox <rect> at [5,5] [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] children: not-inline
@@ -53,4 +53,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x700] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x709] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/abspos-svg-polygon.txt b/Tests/LibWeb/Layout/expected/svg/abspos-svg-polygon.txt
index 1aabc6f362b..721ce3ca6e0 100644
--- a/Tests/LibWeb/Layout/expected/svg/abspos-svg-polygon.txt
+++ b/Tests/LibWeb/Layout/expected/svg/abspos-svg-polygon.txt
@@ -1,10 +1,10 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline
- BlockContainer <div> at [8,8] positioned [0+0+0 784 0+0+0] [0+0+0 200 0+0+0] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 219 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 203 0+0+8] children: not-inline
+ BlockContainer <div> at [8,8] positioned [0+0+0 784 0+0+0] [0+0+0 203 0+0+0] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 200x200] baseline: 200
SVGSVGBox <svg> at [8,8] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <polygon> at [40,10] [0+0+0 120 0+0+0] [0+0+0 170 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x219] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/foreignObject-and-mask-with-different-viewbox.txt b/Tests/LibWeb/Layout/expected/svg/foreignObject-and-mask-with-different-viewbox.txt
index 4808153c82c..4e2c0533e5f 100644
--- a/Tests/LibWeb/Layout/expected/svg/foreignObject-and-mask-with-different-viewbox.txt
+++ b/Tests/LibWeb/Layout/expected/svg/foreignObject-and-mask-with-different-viewbox.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 808x808]
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100
SVGSVGBox <svg> at [8,8] positioned [0+0+0 800 0+0+0] [0+0+0 800 0+0+0] viewport-transform=[800 0 0 800 0 0] [SVG] children: not-inline
SVGSVGBox <svg> at [8,8] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
@@ -10,5 +10,5 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGGeometryBox <circle> at [0,0] [0+0+0 1 0+0+0] [0+0+0 1 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
SC for SVGForeignObjectBox<foreignObject> [0,0 40x40] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/foreignObject-percentage-geometry-viewbox.txt b/Tests/LibWeb/Layout/expected/svg/foreignObject-percentage-geometry-viewbox.txt
index f7460305a1e..c06fa8228d6 100644
--- a/Tests/LibWeb/Layout/expected/svg/foreignObject-percentage-geometry-viewbox.txt
+++ b/Tests/LibWeb/Layout/expected/svg/foreignObject-percentage-geometry-viewbox.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 200 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [0,0] [0+0+0 800 0+0+0] [0+0+0 200 0+0+0] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 203 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [0,0] [0+0+0 800 0+0+0] [0+0+0 203 0+0+0] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [0,0 400x200] baseline: 200
SVGSVGBox <svg> at [0,0] [0+0+0 400 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[2 0 0 2 100 0] [SVG] children: not-inline
SVGForeignObjectBox <foreignObject> at [10,10] [0+0+0 50 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline
@@ -8,5 +8,5 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x200] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x203] (z-index: auto)
SC for SVGForeignObjectBox<foreignObject> [10,10 50x50] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/foreignObject-with-svg-namespace-child.txt b/Tests/LibWeb/Layout/expected/svg/foreignObject-with-svg-namespace-child.txt
index 8818242668d..581112baab5 100644
--- a/Tests/LibWeb/Layout/expected/svg/foreignObject-with-svg-namespace-child.txt
+++ b/Tests/LibWeb/Layout/expected/svg/foreignObject-with-svg-namespace-child.txt
@@ -1,16 +1,16 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGForeignObjectBox <foreignObject> at [0,0] [0+0+0 80 0+0+0] [0+0+0 80 0+0+0] [BFC] children: not-inline
BlockContainer <div> at [0,0] [0+0+0 80 0+0+0] [0+0+0 0 0+0+0] children: not-inline
- BlockContainer <(anonymous)> at [0,0] [0+0+0 80 0+0+0] [0+0+0 20 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [0,0] [0+0+0 80 0+0+0] [0+0+0 23 0+0+0] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [0,0 20x20] baseline: 20
SVGSVGBox <svg> at [0,0] [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect> at [0,0] [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
SC for SVGForeignObjectBox<foreignObject> [0,0 80x80] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/nested-viewports.txt b/Tests/LibWeb/Layout/expected/svg/nested-viewports.txt
index 5b9eaa2ab1b..f2247e1b475 100644
--- a/Tests/LibWeb/Layout/expected/svg/nested-viewports.txt
+++ b/Tests/LibWeb/Layout/expected/svg/nested-viewports.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 219 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 203 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 200x200] baseline: 200
SVGSVGBox <svg#a> at [8,8] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[20 0 0 20 0 0] [SVG] children: inline
SVGSVGBox <svg#b> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] viewport-transform=[1.6666666 0 0 1.6666666 0 0] [SVG] children: inline
@@ -10,4 +10,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x219] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/objectBoundingBox-mask.txt b/Tests/LibWeb/Layout/expected/svg/objectBoundingBox-mask.txt
index 000d6a88289..a884a3634f4 100644
--- a/Tests/LibWeb/Layout/expected/svg/objectBoundingBox-mask.txt
+++ b/Tests/LibWeb/Layout/expected/svg/objectBoundingBox-mask.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 416 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 400 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 419 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 403 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 400x400] baseline: 400
SVGSVGBox <svg> at [8,8] [0+0+0 400 0+0+0] [0+0+0 400 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect> at [0,0] [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] children: not-inline
@@ -14,4 +14,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x416] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x419] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/rect-percentages.txt b/Tests/LibWeb/Layout/expected/svg/rect-percentages.txt
index a6ee8117144..11d38569974 100644
--- a/Tests/LibWeb/Layout/expected/svg/rect-percentages.txt
+++ b/Tests/LibWeb/Layout/expected/svg/rect-percentages.txt
@@ -1,10 +1,10 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 219 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 203 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x200] baseline: 200
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[4.6875 0 0 4.6875 0 25] [SVG] children: not-inline
SVGGeometryBox <rect> at [16,16] [0+0+0 21.109375 0+0+0] [0+0+0 21.109375 0+0+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x219] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-circle-percentage-attr.txt b/Tests/LibWeb/Layout/expected/svg/svg-circle-percentage-attr.txt
index 426b5214cf4..7a5570e4367 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-circle-percentage-attr.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-circle-percentage-attr.txt
@@ -1,10 +1,10 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 366 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 350 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 369 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 353 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x350] baseline: 350
SVGSVGBox <svg> at [8,8] [0+0+0 784 0+0+0] [0+0+0 350 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <circle> at [242,20] [0+0+0 300 0+0+0] [0+0+0 300 0+0+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x366] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x369] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-different-types-of-opacity.txt b/Tests/LibWeb/Layout/expected/svg/svg-different-types-of-opacity.txt
index 17053a63289..0a297b09889 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-different-types-of-opacity.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-different-types-of-opacity.txt
@@ -1,10 +1,10 @@
-Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x800]
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 800 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 784 0+0+8] children: inline
+Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x803]
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 803 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 787 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x784] baseline: 784
SVGSVGBox <svg> at [8,8] [0+0+0 784 0+0+0] [0+0+0 784 0+0+0] viewport-transform=[7.84 0 0 7.84 0 0] [SVG] children: not-inline
SVGGeometryBox <circle> at [5,5] [0+0+0 70 0+0+0] [0+0+0 70 0+0+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x800] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x803] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-fill-with-bogus-url.txt b/Tests/LibWeb/Layout/expected/svg/svg-fill-with-bogus-url.txt
index 0d1a01ebacd..196f74acc1e 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-fill-with-bogus-url.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-fill-with-bogus-url.txt
@@ -1,9 +1,9 @@
-Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x800]
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 800 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 784 0+0+8] children: inline
+Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x804]
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 804 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 788 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x784] baseline: 784
SVGSVGBox <svg> at [8,8] [0+0+0 784 0+0+0] [0+0+0 784 0+0+0] viewport-transform=[7.84 0 0 7.84 0 0] [SVG] children: not-inline
SVGGeometryBox <rect> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x800] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x804] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-foreign-object-with-block-element.txt b/Tests/LibWeb/Layout/expected/svg/svg-foreign-object-with-block-element.txt
index 57dffb7a963..e4aefcb9bdd 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-foreign-object-with-block-element.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-foreign-object-with-block-element.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGForeignObjectBox <foreignObject> at [0,0] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] [BFC] children: not-inline
@@ -10,5 +10,5 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
SC for SVGForeignObjectBox<foreignObject> [0,0 100x100] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-g-inside-g.txt b/Tests/LibWeb/Layout/expected/svg/svg-g-inside-g.txt
index 4581a5c87d6..5509d8574d1 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-g-inside-g.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-g-inside-g.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGraphicsBox <g> at [50,50] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
@@ -9,4 +9,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-g-with-opacity.txt b/Tests/LibWeb/Layout/expected/svg/svg-g-with-opacity.txt
index ebddd835fe8..be49c56e36c 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-g-with-opacity.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-g-with-opacity.txt
@@ -1,6 +1,6 @@
-Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x800]
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 800 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 784 0+0+8] children: inline
+Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x803]
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 803 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 787 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x784] baseline: 784
SVGSVGBox <svg> at [8,8] [0+0+0 784 0+0+0] [0+0+0 784 0+0+0] viewport-transform=[7.84 0 0 7.84 0 0] [SVG] children: not-inline
SVGGraphicsBox <g> at [14.5,14.5] [0+0+0 71 0+0+0] [0+0+0 71 0+0+0] children: not-inline
@@ -9,4 +9,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x800] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x803] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-inside-svg-with-xy.txt b/Tests/LibWeb/Layout/expected/svg/svg-inside-svg-with-xy.txt
index 458ab1967ba..598ccfae107 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-inside-svg-with-xy.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-inside-svg-with-xy.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: inline
SVGSVGBox <svg> at [10,0] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
@@ -10,4 +10,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-inside-svg.txt b/Tests/LibWeb/Layout/expected/svg/svg-inside-svg.txt
index 5e93b6f4221..936b295212a 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-inside-svg.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-inside-svg.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 24 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 43 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 27 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 24x24] baseline: 24
SVGSVGBox <svg> at [8,8] [0+0+0 24 0+0+0] [0+0+0 24 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGraphicsBox <g> at [0,0] [0+0+0 24 0+0+0] [0+0+0 24 0+0+0] children: inline
@@ -8,4 +8,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGGeometryBox <rect> at [0,0] [0+0+0 24 0+0+0] [0+0+0 24 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x40] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x43] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-line-with-percentage-values.txt b/Tests/LibWeb/Layout/expected/svg/svg-line-with-percentage-values.txt
index 6df5c70eb47..7dd334125fb 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-line-with-percentage-values.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-line-with-percentage-values.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 408 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 392 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 411 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 395 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x392] baseline: 392
SVGSVGBox <svg> at [8,8] [0+0+0 784 0+0+0] [0+0+0 392 0+0+0] viewport-transform=[3.92 0 0 3.92 0 0] [SVG] children: not-inline
SVGGeometryBox <line> at [-0.5,32.5] [0+0+0 201 0+0+0] [0+0+0 1 0+0+0] children: not-inline
@@ -9,4 +9,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGGeometryBox <line> at [131.5,-0.5] [0+0+0 1 0+0+0] [0+0+0 101 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x408] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x411] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-mask-url-fragment-percent-decoding.txt b/Tests/LibWeb/Layout/expected/svg/svg-mask-url-fragment-percent-decoding.txt
index 2f06d6d15e2..c423c371347 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-mask-url-fragment-percent-decoding.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-mask-url-fragment-percent-decoding.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 64 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 48 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 67 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 51 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 48x48] baseline: 48
SVGSVGBox <svg> at [8,8] [0+0+0 48 0+0+0] [0+0+0 48 0+0+0] viewport-transform=[1 0 0 1 4 4] [SVG] children: not-inline
SVGForeignObjectBox <foreignObject> at [0,0] [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline overflow: [0,0 100x100]
@@ -11,5 +11,5 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x64] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x67] (z-index: auto)
SC for SVGForeignObjectBox<foreignObject> [0,0 40x40] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-negative-elliptical-arg-number.txt b/Tests/LibWeb/Layout/expected/svg/svg-negative-elliptical-arg-number.txt
index cd46d0e1900..455e2d2a668 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-negative-elliptical-arg-number.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-negative-elliptical-arg-number.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[10 0 0 10 0 0] [SVG] children: not-inline
SVGGeometryBox <path> at [0,0.203125] [0+0+0 10 0+0+0] [0+0+0 4.796875 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-path-with-implicit-lineto.txt b/Tests/LibWeb/Layout/expected/svg/svg-path-with-implicit-lineto.txt
index 75d86b517c6..96e446b7a5c 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-path-with-implicit-lineto.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-path-with-implicit-lineto.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[10 0 0 10 0 0] [SVG] children: not-inline
SVGGeometryBox <path> at [2,2] [0+0+0 6 0+0+0] [0+0+0 6 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-symbol-with-viewbox.txt b/Tests/LibWeb/Layout/expected/svg/svg-symbol-with-viewbox.txt
index a40302f2270..7a42e68007a 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-symbol-with-viewbox.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-symbol-with-viewbox.txt
@@ -1,7 +1,7 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: not-inline
- BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 150 0+0+0] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: not-inline
+ BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 153 0+0+0] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGraphicsBox <use> at [0,0] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] children: not-inline
@@ -10,4 +10,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-symbol-without-use.txt b/Tests/LibWeb/Layout/expected/svg/svg-symbol-without-use.txt
index 3a01f703aba..82697fd2561 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-symbol-without-use.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-symbol-without-use.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-text-positioning.txt b/Tests/LibWeb/Layout/expected/svg/svg-text-positioning.txt
index a11e525d3eb..3425bc26f35 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-text-positioning.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-text-positioning.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 136 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 120 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 139 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 123 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x120] baseline: 120
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 120 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect> at [0,0] [0+0+0 300 0+0+0] [0+0+0 120 0+0+0] children: not-inline
@@ -18,4 +18,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x136] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x139] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-text-white-space.txt b/Tests/LibWeb/Layout/expected/svg/svg-text-white-space.txt
index c83c1940028..451a3b045ac 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-text-white-space.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-text-white-space.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 219 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 203 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 400x200] baseline: 200
SVGSVGBox <svg> at [8,8] [0+0+0 400 0+0+0] [0+0+0 200 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGTextBox <text> at [10,4] [0+0+0 288.4375 0+0+0] [0+0+0 20 0+0+0] children: inline
@@ -18,4 +18,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x219] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-use-element-crashtest.txt b/Tests/LibWeb/Layout/expected/svg/svg-use-element-crashtest.txt
index a6b5dab3b8e..dfe0faa82b1 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-use-element-crashtest.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-use-element-crashtest.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGraphicsBox <use> at [0,0] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] children: not-inline
@@ -8,4 +8,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-viewbox-zero-width.txt b/Tests/LibWeb/Layout/expected/svg/svg-viewbox-zero-width.txt
index 1fac3ffeba6..f65b67875f8 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-viewbox-zero-width.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-viewbox-zero-width.txt
@@ -1,8 +1,8 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-with-css-variable-in-presentation-hint.txt b/Tests/LibWeb/Layout/expected/svg/svg-with-css-variable-in-presentation-hint.txt
index 632e4cf2d68..623f77baf0a 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-with-css-variable-in-presentation-hint.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-with-css-variable-in-presentation-hint.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 118 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 102 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 121 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 105 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [9,9 100x100] baseline: 102
SVGSVGBox <svg> at [9,9] [0+1+0 100 0+1+0] [0+1+0 100 0+1+0] viewport-transform=[10 0 0 10 0 0] [SVG] children: not-inline
SVGGeometryBox <rect> at [2,2] [0+0+0 6 0+0+0] [0+0+0 6 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x118] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x121] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-with-zero-sized-viewBox.txt b/Tests/LibWeb/Layout/expected/svg/svg-with-zero-sized-viewBox.txt
index 1d70163a0a1..7ee65e2db61 100644
--- a/Tests/LibWeb/Layout/expected/svg/svg-with-zero-sized-viewBox.txt
+++ b/Tests/LibWeb/Layout/expected/svg/svg-with-zero-sized-viewBox.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGTextBox <text> (not painted) children: inline
@@ -8,4 +8,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/text-fill-none.txt b/Tests/LibWeb/Layout/expected/svg/text-fill-none.txt
index 93f1f168ea9..bdb803ecff1 100644
--- a/Tests/LibWeb/Layout/expected/svg/text-fill-none.txt
+++ b/Tests/LibWeb/Layout/expected/svg/text-fill-none.txt
@@ -1,10 +1,10 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGTextBox <text> at [0,0] [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/svg/use-honor-outer-viewBox.txt b/Tests/LibWeb/Layout/expected/svg/use-honor-outer-viewBox.txt
index 06e3e54d9e2..1c8fbc200be 100644
--- a/Tests/LibWeb/Layout/expected/svg/use-honor-outer-viewBox.txt
+++ b/Tests/LibWeb/Layout/expected/svg/use-honor-outer-viewBox.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 118 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 102 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 121 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 105 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [9,9 100x100] baseline: 102
SVGSVGBox <svg#outer> at [9,9] [0+1+0 100 0+1+0] [0+1+0 100 0+1+0] viewport-transform=[10 0 0 10 0 0] [SVG] children: not-inline
SVGGraphicsBox <use> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: inline
@@ -9,4 +9,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x118] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x121] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/treat-intrinsic-sizing-keywords-as-auto-when-aspect-ratio-cant-be-resolved.txt b/Tests/LibWeb/Layout/expected/treat-intrinsic-sizing-keywords-as-auto-when-aspect-ratio-cant-be-resolved.txt
index 2b7851fb44d..9bd19b8a8b6 100644
--- a/Tests/LibWeb/Layout/expected/treat-intrinsic-sizing-keywords-as-auto-when-aspect-ratio-cant-be-resolved.txt
+++ b/Tests/LibWeb/Layout/expected/treat-intrinsic-sizing-keywords-as-auto-when-aspect-ratio-cant-be-resolved.txt
@@ -1,9 +1,9 @@
-Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x800]
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 800 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 784 0+0+8] children: inline
+Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x803]
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 803 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 787 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x784] baseline: 784
SVGSVGBox <svg> at [8,8] [0+0+0 784 0+0+0] [0+0+0 784 0+0+0] viewport-transform=[32.666668 0 0 32.666668 0 0] [SVG] children: not-inline
SVGGeometryBox <rect> at [0,0] [0+0+0 12 0+0+0] [0+0+0 12 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x800] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x803] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/canvas-children-not-rendered.txt b/Tests/LibWeb/Layout/expected/tree-builder/canvas-children-not-rendered.txt
index b598ba77ef6..c099a3a3e85 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/canvas-children-not-rendered.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/canvas-children-not-rendered.txt
@@ -1,9 +1,9 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 20 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 39 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 23 0+0+8] children: inline
frag 0 from CanvasBox start: 0, length: 0, rect: [8,8 20x20] baseline: 20
CanvasBox <canvas> at [8,8] [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x36] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x39] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/html-inside-svg-is-skipped.txt b/Tests/LibWeb/Layout/expected/tree-builder/html-inside-svg-is-skipped.txt
index ec6f5decf4f..33c9041d80c 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/html-inside-svg-is-skipped.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/html-inside-svg-is-skipped.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 200x100] baseline: 100
SVGSVGBox <svg#svg> at [8,8] [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: inline
TextNode <#text> (not painted)
@@ -23,5 +23,5 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
SC for SVGForeignObjectBox<foreignObject> [0,0 100x50] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/inline-children-of-fieldset-and-foreignobject.txt b/Tests/LibWeb/Layout/expected/tree-builder/inline-children-of-fieldset-and-foreignobject.txt
index d2195fc8964..89b64ebae31 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/inline-children-of-fieldset-and-foreignobject.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/inline-children-of-fieldset-and-foreignobject.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 151.59375 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 135.59375 0+0+8] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 154.59375 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 138.59375 0+0+8] children: not-inline
FieldSetBox <fieldset> at [24,15.59375] [2+2+12 752 12+2+2] [0+2+5.59375 16 10+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [24,15.59375] [0+0+0 752 0+0+0] [0+0+0 16 0+0+0] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [24,15.59375 40.140625x16] baseline: 13
@@ -10,7 +10,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 0 from TextNode start: 0, length: 6, rect: [64.140625,15.59375 41.296875x16] baseline: 13
"inline"
TextNode <#text> (not painted)
- BlockContainer <(anonymous)> at [8,43.59375] [0+0+0 784 0+0+0] [0+0+0 100 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [8,43.59375] [0+0+0 784 0+0+0] [0+0+0 103 0+0+0] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,43.59375 200x100] baseline: 100
SVGSVGBox <svg> at [8,43.59375] [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGForeignObjectBox <foreignObject> at [0,0] [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] [BFC] children: not-inline
@@ -25,5 +25,5 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x151.59375] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x154.59375] (z-index: auto)
SC for SVGForeignObjectBox<foreignObject> [0,0 200x100] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/marker-list-style-image.txt b/Tests/LibWeb/Layout/expected/tree-builder/marker-list-style-image.txt
index 05e01d9ef4a..b6d5f2960ed 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/marker-list-style-image.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/marker-list-style-image.txt
@@ -5,22 +5,22 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
ListItemBox <li.image> at [48,16] [0+0+0 744 0+0+0] [0+0+0 123 0+0+0] children: inline
frag 0 from TextNode start: 0, length: 13, rect: [48,123 107.859375x16] baseline: 13
"outside image"
- ListItemMarkerBox <(anonymous)> at [-72,16] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] [BFC] children: inline
+ ListItemMarkerBox <(anonymous)> at [-72,16] [0+0+0 120 0+0+0] [0+0+0 123 0+0+0] [BFC] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [-72,16 120x120] baseline: 120
ImageBox <(anonymous)> at [-72,16] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: not-inline
TextNode <#text> (not painted)
ListItemBox <li.image> at [48,139] [0+0+0 744 0+0+0] [0+0+0 123 0+0+0] children: inline
- frag 0 from ListItemMarkerBox start: 0, length: 0, rect: [48,139 120x120] baseline: 120
+ frag 0 from ListItemMarkerBox start: 0, length: 0, rect: [48,139 120x123] baseline: 120
frag 1 from TextNode start: 0, length: 12, rect: [168,246 95.046875x16] baseline: 13
"inside image"
- ListItemMarkerBox <(anonymous)> at [48,139] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] [BFC] children: inline
+ ListItemMarkerBox <(anonymous)> at [48,139] [0+0+0 120 0+0+0] [0+0+0 123 0+0+0] [BFC] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [48,139 120x120] baseline: 120
ImageBox <(anonymous)> at [48,139] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: not-inline
TextNode <#text> (not painted)
ListItemBox <li.image> at [48,262] [0+0+0 744 0+0+0] [0+0+0 123 0+0+0] children: inline
frag 0 from TextNode start: 0, length: 20, rect: [48,369 168.796875x16] baseline: 13
"image with type none"
- ListItemMarkerBox <(anonymous)> at [-72,262] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] [BFC] children: inline
+ ListItemMarkerBox <(anonymous)> at [-72,262] [0+0+0 120 0+0+0] [0+0+0 123 0+0+0] [BFC] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [-72,262 120x120] baseline: 120
ImageBox <(anonymous)> at [-72,262] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: not-inline
TextNode <#text> (not painted)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/pseudo-elements-on-void-and-replaced.txt b/Tests/LibWeb/Layout/expected/tree-builder/pseudo-elements-on-void-and-replaced.txt
index 3bd4f117274..6ed90acf15a 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/pseudo-elements-on-void-and-replaced.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/pseudo-elements-on-void-and-replaced.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 282.8125 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 266.8125 0+0+8] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 283.8125 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 267.8125 0+0+8] children: not-inline
BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,11 10x10] baseline: 10
ImageBox <img.p> at [8,11] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
@@ -48,54 +48,54 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <div> at [8,145] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline
frag 0 from VideoBox start: 0, length: 0, rect: [8,148 20x10] baseline: 10
VideoBox <video.p> at [8,148] inline-block [0+0+0 20 0+0+0] [0+0+0 10 0+0+0] children: not-inline
- BlockContainer <div> at [8,161] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline
+ BlockContainer <div> at [8,161] [0+0+0 784 0+0+0] [0+0+0 17 0+0+0] children: inline
frag 0 from NavigableContainerViewport start: 0, length: 0, rect: [10,163 20x10] baseline: 14
NavigableContainerViewport <iframe.p> at [10,163] [0+2+0 20 0+2+0] [0+2+0 10 0+2+0] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 20 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 20 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 4 0+0+8] [8+0+0 0 0+0+8] children: not-inline
- BlockContainer <div> at [8,177] [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] children: inline
- frag 0 from BlockContainer start: 0, length: 0, rect: [17,180 28.078125x14] baseline: 14
- BlockContainer <select.p> at [17,180] inline-block [0+1+8 28.078125 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
- Box <div> at [17,180] positioned flex-container(row) [0+0+0 28.078125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
- BlockContainer <div> at [17,180] flex-item [0+0+0 8.078125 0+0+20] [0+0+0 14 0+0+0] [BFC] children: not-inline
- BlockContainer <div> at [17,180] [0+0+0 8.078125 0+0+0] [0+0+0 14 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 1, rect: [17,180 8.078125x14] baseline: 11
+ BlockContainer <div> at [8,178] [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] children: inline
+ frag 0 from BlockContainer start: 0, length: 0, rect: [17,181 28.078125x14] baseline: 14
+ BlockContainer <select.p> at [17,181] inline-block [0+1+8 28.078125 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ Box <div> at [17,181] positioned flex-container(row) [0+0+0 28.078125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
+ BlockContainer <div> at [17,181] flex-item [0+0+0 8.078125 0+0+20] [0+0+0 14 0+0+0] [BFC] children: not-inline
+ BlockContainer <div> at [17,181] [0+0+0 8.078125 0+0+0] [0+0+0 14 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 1, rect: [17,181 8.078125x14] baseline: 11
"x"
TextNode <#text> (not painted)
- BlockContainer <div> at [17,194] floating [0+0+0 8.078125 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
- BlockContainer <div> at [17,194] [0+0+0 8.078125 0+0+0] [0+0+0 14 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 1, rect: [17,194 8.078125x14] baseline: 11
+ BlockContainer <div> at [17,195] floating [0+0+0 8.078125 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
+ BlockContainer <div> at [17,195] [0+0+0 8.078125 0+0+0] [0+0+0 14 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 1, rect: [17,195 8.078125x14] baseline: 11
"x"
TextNode <#text> (not painted)
- BlockContainer <div> at [29.078125,179] positioned [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
- frag 0 from SVGSVGBox start: 0, length: 0, rect: [29.078125,179 16x16] baseline: 16
- SVGSVGBox <svg> at [29.078125,179] [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] viewport-transform=[0.6666667 0 0 0.6666667 0 0] [SVG] children: not-inline
+ BlockContainer <div> at [29.078125,180] positioned [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
+ frag 0 from SVGSVGBox start: 0, length: 0, rect: [29.078125,180 16x16] baseline: 16
+ SVGSVGBox <svg> at [29.078125,180] [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] viewport-transform=[0.6666667 0 0 0.6666667 0 0] [SVG] children: not-inline
SVGGeometryBox <path> at [6,8.578125] [0+0+0 12 0+0+0] [0+0+0 7.421875 0+0+0] children: not-inline
- BlockContainer <div> at [8,197] [0+0+0 784 0+0+0] [0+0+0 37 0+0+0] children: inline
- frag 0 from TextAreaBox start: 0, length: 0, rect: [11,200 159.6875x28] baseline: 34
- TextAreaBox <textarea.p> at [11,200] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline
- Box <div> at [11,200] flex-container(row) [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
- BlockContainer <div> at [11,200] flex-item [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 0, rect: [11,200 0x14] baseline: 11
+ BlockContainer <div> at [8,198] [0+0+0 784 0+0+0] [0+0+0 37 0+0+0] children: inline
+ frag 0 from TextAreaBox start: 0, length: 0, rect: [11,201 159.6875x28] baseline: 34
+ TextAreaBox <textarea.p> at [11,201] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline
+ Box <div> at [11,201] flex-container(row) [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
+ BlockContainer <div> at [11,201] flex-item [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 0, rect: [11,201 0x14] baseline: 11
TextNode <#text> (not painted)
- BlockContainer <div> at [8,234] [0+0+0 784 0+0+0] [0+0+0 40.8125 0+0+0] children: inline
- frag 0 from BlockContainer start: 0, length: 0, rect: [8,234 160x16] baseline: 41
- BlockContainer <progress.p> at [8,234] inline-block [0+0+0 160 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [8,234] [0+0+0 160 0+0+0] [0+0+0 16 0+0+0] children: inline
- InlineNode <(anonymous)> at [8,234] [0+0+0 52.53125 0+0+0] [0+0+0 16 0+0+0]
- frag 0 from GeneratedTextNode start: 0, length: 6, rect: [8,234 52.53125x16] baseline: 13
+ BlockContainer <div> at [8,235] [0+0+0 784 0+0+0] [0+0+0 40.8125 0+0+0] children: inline
+ frag 0 from BlockContainer start: 0, length: 0, rect: [8,235 160x16] baseline: 41
+ BlockContainer <progress.p> at [8,235] inline-block [0+0+0 160 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [8,235] [0+0+0 160 0+0+0] [0+0+0 16 0+0+0] children: inline
+ InlineNode <(anonymous)> at [8,235] [0+0+0 52.53125 0+0+0] [0+0+0 16 0+0+0]
+ frag 0 from GeneratedTextNode start: 0, length: 6, rect: [8,235 52.53125x16] baseline: 13
"before"
GeneratedTextNode <(anonymous)> (not painted)
- BlockContainer <div> at [8,254] [0+0+0 160 0+0+0] [4+0+0 8 0+0+0] [BFC] children: not-inline
- BlockContainer <div> at [8,254] [0+0+0 32 0+0+128] [0+0+0 8 0+0+0] children: not-inline
- BlockContainer <(anonymous)> at [8,262] [0+0+0 160 0+0+0] [0+0+0 16 0+0+0] children: inline
- InlineNode <(anonymous)> at [8,262] [0+0+0 40.1875 0+0+0] [0+0+0 16 0+0+0]
- frag 0 from GeneratedTextNode start: 0, length: 5, rect: [8,262 40.1875x16] baseline: 13
+ BlockContainer <div> at [8,255] [0+0+0 160 0+0+0] [4+0+0 8 0+0+0] [BFC] children: not-inline
+ BlockContainer <div> at [8,255] [0+0+0 32 0+0+128] [0+0+0 8 0+0+0] children: not-inline
+ BlockContainer <(anonymous)> at [8,263] [0+0+0 160 0+0+0] [0+0+0 16 0+0+0] children: inline
+ InlineNode <(anonymous)> at [8,263] [0+0+0 40.1875 0+0+0] [0+0+0 16 0+0+0]
+ frag 0 from GeneratedTextNode start: 0, length: 5, rect: [8,263 40.1875x16] baseline: 13
"after"
GeneratedTextNode <(anonymous)> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x282.8125] (z-index: auto)
- SC for BlockContainer<DIV> [8,254 32x8] (z-index: auto), has_transform
+ SC for BlockContainer<HTML> [0,0 800x283.8125] (z-index: auto)
+ SC for BlockContainer<DIV> [8,255 32x8] (z-index: auto), has_transform
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/svg-clip-path-resource.txt b/Tests/LibWeb/Layout/expected/tree-builder/svg-clip-path-resource.txt
index fee2b1d21fa..3638ac0ea75 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/svg-clip-path-resource.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/svg-clip-path-resource.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 200x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect#by-attribute> at [0,0] [0+0+0 50 0+0+0] [0+0+0 50 0+0+0] children: not-inline
@@ -16,4 +16,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/svg-mask-shared-by-two-shapes.txt b/Tests/LibWeb/Layout/expected/tree-builder/svg-mask-shared-by-two-shapes.txt
index bec5d7e8307..e5122baaa2c 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/svg-mask-shared-by-two-shapes.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/svg-mask-shared-by-two-shapes.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 200x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect#first> at [0,0] [0+0+0 50 0+0+0] [0+0+0 50 0+0+0] children: not-inline
@@ -12,4 +12,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/svg-pattern-resource-and-href.txt b/Tests/LibWeb/Layout/expected/tree-builder/svg-pattern-resource-and-href.txt
index 60711e1fae8..5c3a4897cad 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/svg-pattern-resource-and-href.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/svg-pattern-resource-and-href.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 200x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect#fill> at [0,0] [0+0+0 50 0+0+0] [0+0+0 50 0+0+0] children: not-inline
@@ -15,4 +15,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/svg-resource-cycles.txt b/Tests/LibWeb/Layout/expected/tree-builder/svg-resource-cycles.txt
index ed9ee714fb2..db49d89655c 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/svg-resource-cycles.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/svg-resource-cycles.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 200x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect#mask-user> at [0,0] [0+0+0 50 0+0+0] [0+0+0 50 0+0+0] children: not-inline
@@ -13,4 +13,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/svg-resource-in-other-scope.txt b/Tests/LibWeb/Layout/expected/tree-builder/svg-resource-in-other-scope.txt
index c5bc5fd120c..8a257b62c5c 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/svg-resource-in-other-scope.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/svg-resource-in-other-scope.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 219 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 203 0+0+8] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 222 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 206 0+0+8] children: not-inline
BlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 103 0+0+0] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 200x100] baseline: 100
frag 1 from TextNode start: 0, length: 1, rect: [208,95 8x16] baseline: 13
@@ -13,7 +13,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SVGSVGBox <svg> at [216,108] [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
TextNode <#text> (not painted)
- BlockContainer <div#host> at [8,111] [0+0+0 784 0+0+0] [0+0+0 100 0+0+0] children: inline
+ BlockContainer <div#host> at [8,111] [0+0+0 784 0+0+0] [0+0+0 103 0+0+0] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,111 200x100] baseline: 100
SVGSVGBox <svg> at [8,111] [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGeometryBox <rect#shadow-user> at [0,0] [0+0+0 50 0+0+0] [0+0+0 50 0+0+0] children: not-inline
@@ -21,4 +21,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGGeometryBox <circle> at [0,0] [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x219] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x222] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/svg-switch-first-renderable.txt b/Tests/LibWeb/Layout/expected/tree-builder/svg-switch-first-renderable.txt
index ccab99e666c..7f22da669b3 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/svg-switch-first-renderable.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/svg-switch-first-renderable.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100
SVGSVGBox <svg#svg> at [8,8] [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGraphicsBox <switch#non-svg-first> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
@@ -15,4 +15,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/svg-text-tspan-textpath.txt b/Tests/LibWeb/Layout/expected/tree-builder/svg-text-tspan-textpath.txt
index 2312571aaa5..f675af87e48 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/svg-text-tspan-textpath.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/svg-text-tspan-textpath.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGTextBox <text> at [10,7.203125] [0+0+0 117.359375 0+0+0] [0+0+0 16 0+0+0] children: inline
@@ -19,4 +19,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/tree-builder/whitespace-in-svg-text-and-textpath.txt b/Tests/LibWeb/Layout/expected/tree-builder/whitespace-in-svg-text-and-textpath.txt
index 408abe7f8db..c6ac1ffd4da 100644
--- a/Tests/LibWeb/Layout/expected/tree-builder/whitespace-in-svg-text-and-textpath.txt
+++ b/Tests/LibWeb/Layout/expected/tree-builder/whitespace-in-svg-text-and-textpath.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 119 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 103 0+0+8] children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x100] baseline: 100
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 100 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SVGGraphicsBox <g> at [0,0] [0+0+0 5 0+0+0] [0+0+0 5 0+0+0] children: not-inline
@@ -22,4 +22,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x119] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/zero-height-viewport-svg-image.txt b/Tests/LibWeb/Layout/expected/zero-height-viewport-svg-image.txt
index a1281ebebe7..651851fc089 100644
--- a/Tests/LibWeb/Layout/expected/zero-height-viewport-svg-image.txt
+++ b/Tests/LibWeb/Layout/expected/zero-height-viewport-svg-image.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
ImageBox <img> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] children: not-inline
(SVG-as-image isolated context)
@@ -9,4 +9,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/zero-width-viewport-svg-image.txt b/Tests/LibWeb/Layout/expected/zero-width-viewport-svg-image.txt
index 574e069de5c..5c107596e66 100644
--- a/Tests/LibWeb/Layout/expected/zero-width-viewport-svg-image.txt
+++ b/Tests/LibWeb/Layout/expected/zero-width-viewport-svg-image.txt
@@ -1,6 +1,6 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 169 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 153 0+0+8] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 300x150] baseline: 150
ImageBox <img> at [8,8] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] children: not-inline
(SVG-as-image isolated context)
@@ -8,4 +8,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGSVGBox <svg> at [0,0] [0+0+0 300 0+0+0] [0+0+0 150 0+0+0] viewport-transform=[1 0 0 1 0 0] [SVG] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x169] (z-index: auto)
diff --git a/Tests/LibWeb/Ref/expected/selection-with-custom-image-background-ref.html b/Tests/LibWeb/Ref/expected/selection-with-custom-image-background-ref.html
index 13fe5963148..f5a2ad113f9 100644
--- a/Tests/LibWeb/Ref/expected/selection-with-custom-image-background-ref.html
+++ b/Tests/LibWeb/Ref/expected/selection-with-custom-image-background-ref.html
@@ -3,6 +3,7 @@
img {
width: 50px;
height: 50px;
+ vertical-align: top;
}
.img-wrapper {
display: inline-block;
diff --git a/Tests/LibWeb/Ref/expected/selection-with-image-color-fallback-ref.html b/Tests/LibWeb/Ref/expected/selection-with-image-color-fallback-ref.html
index 16e3bf2dea3..d855aa8fdc6 100644
--- a/Tests/LibWeb/Ref/expected/selection-with-image-color-fallback-ref.html
+++ b/Tests/LibWeb/Ref/expected/selection-with-image-color-fallback-ref.html
@@ -3,6 +3,7 @@
img {
width: 50px;
height: 50px;
+ vertical-align: top;
}
.img-wrapper {
display: inline-block;
diff --git a/Tests/LibWeb/Ref/input/css/svg-element-should-be-allowed-to-establish-stacking-context.html b/Tests/LibWeb/Ref/input/css/svg-element-should-be-allowed-to-establish-stacking-context.html
index 2ea92e695b2..cda85f8a53e 100644
--- a/Tests/LibWeb/Ref/input/css/svg-element-should-be-allowed-to-establish-stacking-context.html
+++ b/Tests/LibWeb/Ref/input/css/svg-element-should-be-allowed-to-establish-stacking-context.html
@@ -24,6 +24,7 @@
position: relative;
z-index: 1;
background: lightgreen;
+ vertical-align: top;
}
</style>
<div id="container">
diff --git a/Tests/LibWeb/Ref/input/selection-with-custom-image-background.html b/Tests/LibWeb/Ref/input/selection-with-custom-image-background.html
index 22dace62d28..bcb917c393b 100644
--- a/Tests/LibWeb/Ref/input/selection-with-custom-image-background.html
+++ b/Tests/LibWeb/Ref/input/selection-with-custom-image-background.html
@@ -4,6 +4,7 @@
img {
width: 50px;
height: 50px;
+ vertical-align: top;
}
img::selection {
background-color: red;
diff --git a/Tests/LibWeb/Ref/input/selection-with-image-color-fallback.html b/Tests/LibWeb/Ref/input/selection-with-image-color-fallback.html
index e0663d6f646..d46bf8ccd62 100644
--- a/Tests/LibWeb/Ref/input/selection-with-image-color-fallback.html
+++ b/Tests/LibWeb/Ref/input/selection-with-image-color-fallback.html
@@ -4,6 +4,7 @@
img {
width: 50px;
height: 50px;
+ vertical-align: top;
}
img::selection {
background-color: transparent;
diff --git a/Tests/LibWeb/Screenshot/expected/border-radius.png b/Tests/LibWeb/Screenshot/expected/border-radius.png
index ad9fd33602b..3e7123d0d55 100644
Binary files a/Tests/LibWeb/Screenshot/expected/border-radius.png and b/Tests/LibWeb/Screenshot/expected/border-radius.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/can-load-images-in-sandboxed-iframe-with-no-scripting.png b/Tests/LibWeb/Screenshot/expected/can-load-images-in-sandboxed-iframe-with-no-scripting.png
index d461187f2c3..cd6f33690f0 100644
Binary files a/Tests/LibWeb/Screenshot/expected/can-load-images-in-sandboxed-iframe-with-no-scripting.png and b/Tests/LibWeb/Screenshot/expected/can-load-images-in-sandboxed-iframe-with-no-scripting.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/canvas-fillstyle-gradients.png b/Tests/LibWeb/Screenshot/expected/canvas-fillstyle-gradients.png
index 243be22dc22..bfcf4a13812 100644
Binary files a/Tests/LibWeb/Screenshot/expected/canvas-fillstyle-gradients.png and b/Tests/LibWeb/Screenshot/expected/canvas-fillstyle-gradients.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/canvas-filters.png b/Tests/LibWeb/Screenshot/expected/canvas-filters.png
index a835baa666f..357c6ced3c2 100644
Binary files a/Tests/LibWeb/Screenshot/expected/canvas-filters.png and b/Tests/LibWeb/Screenshot/expected/canvas-filters.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/canvas-pattern-transform.png b/Tests/LibWeb/Screenshot/expected/canvas-pattern-transform.png
index 31d819fe061..9cf44a9a2fe 100644
Binary files a/Tests/LibWeb/Screenshot/expected/canvas-pattern-transform.png and b/Tests/LibWeb/Screenshot/expected/canvas-pattern-transform.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/canvas-pattern.png b/Tests/LibWeb/Screenshot/expected/canvas-pattern.png
index 976680b6967..68a5f2aa9ea 100644
Binary files a/Tests/LibWeb/Screenshot/expected/canvas-pattern.png and b/Tests/LibWeb/Screenshot/expected/canvas-pattern.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/canvas-shadow.png b/Tests/LibWeb/Screenshot/expected/canvas-shadow.png
index afa805711e4..86da5097578 100644
Binary files a/Tests/LibWeb/Screenshot/expected/canvas-shadow.png and b/Tests/LibWeb/Screenshot/expected/canvas-shadow.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/css-filter.png b/Tests/LibWeb/Screenshot/expected/css-filter.png
index 802c2f53cb4..96d221805fa 100644
Binary files a/Tests/LibWeb/Screenshot/expected/css-filter.png and b/Tests/LibWeb/Screenshot/expected/css-filter.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/css-transform-box.png b/Tests/LibWeb/Screenshot/expected/css-transform-box.png
index 171e09e20fb..4c2bd67c2d0 100644
Binary files a/Tests/LibWeb/Screenshot/expected/css-transform-box.png and b/Tests/LibWeb/Screenshot/expected/css-transform-box.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/image-transformation-anti-aliasing.png b/Tests/LibWeb/Screenshot/expected/image-transformation-anti-aliasing.png
index c4de2c6f5fc..c34eca75f17 100644
Binary files a/Tests/LibWeb/Screenshot/expected/image-transformation-anti-aliasing.png and b/Tests/LibWeb/Screenshot/expected/image-transformation-anti-aliasing.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/object-fit-position.png b/Tests/LibWeb/Screenshot/expected/object-fit-position.png
index 39b9d6fdd6b..93bdb46e21c 100644
Binary files a/Tests/LibWeb/Screenshot/expected/object-fit-position.png and b/Tests/LibWeb/Screenshot/expected/object-fit-position.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/svg-filters-lb-website.png b/Tests/LibWeb/Screenshot/expected/svg-filters-lb-website.png
index 3997e2228dd..40bf36e22d0 100644
Binary files a/Tests/LibWeb/Screenshot/expected/svg-filters-lb-website.png and b/Tests/LibWeb/Screenshot/expected/svg-filters-lb-website.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/svg-gradient-componentTransfer.png b/Tests/LibWeb/Screenshot/expected/svg-gradient-componentTransfer.png
index 34e5223a7c8..b024d29170e 100644
Binary files a/Tests/LibWeb/Screenshot/expected/svg-gradient-componentTransfer.png and b/Tests/LibWeb/Screenshot/expected/svg-gradient-componentTransfer.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/svg-paths-cardinal-directions-less-than-1px-wide.png b/Tests/LibWeb/Screenshot/expected/svg-paths-cardinal-directions-less-than-1px-wide.png
index 61cc55a9bf0..46df64b7fb6 100644
Binary files a/Tests/LibWeb/Screenshot/expected/svg-paths-cardinal-directions-less-than-1px-wide.png and b/Tests/LibWeb/Screenshot/expected/svg-paths-cardinal-directions-less-than-1px-wide.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/svg-radialGradient.png b/Tests/LibWeb/Screenshot/expected/svg-radialGradient.png
index d5ae90402c9..fa26cfec08c 100644
Binary files a/Tests/LibWeb/Screenshot/expected/svg-radialGradient.png and b/Tests/LibWeb/Screenshot/expected/svg-radialGradient.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/video-on-canvas.png b/Tests/LibWeb/Screenshot/expected/video-on-canvas.png
index b2ee1285bf4..d4a3803ccf6 100644
Binary files a/Tests/LibWeb/Screenshot/expected/video-on-canvas.png and b/Tests/LibWeb/Screenshot/expected/video-on-canvas.png differ
diff --git a/Tests/LibWeb/Text/expected/css/generated-content-image-already-loaded-lays-out-at-its-size.txt b/Tests/LibWeb/Text/expected/css/generated-content-image-already-loaded-lays-out-at-its-size.txt
index 40a6f94dc68..832e21fb2bf 100644
--- a/Tests/LibWeb/Text/expected/css/generated-content-image-already-loaded-lays-out-at-its-size.txt
+++ b/Tests/LibWeb/Text/expected/css/generated-content-image-already-loaded-lays-out-at-its-size.txt
@@ -1,3 +1,3 @@
-generated: 120x120
+generated: 120x123
replaced: 120x120
marker: true, true
diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-3d-sorting-context.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-3d-sorting-context.txt
index d827e3ce99c..5a8b72997b7 100644
--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-3d-sorting-context.txt
+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-3d-sorting-context.txt
@@ -4,7 +4,7 @@ AccumulatedVisualContext Tree:
[s1] scroll (Viewport<#document>)
[s2] transform=[1,0,0,1,0,0] origin=(0,0) (BlockContainer<DIV>#scene)
[s3] perspective (BlockContainer<DIV>#scene)
- [s4] transform=[0.9396926,0,0,1,0,0] origin=(58,178) (BlockContainer<DIV>#card)
+ [s4] transform=[0.9396926,0,0,1,0,0] origin=(58,181) (BlockContainer<DIV>#card)
effects:
[e0 in s0] effects=[]
@@ -12,5 +12,5 @@ Layers: none (3D sorting context)
DisplayList:
DrawCanvas@s1/e0 dst_rect=[8,8 200x120]
-FillRect@s4/e0 rect=[8,128 100x100] color=rgb(255, 165, 0)
+FillRect@s4/e0 rect=[8,131 100x100] color=rgb(255, 165, 0)
diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-in-opacity-group.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-in-opacity-group.txt
index 09a7fcdff8e..b33162bbd1c 100644
--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-in-opacity-group.txt
+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-in-opacity-group.txt
@@ -10,9 +10,9 @@ Layers: none (composited context inside a group effect)
DisplayList:
CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[0,0 800x600]
-CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x133]
-CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x120]
-CompositorWheelHitTestTarget@s1/e1 target_scroll_node_index=s0 rect=[0,0 800x120]
+CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x136]
+CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x123]
+CompositorWheelHitTestTarget@s1/e1 target_scroll_node_index=s0 rect=[0,0 800x123]
CompositorWheelHitTestTarget@s1/e1 target_scroll_node_index=s0 rect=[0,0 200x120]
DrawCompositedContext@s1/e1 dst_rect=[0,0 200x120] inline_clips=[clip=[0,0 200x120]]
CompositorNestedContextWheelRegion@s1/e1 rect=[0,0 200x120]
diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-root-blend-mode.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-root-blend-mode.txt
index c22ec549310..46e95cfbde9 100644
--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-root-blend-mode.txt
+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-root-blend-mode.txt
@@ -10,5 +10,5 @@ Layers: none (blend mode reads the root group)
DisplayList:
DrawCanvas@s1/e0 dst_rect=[8,8 200x120]
-FillRect@s1/e1 rect=[8,128 50x50] color=rgb(255, 165, 0)
+FillRect@s1/e1 rect=[8,131 50x50] color=rgb(255, 165, 0)
diff --git a/Tests/LibWeb/Text/expected/display_list/iframe-compositor-surface.txt b/Tests/LibWeb/Text/expected/display_list/iframe-compositor-surface.txt
index 727a6c36f4c..36fe4ac40e3 100644
--- a/Tests/LibWeb/Text/expected/display_list/iframe-compositor-surface.txt
+++ b/Tests/LibWeb/Text/expected/display_list/iframe-compositor-surface.txt
@@ -11,9 +11,9 @@ Layers:
DisplayList:
L0 CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[0,0 800x600]
-L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x93]
-L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x80]
-L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x80]
+L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x96]
+L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x83]
+L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x83]
L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 120x80]
L1 DrawCompositedContext@s1/e0 dst_rect=[0,0 120x80] inline_clips=[clip=[0,0 120x80]]
L0 CompositorNestedContextWheelRegion@s1/e0 rect=[0,0 120x80]
diff --git a/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-scroller-after-relayout.txt b/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-scroller-after-relayout.txt
index 3760c27207c..f14700d42bf 100644
--- a/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-scroller-after-relayout.txt
+++ b/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-scroller-after-relayout.txt
@@ -16,9 +16,9 @@ ScrollNode scroll_node_index=s3 parent_scroll_node_index=s0 scrollport_rect=[0,0
DisplayList:
CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[0,0 800x600]
-CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x121]
-CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[8,8 784x100]
-CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[8,8 784x100]
+CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x124]
+CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[8,8 784x103]
+CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[8,8 784x103]
CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[8,8 100x100]
StrokePath@s2/c0/e0 path_bounding_rect=[9.5,9.5 81x81] thickness=1 color=rgb(0, 0, 0)
CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s0 rect=[0,0 100x100]
diff --git a/Tests/LibWeb/Text/expected/intrinsic-inline-content-sizing.txt b/Tests/LibWeb/Text/expected/intrinsic-inline-content-sizing.txt
index 4e92122982f..ffc7d226480 100644
--- a/Tests/LibWeb/Text/expected/intrinsic-inline-content-sizing.txt
+++ b/Tests/LibWeb/Text/expected/intrinsic-inline-content-sizing.txt
@@ -31,7 +31,7 @@ vertical clamped to a fixed width: 40x100, 40x100, 40x100, 40x160
orthogonal atomic: 120x67, 60x87, 120x67, 120x67
vertical grid limited to min-content: 80x60, 80x60, 80x60, 80x60
vertical grid limited to max-content: 80x60, 80x60, 80x60, 80x60
-replaced: 90x27, 50x40, 90x27, 90x27
+replaced: 90x27, 50x47, 90x27, 90x27
aspect ratio: 130x40, 80x60, 130x40, 120x60
percentage aspect ratio: 100x50, 50x50, 100x50, 120x100
inline flex: 210x20, 100x60, 210x20, 120x60