Skip to content

Truly independent web browser

LibWeb: Give devolved buttons and text fields bevelled borders

Andreas Klingd5afa9213b33
diff --git a/Libraries/LibWeb/CSS/Default.css b/Libraries/LibWeb/CSS/Default.css
index 200702378e7..c242eed188d 100644
--- a/Libraries/LibWeb/CSS/Default.css
+++ b/Libraries/LibWeb/CSS/Default.css
@@ -34,9 +34,11 @@ input, textarea, select, button {
}
/* FIXME: This is a temporary hack until we can render a native-looking frame for these. */
+/* NB: The native appearance of a text field or button paints a thin border of its own over the border box. Once an
+ * author style devolves the widget, its border is the inset or outset one below. */
input:not([type=submit], input[type=button], input[type=image], input[type=reset], input[type=color], input[type=checkbox], input[type=file], input[type=radio], input[type=range]), textarea {
- border: 1px solid ButtonBorder;
- padding: 2px 4px;
+ border: 2px inset ButtonBorder;
+ padding: 1px 3px;
cursor: text;
background-color: Field;
@@ -48,6 +50,7 @@ input:not([type=submit], input[type=button], input[type=image], input[type=reset
}
textarea {
+ border: 1px solid ButtonBorder;
padding: 2px;
display: inline-block;
overflow: auto;
@@ -65,9 +68,9 @@ input::placeholder, textarea::placeholder {
}
button, input[type=submit], input[type=button], input[type=reset], input[type=color], select, ::file-selector-button {
- padding: 2px 8px;
+ padding: 1px 7px;
background-color: ButtonFace;
- border: 1px solid ButtonBorder;
+ border: 2px outset ButtonBorder;
color: ButtonText;
cursor: default;
@@ -112,6 +115,11 @@ input[type=file]:disabled::file-selector-button {
color: GrayText;
}
+input[type=color], select {
+ padding: 2px 8px;
+ border: 1px solid ButtonBorder;
+}
+
input[type=color] {
width: 50px;
height: 27px;
diff --git a/Libraries/LibWeb/Rust/src/painting/record/paint/border.rs b/Libraries/LibWeb/Rust/src/painting/record/paint/border.rs
index 145dea58d47..1617b21326e 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/paint/border.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/paint/border.rs
@@ -30,6 +30,8 @@ use libgfx_rust::{
pub use crate::painting::paintable_data::BorderEdge;
+const NATIVE_APPEARANCE_BORDER_WIDTH_PX: i64 = 1;
+
pub(crate) const ALL_PIECE_EDGES: u8 = PIECE_EDGE_TOP | PIECE_EDGE_RIGHT | PIECE_EDGE_BOTTOM | PIECE_EDGE_LEFT;
pub(crate) fn border_side(
@@ -1452,13 +1454,35 @@ pub(crate) fn paint_borders_from_style<O: Observer>(
let Some(style) = recorder.source.node_style_if_live(paintable) else {
return;
};
- let borders_data = style_borders_data(style, border, ALL_PIECE_EDGES, &converter);
+ let mut borders_data = style_borders_data(style, border, ALL_PIECE_EDGES, &converter);
+ let mut css_border_widths = present_css_border_widths(style, border, ALL_PIECE_EDGES);
+ // NB: The native appearance of a devolvable widget draws a thin solid line along the outer edge of whatever border
+ // its style gives it, which is the inset or outset border it shows once devolved.
+ if crate::painting::visual_context::node_values::has_native_appearance(style, recorder.source, paintable) {
+ let native_width = CssPixels::from_integer(NATIVE_APPEARANCE_BORDER_WIDTH_PX);
+ for (side, css_width) in [
+ &mut borders_data.top,
+ &mut borders_data.right,
+ &mut borders_data.bottom,
+ &mut borders_data.left,
+ ]
+ .into_iter()
+ .zip(css_border_widths.iter_mut())
+ {
+ if side.width == 0 {
+ continue;
+ }
+ side.width = converter.enclosing_device_pixels(native_width);
+ side.line_style = line_style::SOLID;
+ *css_width = native_width;
+ }
+ }
paint_box_borders(
recorder,
paintable,
facts,
border_box_rect,
- present_css_border_widths(style, border, ALL_PIECE_EDGES),
+ css_border_widths,
present_edges,
&borders_data,
border_radii,
diff --git a/Libraries/LibWeb/Rust/src/painting/visual_context/node_values.rs b/Libraries/LibWeb/Rust/src/painting/visual_context/node_values.rs
index 73158c54ad3..bc53a014f87 100644
--- a/Libraries/LibWeb/Rust/src/painting/visual_context/node_values.rs
+++ b/Libraries/LibWeb/Rust/src/painting/visual_context/node_values.rs
@@ -376,7 +376,11 @@ const NATIVE_APPEARANCE_CORNER_RADIUS_PX: i64 = 4;
/// Whether the node is a devolvable widget rendered with its native appearance: its appearance is not none, and no
/// author declaration disables native appearance for it.
/// https://drafts.csswg.org/css-ui/#appearance-disabling-properties
-fn has_native_appearance(style: ComputedValuesView<'_>, layout_arena: &impl PaintRead, slot: NodeSlotId) -> bool {
+pub(crate) fn has_native_appearance(
+ style: ComputedValuesView<'_>,
+ layout_arena: &impl PaintRead,
+ slot: NodeSlotId,
+) -> bool {
layout_arena.node_has_dom_paint_fact(slot, crate::layout::node_data::DomPaintFact::DevolvableWidget)
&& style.appearance() != css_enums::appearance::NONE
&& !style.native_appearance_disabled()
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-baseline-align.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-baseline-align.txt
index e67c2c29606..d4e5a05f028 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-baseline-align.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-baseline-align.txt
@@ -1,25 +1,25 @@
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 62 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 46 0+0+8] children: inline
- frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 69.1875x46] baseline: 34.796875
- BlockContainer <div.ib> at [8,8] inline-block [0+0+0 69.1875 0+0+0] [0+0+0 46 0+0+0] [BFC] children: inline
- frag 0 from BlockContainer start: 0, length: 0, rect: [9,27 17.828125x20] baseline: 17
- frag 1 from TextNode start: 0, length: 1, rect: [27.828125,30 8x16] baseline: 12.796875
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 60 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 44 0+0+8] children: inline
+ frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 67.1875x44] baseline: 33.796875
+ BlockContainer <div.ib> at [8,8] inline-block [0+0+0 67.1875 0+0+0] [0+0+0 44 0+0+0] [BFC] children: inline
+ frag 0 from BlockContainer start: 0, length: 0, rect: [9,26 17.828125x20] baseline: 17
+ frag 1 from TextNode start: 0, length: 1, rect: [27.828125,29 8x16] baseline: 12.796875
" "
- frag 2 from BlockContainer start: 0, length: 0, rect: [44.828125,11 23.359375x40] baseline: 35
+ frag 2 from BlockContainer start: 0, length: 0, rect: [43.828125,10 23.359375x40] baseline: 34
TextNode <#text> (not painted)
- BlockContainer <div.label> at [9,27] inline-block [0+1+0 17.828125 0+1+0] [0+1+0 20 0+1+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 1, rect: [9,27 17.828125x20] baseline: 16
+ BlockContainer <div.label> at [9,26] inline-block [0+1+0 17.828125 0+1+0] [0+1+0 20 0+1+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 1, rect: [9,26 17.828125x20] baseline: 16
"A"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- BlockContainer <button> at [44.828125,11] inline-block [0+1+8 23.359375 8+1+0] [0+1+2 40 2+1+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [44.828125,11] flex-container(column) [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [44.828125,11] flex-item [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 1, rect: [44.828125,11 23.359375x40] baseline: 32
+ BlockContainer <button> at [43.828125,10] inline-block [0+1+7 23.359375 7+1+0] [0+1+1 40 1+1+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [43.828125,10] flex-container(column) [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [43.828125,10] flex-item [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 1, rect: [43.828125,10 23.359375x40] baseline: 32
"B"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x62] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x60] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-empty.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-empty.txt
index f586e77b893..817871c9063 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-empty.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-empty.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 32 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 16 0+0+8] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,20 0x0] baseline: 3
- BlockContainer <button> at [17,20] inline-block [0+1+8 0 8+1+0] [0+1+2 0 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,20] inline-block [0+2+7 0 7+2+0] [0+2+1 0 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,20] flex-container(column) [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: not-inline
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 9ca1863ac4f..ba375b133f0 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
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 442.203125 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 426.203125 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+1+8 420 8+1+0] [0+1+2 420 2+1+0] [BFC] children: not-inline
+ 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
frag 0 from ImageBox start: 0, length: 0, rect: [17,11 420x420] baseline: 420
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-should-have-vertically-aligned-content.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-should-have-vertically-aligned-content.txt
index cf7a88d6f98..1f692edb43d 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-should-have-vertically-aligned-content.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-should-have-vertically-aligned-content.txt
@@ -1,24 +1,24 @@
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
- frag 0 from BlockContainer start: 0, length: 0, rect: [26,20 43.890625x176] baseline: 77.984375
+ frag 0 from BlockContainer start: 0, length: 0, rect: [25,19 43.890625x178] baseline: 77.984375
TextNode <#text> (not painted)
- BlockContainer <button.button.border-black> at [26,20] inline-block [0+10+8 43.890625 8+10+0] [0+10+2 176 2+10+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [26,20] flex-container(column) [0+0+0 43.890625 0+0+0] [0+0+0 176 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [26,31] flex-item [0+0+0 43.890625 0+0+0] [0+0+0 154 0+0+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [26,31] [0+0+0 43.890625 0+0+0] [0+0+0 0 0+0+0] children: inline
+ BlockContainer <button.button.border-black> at [25,19] inline-block [0+10+7 43.890625 7+10+0] [0+10+1 178 1+10+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [25,19] flex-container(column) [0+0+0 43.890625 0+0+0] [0+0+0 178 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [25,31] flex-item [0+0+0 43.890625 0+0+0] [0+0+0 154 0+0+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [25,31] [0+0+0 43.890625 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- BlockContainer <div.border-black> at [36,41] [0+10+0 23.890625 0+10+0] [0+10+0 14 0+10+0] children: inline
- frag 0 from TextNode start: 13, length: 3, rect: [36,41 23.890625x14] baseline: 10.984375
+ BlockContainer <div.border-black> at [35,41] [0+10+0 23.890625 0+10+0] [0+10+0 14 0+10+0] children: inline
+ frag 0 from TextNode start: 13, length: 3, rect: [35,41 23.890625x14] baseline: 10.984375
"one"
TextNode <#text> (not painted)
- BlockContainer <(anonymous)> at [26,65] [0+0+0 43.890625 0+0+0] [0+0+0 0 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [25,65] [0+0+0 43.890625 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- BlockContainer <div.border-black> at [36,75] [0+10+0 23.890625 0+10+0] [0+10+0 100 0+10+0] children: inline
- frag 0 from TextNode start: 13, length: 3, rect: [36.09375,75 23.6875x14] baseline: 10.984375
+ BlockContainer <div.border-black> at [35,75] [0+10+0 23.890625 0+10+0] [0+10+0 100 0+10+0] children: inline
+ frag 0 from TextNode start: 13, length: 3, rect: [35.09375,75 23.6875x14] baseline: 10.984375
"two"
TextNode <#text> (not painted)
- BlockContainer <(anonymous)> at [26,185] [0+0+0 43.890625 0+0+0] [0+0+0 0 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [25,185] [0+0+0 43.890625 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-width.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-width.txt
index cdc46b93615..2aa15249f69 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-width.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-width.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 56 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 40 0+0+8] children: not-inline
- BlockContainer <button.btn.fixed-width> at [17,11] [0+1+8 182 8+1+584] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button.btn.fixed-width> at [17,11] [0+2+7 182 7+2+584] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 182 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 182 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 11, rect: [68.46875,11 79.0625x14] baseline: 10.984375
"200px width"
TextNode <#text> (not painted)
- BlockContainer <button.btn> at [17,31] [0+1+8 270.515625 8+1+495.484375] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button.btn> at [17,31] [0+2+7 270.515625 7+2+495.484375] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,31] flex-container(column) [0+0+0 270.515625 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,31] flex-item [0+0+0 270.515625 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 39, rect: [17,31 270.515625x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-abspos-pseudo-element.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-abspos-pseudo-element.txt
index ba961680d8b..065cc7da2b5 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-abspos-pseudo-element.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-abspos-pseudo-element.txt
@@ -1,12 +1,12 @@
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 58 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 42 0+0+8] children: inline
- frag 0 from BlockContainer start: 0, length: 0, rect: [29,29 0x0] baseline: 21
- BlockContainer <button> at [29,29] positioned inline-block [0+1+20 0 20+1+0] [0+1+20 0 20+1+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [29,29] flex-container(column) [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [29,29] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [9,9] positioned [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 60 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 44 0+0+8] children: inline
+ frag 0 from BlockContainer start: 0, length: 0, rect: [30,30 0x0] baseline: 22
+ BlockContainer <button> at [30,30] positioned inline-block [0+2+20 0 20+2+0] [0+2+20 0 20+2+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [30,30] flex-container(column) [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [30,30] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [10,10] positioned [0+0+0 40 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x58] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x60] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-after-pseudo.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-after-pseudo.txt
index 8e41b66a7e0..123dc3ec8ec 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-after-pseudo.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-after-pseudo.txt
@@ -2,14 +2,14 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 72 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 56 0+0+8] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 414.703125x50] baseline: 42.984375
- BlockContainer <button.button_button___eDCW> at [17,11] positioned inline-block [0+1+8 414.703125 8+1+0] [0+1+2 50 2+1+0] [BFC] children: not-inline
+ BlockContainer <button.button_button___eDCW> at [17,11] positioned inline-block [0+2+7 414.703125 7+2+0] [0+2+1 50 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 414.703125 0+0+0] [0+0+0 50 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 414.703125 0+0+0] [0+0+0 50 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 14, rect: [17,11 414.703125x50] baseline: 39.984375
"See more games"
TextNode <#text> (not painted)
- BlockContainer <(anonymous)> at [9,9] positioned [0+0+0 430.703125 0+0+0] [0+0+0 54 0+0+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [10,10] positioned [0+0+0 428.703125 0+0+0] [0+0+0 52 0+0+0] [BFC] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x72] (z-index: auto)
- SC for BlockContainer(anonymous) [9,9 430.703125x54] (z-index: -1)
+ SC for BlockContainer(anonymous) [10,10 428.703125x52] (z-index: -1)
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-before-pseudo.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-before-pseudo.txt
index b32e3c035ed..2e93bda7d98 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-before-pseudo.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-before-pseudo.txt
@@ -2,14 +2,14 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 72 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 56 0+0+8] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 414.703125x50] baseline: 42.984375
- BlockContainer <button.button_button___eDCW> at [17,11] positioned inline-block [0+1+8 414.703125 8+1+0] [0+1+2 50 2+1+0] [BFC] children: not-inline
+ BlockContainer <button.button_button___eDCW> at [17,11] positioned inline-block [0+2+7 414.703125 7+2+0] [0+2+1 50 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 414.703125 0+0+0] [0+0+0 50 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 414.703125 0+0+0] [0+0+0 50 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 14, rect: [17,11 414.703125x50] baseline: 39.984375
"See more games"
- BlockContainer <(anonymous)> at [9,9] positioned [0+0+0 430.703125 0+0+0] [0+0+0 54 0+0+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [10,10] positioned [0+0+0 428.703125 0+0+0] [0+0+0 52 0+0+0] [BFC] children: not-inline
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x72] (z-index: auto)
- SC for BlockContainer(anonymous) [9,9 430.703125x54] (z-index: -1)
+ SC for BlockContainer(anonymous) [10,10 428.703125x52] (z-index: -1)
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-block-content-baseline-align.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-block-content-baseline-align.txt
index ec9be9161b3..755fee41d63 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-block-content-baseline-align.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-block-content-baseline-align.txt
@@ -1,30 +1,30 @@
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 62 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 46 0+0+8] children: inline
- frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 69.1875x46] baseline: 34.796875
- BlockContainer <div.ib> at [8,8] inline-block [0+0+0 69.1875 0+0+0] [0+0+0 46 0+0+0] [BFC] children: inline
- frag 0 from BlockContainer start: 0, length: 0, rect: [9,27 17.828125x20] baseline: 17
- frag 1 from TextNode start: 0, length: 1, rect: [27.828125,30 8x16] baseline: 12.796875
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 60 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 44 0+0+8] children: inline
+ frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 67.1875x44] baseline: 33.796875
+ BlockContainer <div.ib> at [8,8] inline-block [0+0+0 67.1875 0+0+0] [0+0+0 44 0+0+0] [BFC] children: inline
+ frag 0 from BlockContainer start: 0, length: 0, rect: [9,26 17.828125x20] baseline: 17
+ frag 1 from TextNode start: 0, length: 1, rect: [27.828125,29 8x16] baseline: 12.796875
" "
- frag 2 from BlockContainer start: 0, length: 0, rect: [44.828125,11 23.359375x40] baseline: 35
+ frag 2 from BlockContainer start: 0, length: 0, rect: [43.828125,10 23.359375x40] baseline: 34
TextNode <#text> (not painted)
- BlockContainer <div.label> at [9,27] inline-block [0+1+0 17.828125 0+1+0] [0+1+0 20 0+1+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 1, rect: [9,27 17.828125x20] baseline: 16
+ BlockContainer <div.label> at [9,26] inline-block [0+1+0 17.828125 0+1+0] [0+1+0 20 0+1+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 1, rect: [9,26 17.828125x20] baseline: 16
"A"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- BlockContainer <button> at [44.828125,11] inline-block [0+1+8 23.359375 8+1+0] [0+1+2 40 2+1+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [44.828125,11] flex-container(column) [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [44.828125,11] flex-item [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline
- BlockContainer <(anonymous)> at [44.828125,11] [0+0+0 23.359375 0+0+0] [0+0+0 0 0+0+0] children: inline
+ BlockContainer <button> at [43.828125,10] inline-block [0+1+7 23.359375 7+1+0] [0+1+1 40 1+1+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [43.828125,10] flex-container(column) [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [43.828125,10] flex-item [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline
+ BlockContainer <(anonymous)> at [43.828125,10] [0+0+0 23.359375 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- BlockContainer <div> at [44.828125,11] [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 1, rect: [44.828125,11 23.359375x40] baseline: 32
+ BlockContainer <div> at [43.828125,10] [0+0+0 23.359375 0+0+0] [0+0+0 40 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 1, rect: [43.828125,10 23.359375x40] baseline: 32
"B"
TextNode <#text> (not painted)
- BlockContainer <(anonymous)> at [44.828125,51] [0+0+0 23.359375 0+0+0] [0+0+0 0 0+0+0] children: inline
+ BlockContainer <(anonymous)> at [43.828125,50] [0+0+0 23.359375 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x62] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x60] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-min-height.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-min-height.txt
index fd155fff2a0..8baf52b3a80 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-min-height.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-min-height.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 119.5625x94] baseline: 53.984375
- BlockContainer <button> at [17,11] inline-block [0+1+8 119.5625 8+1+0] [0+1+2 94 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,11] inline-block [0+2+7 119.5625 7+2+0] [0+2+1 94 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 119.5625 0+0+0] [0+0+0 94 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,51] flex-item [0+0+0 119.5625 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 19, rect: [17,51 119.5625x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-multiple-words-text-node-label.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-multiple-words-text-node-label.txt
index 6662dc195f3..309f4a57cb5 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-multiple-words-text-node-label.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-multiple-words-text-node-label.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 41.609375x14] baseline: 13.984375
- BlockContainer <button> at [17,11] inline-block [0+1+8 41.609375 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,11] inline-block [0+2+7 41.609375 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 41.609375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 41.609375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [17,11 41.609375x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-text-node-label-and-font-size.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-text-node-label-and-font-size.txt
index 5653c7b251f..666fe7168d6 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-text-node-label-and-font-size.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-text-node-label-and-font-size.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 70 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 54 0+0+8] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 111.65625x48] baseline: 41.390625
- BlockContainer <button> at [17,11] inline-block [0+1+8 111.65625 8+1+0] [0+1+2 48 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,11] inline-block [0+2+7 111.65625 7+2+0] [0+2+1 48 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 111.65625 0+0+0] [0+0+0 48 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 111.65625 0+0+0] [0+0+0 48 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [17,11 111.65625x48] baseline: 38.390625
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-text-node-label.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-text-node-label.txt
index 41fba284181..fbee107298b 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-with-text-node-label.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-with-text-node-label.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 31.015625x14] baseline: 13.984375
- BlockContainer <button> at [17,11] inline-block [0+1+8 31.015625 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,11] inline-block [0+2+7 31.015625 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 31.015625 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 31.015625 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [17,11 31.015625x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/block-button-margin-auto.txt b/Tests/LibWeb/Layout/expected/block-button-margin-auto.txt
index ae4e8fd0c13..4c9ac0cefd6 100644
--- a/Tests/LibWeb/Layout/expected/block-button-margin-auto.txt
+++ b/Tests/LibWeb/Layout/expected/block-button-margin-auto.txt
@@ -4,7 +4,7 @@ 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 400 0+0+384] [0+0+0 20 0+0+0] children: not-inline
BlockContainer <(anonymous)> at [8,8] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- BlockContainer <button> at [192.484375,11] [175.484375+1+8 31.015625 8+1+175.484375] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [192.484375,11] [175.484375+2+7 31.015625 7+2+175.484375] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [192.484375,11] flex-container(column) [0+0+0 31.015625 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [192.484375,11] flex-item [0+0+0 31.015625 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [192.484375,11 31.015625x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/block-in-inline-in-floated-fieldset.txt b/Tests/LibWeb/Layout/expected/block-in-inline-in-floated-fieldset.txt
index 20209e0f019..41e0af159ed 100644
--- a/Tests/LibWeb/Layout/expected/block-in-inline-in-floated-fieldset.txt
+++ b/Tests/LibWeb/Layout/expected/block-in-inline-in-floated-fieldset.txt
@@ -19,7 +19,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
InlineNode <p> at [730.5625,21] [0+0+0 59.4375 0+0+0] [0+0+0 16 0+0+0]
InlineNode <span.actions> at [730.5625,21] [0+0+0 59.4375 0+0+0] [0+0+0 14 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [739.5625,21 41.4375x14] baseline: 13.984375
- BlockContainer <input> at [739.5625,21] [0+1+8 41.4375 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <input> at [739.5625,21] [0+2+7 41.4375 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [739.5625,21] flex-container(column) [0+0+0 41.4375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [739.5625,21] flex-item [0+0+0 41.4375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [739.5625,21 41.4375x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/button-with-before-and-after-pseudo-elements.txt b/Tests/LibWeb/Layout/expected/button-with-before-and-after-pseudo-elements.txt
index d52d3c03c53..ca8ea2c115a 100644
--- a/Tests/LibWeb/Layout/expected/button-with-before-and-after-pseudo-elements.txt
+++ b/Tests/LibWeb/Layout/expected/button-with-before-and-after-pseudo-elements.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 68.296875x14] baseline: 13.984375
- BlockContainer <button> at [17,11] inline-block [0+1+8 68.296875 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,11] inline-block [0+2+7 68.296875 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 68.296875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 68.296875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [39.609375,11 23.03125x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/css-appearance-none.txt b/Tests/LibWeb/Layout/expected/css-appearance-none.txt
index 393aa546b20..06c7c609d2a 100644
--- a/Tests/LibWeb/Layout/expected/css-appearance-none.txt
+++ b/Tests/LibWeb/Layout/expected/css-appearance-none.txt
@@ -19,7 +19,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 10 from BlockContainer start: 0, length: 0, rect: [13,117 0x0] baseline: 3
frag 11 from TextNode start: 0, length: 19, rect: [16,104 169.234375x16] baseline: 12.796875
"No appearance radio"
- BlockContainer <input> at [17,11] inline-block [0+1+8 0 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <input> at [17,11] inline-block [0+2+7 0 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 0 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 0 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 0x14] baseline: 10.984375
@@ -29,7 +29,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)
BreakNode <br> (not painted)
TextNode <#text> (not painted)
- BlockContainer <input> at [17,31] inline-block [0+1+8 0 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <input> at [17,31] inline-block [0+2+7 0 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,31] flex-container(column) [0+0+0 0 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,31] flex-item [0+0+0 0 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,31 0x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/css-line-height-zero.txt b/Tests/LibWeb/Layout/expected/css-line-height-zero.txt
index aeb1f7ea813..4731d4d43f0 100644
--- a/Tests/LibWeb/Layout/expected/css-line-height-zero.txt
+++ b/Tests/LibWeb/Layout/expected/css-line-height-zero.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 68 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 52 0+0+8] children: not-inline
- TextInputBox <input#a> at [13,11] [0+1+4 159.6875 4+1+614.3125] [0+1+2 14 2+1+0] children: not-inline
+ TextInputBox <input#a> at [13,11] [0+2+3 159.6875 3+2+614.3125] [0+2+1 14 1+2+0] children: not-inline
Box <div> at [13,11] 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 [13,11] 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: 11, rect: [13,11 76.609375x14] baseline: 10.984375
@@ -9,7 +9,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)
BlockContainer <(anonymous)> at [8,28] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- TextInputBox <input#b> at [13,31] [0+1+4 159.6875 4+1+614.3125] [0+1+2 0 2+1+0] children: not-inline
+ TextInputBox <input#b> at [13,31] [0+2+3 159.6875 3+2+614.3125] [0+2+1 0 1+2+0] children: not-inline
Box <div> at [13,31] flex-container(row) [0+0+0 159.6875 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,24] 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: 11, rect: [13,24 76.609375x14] baseline: 10.984375
@@ -17,7 +17,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)
BlockContainer <(anonymous)> at [8,34] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- TextInputBox <input#c> at [13,37] [0+1+4 159.6875 4+1+614.3125] [0+1+2 20 2+1+0] children: not-inline
+ TextInputBox <input#c> at [13,37] [0+2+3 159.6875 3+2+614.3125] [0+2+1 20 1+2+0] children: not-inline
Box <div> at [13,37] flex-container(row) [0+0+0 159.6875 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,37] flex-item [0+0+0 159.6875 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 11, rect: [13,40 76.609375x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt b/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt
index d743dedc885..0e9a1aa4c0e 100644
--- a/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt
+++ b/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt
@@ -18,7 +18,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
" "
frag 6 from TextAreaBox start: 0, length: 0, rect: [540.0625,27 159.6875x28] baseline: 34
TextNode <#text> (not painted)
- TextInputBox <input> at [13,47] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,47] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,47] 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 [13,47] 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: [13,47 0x14] baseline: 10.984375
@@ -38,7 +38,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"hello"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- TextInputBox <input> at [364.375,47] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [364.375,47] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [364.375,47] 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 [364.375,47] 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: [364.375,47 0x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/field-sizing-content-text-input-centers-text-in-min-height.txt b/Tests/LibWeb/Layout/expected/field-sizing-content-text-input-centers-text-in-min-height.txt
index e3717bbb993..358f09d6ee5 100644
--- a/Tests/LibWeb/Layout/expected/field-sizing-content-text-input-centers-text-in-min-height.txt
+++ b/Tests/LibWeb/Layout/expected/field-sizing-content-text-input-centers-text-in-min-height.txt
@@ -3,7 +3,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 92 0+0+8] children: inline
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 20.796875x40] baseline: 26.59375
frag 1 from BlockContainer start: 0, length: 0, rect: [13,57 20.796875x40] baseline: 26.59375
- TextInputBox <input> at [13,11] inline-block [0+1+4 20.796875 4+1+0] [0+1+2 40 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 20.796875 3+2+0] [0+2+1 40 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] flex-container(row) [0+0+0 20.796875 0+0+0] [0+0+0 40 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,25] flex-item [0+0+0 20.796875 0+0+0] [0+0+0 12 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [13,25 20.796875x12] baseline: 9.59375
@@ -11,7 +11,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)
BreakNode <br> (not painted)
TextNode <#text> (not painted)
- BlockContainer <input> at [13,57] inline-block [0+1+4 20.796875 4+1+0] [0+1+2 40 2+1+0] [BFC] children: not-inline
+ BlockContainer <input> at [13,57] inline-block [0+2+3 20.796875 3+2+0] [0+2+1 40 1+2+0] [BFC] children: not-inline
Box <div> at [13,57] flex-container(row) [0+0+0 20.796875 0+0+0] [0+0+0 40 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,71] flex-item [0+0+0 20.796875 0+0+0] [0+0+0 12 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [13,71 20.796875x12] baseline: 9.59375
diff --git a/Tests/LibWeb/Layout/expected/flex-item-baseline-ignores-vertical-align.txt b/Tests/LibWeb/Layout/expected/flex-item-baseline-ignores-vertical-align.txt
index 5bd80b473f5..d9d3f321678 100644
--- a/Tests/LibWeb/Layout/expected/flex-item-baseline-ignores-vertical-align.txt
+++ b/Tests/LibWeb/Layout/expected/flex-item-baseline-ignores-vertical-align.txt
@@ -8,7 +8,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 2 from TextNode start: 0, length: 1, rect: [49.34375,8 11.65625x26] baseline: 20.796875
"y"
TextNode <#text> (not painted)
- Box <button> at [32.765625,17] flex-container(row) [0+1+8 7.578125 8+1+0] [0+1+2 14 2+1+0] [FFC] children: not-inline
+ Box <button> at [32.765625,17] flex-container(row) [0+2+7 7.578125 7+2+0] [0+2+1 14 1+2+0] [FFC] children: not-inline
Box <span> at [32.765625,17] flex-container(row) flex-item [0+0+0 7.578125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [32.765625,17] flex-item [0+0+0 7.578125 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [32.765625,17 7.578125x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/flex/button-layout-inside-flex.txt b/Tests/LibWeb/Layout/expected/flex/button-layout-inside-flex.txt
index d067ad3a9fa..9af7850c0e0 100644
--- a/Tests/LibWeb/Layout/expected/flex/button-layout-inside-flex.txt
+++ b/Tests/LibWeb/Layout/expected/flex/button-layout-inside-flex.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 52 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 36 0+0+8] children: not-inline
Box <div> at [8,8] flex-container(column) [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
- BlockContainer <button> at [17,11] flex-item [0+1+8 766 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,11] flex-item [0+2+7 766 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 766 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 766 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [388.6875,11 22.609375x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/flex/flex-item-with-percentage-width-in-flex-container-with-definite-max-width.txt b/Tests/LibWeb/Layout/expected/flex/flex-item-with-percentage-width-in-flex-container-with-definite-max-width.txt
index c51591ada08..854893f492f 100644
--- a/Tests/LibWeb/Layout/expected/flex/flex-item-with-percentage-width-in-flex-container-with-definite-max-width.txt
+++ b/Tests/LibWeb/Layout/expected/flex/flex-item-with-percentage-width-in-flex-container-with-definite-max-width.txt
@@ -4,7 +4,7 @@ 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,8] flex-item [0+0+0 247.453125 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 229.453125x14] baseline: 13.984375
TextNode <#text> (not painted)
- BlockContainer <button> at [17,11] inline-block [0+1+8 229.453125 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,11] inline-block [0+2+7 229.453125 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 229.453125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 229.453125 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 5, length: 24, rect: [17,11 229.453125x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/flex/text-input-stretches-in-column-flex.txt b/Tests/LibWeb/Layout/expected/flex/text-input-stretches-in-column-flex.txt
index d7a2f68c78d..713a6d9a4b2 100644
--- a/Tests/LibWeb/Layout/expected/flex/text-input-stretches-in-column-flex.txt
+++ b/Tests/LibWeb/Layout/expected/flex/text-input-stretches-in-column-flex.txt
@@ -3,7 +3,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 20 0+0+8] children: not-inline
Box <div.layout-container> at [8,8] flex-container(column) [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
Box <div.cpd-form-field> at [8,8] flex-container(column) flex-item [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
- TextInputBox <input> at [13,11] flex-item [0+1+4 774 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] flex-item [0+2+3 774 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] flex-container(row) [0+0+0 774 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,11] flex-item [0+0+0 774 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 0, rect: [13,11 0x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/form-control-baseline-alignment.txt b/Tests/LibWeb/Layout/expected/form-control-baseline-alignment.txt
index 1905273f60b..092fff51ced 100644
--- a/Tests/LibWeb/Layout/expected/form-control-baseline-alignment.txt
+++ b/Tests/LibWeb/Layout/expected/form-control-baseline-alignment.txt
@@ -7,7 +7,7 @@ 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: [573.4375,29 8x16] baseline: 12.796875
" "
frag 4 from TextAreaBox start: 0, length: 0, rect: [614.625,11 159.6875x28] baseline: 34
- TextInputBox <input> at [13,31] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,31] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,31] 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 [13,31] 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: [13,31 0x14] baseline: 10.984375
@@ -25,7 +25,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: 3, rect: [373.5625,29 30.1875x16] baseline: 12.796875
"boo"
TextNode <#text> (not painted)
- TextInputBox <input> at [408.75,31] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [408.75,31] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [408.75,31] 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 [408.75,31] 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: [408.75,31 0x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/form-controls-and-canvas-resized-after-first-layout.txt b/Tests/LibWeb/Layout/expected/form-controls-and-canvas-resized-after-first-layout.txt
index d4cf3174a93..c5be9b0550b 100644
--- a/Tests/LibWeb/Layout/expected/form-controls-and-canvas-resized-after-first-layout.txt
+++ b/Tests/LibWeb/Layout/expected/form-controls-and-canvas-resized-after-first-layout.txt
@@ -18,7 +18,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: 0, rect: [11,34 0x14] baseline: 10.984375
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- TextInputBox <input#input> at [266.53125,82] inline-block [0+1+4 199.609375 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input#input> at [266.53125,82] inline-block [0+2+3 199.609375 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [266.53125,82] flex-container(row) [0+0+0 199.609375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [266.53125,82] flex-item [0+0+0 199.609375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 0, rect: [266.53125,82 0x14] baseline: 10.984375
@@ -32,7 +32,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)
CanvasBox <canvas#canvas> at [563.140625,73] [0+0+0 120 0+0+0] [0+0+0 20 0+0+0] children: not-inline
TextNode <#text> (not painted)
- BlockContainer <input#becomes-text> at [13,102] inline-block [0+1+4 119.765625 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <input#becomes-text> at [13,102] inline-block [0+2+3 119.765625 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,102] flex-container(row) [0+0+0 119.765625 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,102] flex-item [0+0+0 119.765625 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 0, rect: [13,102 0x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/input-as-button-align-center.txt b/Tests/LibWeb/Layout/expected/input-as-button-align-center.txt
index a0473473f1c..2e4e687930d 100644
--- a/Tests/LibWeb/Layout/expected/input-as-button-align-center.txt
+++ b/Tests/LibWeb/Layout/expected/input-as-button-align-center.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 316 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 300 0+0+8] children: not-inline
- BlockContainer <input.btn> at [17,11] [0+1+8 282 8+1+484] [0+1+2 294 2+1+0] [BFC] children: not-inline
+ BlockContainer <input.btn> at [17,11] [0+2+7 282 7+2+484] [0+2+1 294 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 282 0+0+0] [0+0+0 294 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,150.5] flex-item [0+0+0 282 0+0+0] [0+0+0 15 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [36.75,150.5 242.5x15] baseline: 12
diff --git a/Tests/LibWeb/Layout/expected/input-as-button-shrink-to-fit.txt b/Tests/LibWeb/Layout/expected/input-as-button-shrink-to-fit.txt
index 3845d3b7f6f..b1917a0fc10 100644
--- a/Tests/LibWeb/Layout/expected/input-as-button-shrink-to-fit.txt
+++ b/Tests/LibWeb/Layout/expected/input-as-button-shrink-to-fit.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 52 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 36 0+0+8] children: not-inline
- BlockContainer <input.btn> at [17,11] [0+1+8 195.796875 8+1+570.203125] [0+1+2 30 2+1+0] [BFC] children: not-inline
+ BlockContainer <input.btn> at [17,11] [0+2+7 195.796875 7+2+570.203125] [0+2+1 30 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 195.796875 0+0+0] [0+0+0 30 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,18.5] flex-item [0+0+0 195.796875 0+0+0] [0+0+0 15 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,18.5 195.796875x15] baseline: 12
diff --git a/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt b/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt
index c23cbfa85f3..c6b170dd844 100644
--- a/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt
+++ b/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt
@@ -1,50 +1,50 @@
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 120.875 0+0+0] [BFC] children: not-inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 122.875 0+0+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [0,0] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- BlockContainer <body> at [8,21.4375] [8+0+0 784 0+0+8] [8+0+0 91.4375 0+0+8] children: not-inline
+ BlockContainer <body> at [8,21.4375] [8+0+0 784 0+0+8] [8+0+0 93.4375 0+0+8] children: not-inline
BlockContainer <(anonymous)> at [8,21.4375] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
BlockContainer <h1> at [8,21.4375] [0+0+0 784 0+0+0] [21.4375+0+0 32 0+0+21.4375] children: inline
frag 0 from TextNode start: 0, length: 37, rect: [8,21.4375 613.1875x32] baseline: 25.59375
"Input Field Placeholder Position Test"
TextNode <#text> (not painted)
- BlockContainer <(anonymous)> at [8,74.875] [0+0+0 784 0+0+0] [0+0+0 38 0+0+0] children: inline
- frag 0 from TextInputBox start: 0, length: 0, rect: [19,85.875 191.875x16] baseline: 23.796875
- frag 1 from TextNode start: 0, length: 1, rect: [221.875,85.875 8x16] baseline: 12.796875
+ BlockContainer <(anonymous)> at [8,74.875] [0+0+0 784 0+0+0] [0+0+0 40 0+0+0] children: inline
+ frag 0 from TextInputBox start: 0, length: 0, rect: [20,86.875 191.875x16] baseline: 24.796875
+ frag 1 from TextNode start: 0, length: 1, rect: [223.875,86.875 8x16] baseline: 12.796875
" "
- frag 2 from TextInputBox start: 0, length: 0, rect: [240.875,85.875 191.875x16] baseline: 23.796875
- frag 3 from TextNode start: 0, length: 1, rect: [443.75,85.875 8x16] baseline: 12.796875
+ frag 2 from TextInputBox start: 0, length: 0, rect: [243.875,86.875 191.875x16] baseline: 24.796875
+ frag 3 from TextNode start: 0, length: 1, rect: [447.75,86.875 8x16] baseline: 12.796875
" "
- frag 4 from TextInputBox start: 0, length: 0, rect: [462.75,85.875 191.875x16] baseline: 23.796875
+ frag 4 from TextInputBox start: 0, length: 0, rect: [467.75,86.875 191.875x16] baseline: 24.796875
TextNode <#text> (not painted)
- TextInputBox <input> at [19,85.875] inline-block [0+1+10 191.875 10+1+0] [0+1+10 16 10+1+0] [BFC] children: not-inline
- Box <div> at [19,85.875] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline
- BlockContainer <div> at [19,85.875] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 0, rect: [19,85.875 0x16] baseline: 12.796875
+ TextInputBox <input> at [20,86.875] inline-block [0+2+10 191.875 10+2+0] [0+2+10 16 10+2+0] [BFC] children: not-inline
+ Box <div> at [20,86.875] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline
+ BlockContainer <div> at [20,86.875] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 0, rect: [20,86.875 0x16] baseline: 12.796875
TextNode <#text> (not painted)
- BlockContainer <div> at [19,85.875] flex-item [-191.875+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 11, rect: [19,85.875 87.328125x16] baseline: 12.796875
+ BlockContainer <div> at [20,86.875] flex-item [-191.875+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 11, rect: [20,86.875 87.328125x16] baseline: 12.796875
"Empty field"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- TextInputBox <input> at [240.875,85.875] inline-block [0+1+10 191.875 10+1+0] [0+1+10 16 10+1+0] [BFC] children: not-inline
- Box <div> at [240.875,85.875] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline
- BlockContainer <div> at [240.875,85.875] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 12, rect: [240.875,85.875 81.96875x16] baseline: 12.796875
+ TextInputBox <input> at [243.875,86.875] inline-block [0+2+10 191.875 10+2+0] [0+2+10 16 10+2+0] [BFC] children: not-inline
+ Box <div> at [243.875,86.875] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline
+ BlockContainer <div> at [243.875,86.875] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 12, rect: [243.875,86.875 81.96875x16] baseline: 12.796875
"Filled field"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- TextInputBox <input> at [462.75,85.875] inline-block [0+1+10 191.875 10+1+0] [0+1+10 16 10+1+0] [BFC] children: not-inline
- Box <div> at [462.75,85.875] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline
- BlockContainer <div> at [462.75,85.875] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 0, rect: [462.75,85.875 0x16] baseline: 12.796875
+ TextInputBox <input> at [467.75,86.875] inline-block [0+2+10 191.875 10+2+0] [0+2+10 16 10+2+0] [BFC] children: not-inline
+ Box <div> at [467.75,86.875] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline
+ BlockContainer <div> at [467.75,86.875] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 0, rect: [467.75,86.875 0x16] baseline: 12.796875
TextNode <#text> (not painted)
- BlockContainer <div> at [462.75,85.875] flex-item [-191.875+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 9, rect: [462.75,85.875 81.171875x16] baseline: 12.796875
+ BlockContainer <div> at [467.75,86.875] flex-item [-191.875+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 9, rect: [467.75,86.875 81.171875x16] baseline: 12.796875
"Type here"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x120.875] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x122.875] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/input-element-with-display-inline.txt b/Tests/LibWeb/Layout/expected/input-element-with-display-inline.txt
index 0d83add1a6f..8b0372488c2 100644
--- a/Tests/LibWeb/Layout/expected/input-element-with-display-inline.txt
+++ b/Tests/LibWeb/Layout/expected/input-element-with-display-inline.txt
@@ -1,12 +1,12 @@
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 44 0+1+0] [BFC] children: not-inline
- BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 26 0+1+8] children: inline
- frag 0 from TextInputBox start: 0, length: 0, rect: [15,13 200x20] baseline: 19
- TextInputBox <input> at [15,13] inline-block [0+1+4 200 4+1+0] [0+1+2 20 2+1+0] [BFC] children: not-inline
- Box <div> at [15,13] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
- BlockContainer <div> at [15,13] flex-item [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 0, rect: [15,13 0x20] baseline: 16
+ BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 42 0+1+0] [BFC] children: not-inline
+ BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 24 0+1+8] children: inline
+ frag 0 from TextInputBox start: 0, length: 0, rect: [14,12 200x20] baseline: 18
+ TextInputBox <input> at [14,12] inline-block [0+1+3 200 3+1+0] [0+1+1 20 1+1+0] [BFC] children: not-inline
+ Box <div> at [14,12] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
+ BlockContainer <div> at [14,12] flex-item [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 0, rect: [14,12 0x20] baseline: 16
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [1,1 798x44] (z-index: auto)
+ SC for BlockContainer<HTML> [1,1 798x42] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/input-file-after-type-change.txt b/Tests/LibWeb/Layout/expected/input-file-after-type-change.txt
index b5cbb6d6cbf..fa8805468a1 100644
--- a/Tests/LibWeb/Layout/expected/input-file-after-type-change.txt
+++ b/Tests/LibWeb/Layout/expected/input-file-after-type-change.txt
@@ -6,7 +6,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <(anonymous)> at [8,8] flex-container(column) [0+0+0 207.546875 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [8,8] flex-item [0+0+0 207.546875 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 78.65625x14] baseline: 13.984375
- BlockContainer <button> at [17,11] inline-block [0+1+8 78.65625 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,11] inline-block [0+2+7 78.65625 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 78.65625 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 78.65625 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 14, rect: [17,11 78.65625x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/input-file.txt b/Tests/LibWeb/Layout/expected/input-file.txt
index 6030ab90b25..bab0e7d7544 100644
--- a/Tests/LibWeb/Layout/expected/input-file.txt
+++ b/Tests/LibWeb/Layout/expected/input-file.txt
@@ -12,7 +12,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <(anonymous)> at [8,8] flex-container(column) [0+0+0 207.546875 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [8,8] flex-item [0+0+0 207.546875 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,11 78.65625x14] baseline: 13.984375
- BlockContainer <button> at [17,11] inline-block [0+1+8 78.65625 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [17,11] inline-block [0+2+7 78.65625 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-container(column) [0+0+0 78.65625 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,11] flex-item [0+0+0 78.65625 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 14, rect: [17,11 78.65625x14] baseline: 10.984375
@@ -27,7 +27,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <(anonymous)> at [223.546875,8] flex-container(column) [0+0+0 223.109375 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [223.546875,8] flex-item [0+0+0 223.109375 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [232.546875,11 86.4375x14] baseline: 13.984375
- BlockContainer <button> at [232.546875,11] inline-block [0+1+8 86.4375 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [232.546875,11] inline-block [0+2+7 86.4375 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [232.546875,11] flex-container(column) [0+0+0 86.4375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [232.546875,11] flex-item [0+0+0 86.4375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 15, rect: [232.546875,11 86.4375x14] baseline: 10.984375
@@ -42,7 +42,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <(anonymous)> at [454.65625,8] flex-container(column) [0+0+0 223.109375 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [454.65625,8] flex-item [0+0+0 223.109375 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [463.65625,11 86.4375x14] baseline: 13.984375
- BlockContainer <button> at [463.65625,11] inline-block [0+1+8 86.4375 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [463.65625,11] inline-block [0+2+7 86.4375 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [463.65625,11] flex-container(column) [0+0+0 86.4375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [463.65625,11] flex-item [0+0+0 86.4375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 15, rect: [463.65625,11 86.4375x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/input-image-to-text-after-style-update.txt b/Tests/LibWeb/Layout/expected/input-image-to-text-after-style-update.txt
index b149c94f481..f708ea2b791 100644
--- a/Tests/LibWeb/Layout/expected/input-image-to-text-after-style-update.txt
+++ b/Tests/LibWeb/Layout/expected/input-image-to-text-after-style-update.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 159.6875x14] baseline: 13.984375
- TextInputBox <input> at [13,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] 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 [13,11] 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: 7, rect: [13,11 46.375x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/input-image-to-text.txt b/Tests/LibWeb/Layout/expected/input-image-to-text.txt
index b149c94f481..f708ea2b791 100644
--- a/Tests/LibWeb/Layout/expected/input-image-to-text.txt
+++ b/Tests/LibWeb/Layout/expected/input-image-to-text.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 159.6875x14] baseline: 13.984375
- TextInputBox <input> at [13,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] 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 [13,11] 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: 7, rect: [13,11 46.375x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/input-number-placeholder.txt b/Tests/LibWeb/Layout/expected/input-number-placeholder.txt
index ae2b4d243bc..1f9e12b3d51 100644
--- a/Tests/LibWeb/Layout/expected/input-number-placeholder.txt
+++ b/Tests/LibWeb/Layout/expected/input-number-placeholder.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 159.6875x14] baseline: 13.984375
- TextInputBox <input> at [13,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] flex-container(row) [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
Box <div> at [13,11] flex-container(row) flex-item [0+0+0 146.359375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,11] flex-item [0+0+0 146.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
diff --git a/Tests/LibWeb/Layout/expected/input-password-to-text.txt b/Tests/LibWeb/Layout/expected/input-password-to-text.txt
index 244834711f1..4ae62967d49 100644
--- a/Tests/LibWeb/Layout/expected/input-password-to-text.txt
+++ b/Tests/LibWeb/Layout/expected/input-password-to-text.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 159.6875x14] baseline: 13.984375
- TextInputBox <input> at [13,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] 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 [13,11] 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: 7, rect: [13,11 51.578125x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/input-placeholder-with-line-height.txt b/Tests/LibWeb/Layout/expected/input-placeholder-with-line-height.txt
index 7e67815bb68..7cf7515d9aa 100644
--- a/Tests/LibWeb/Layout/expected/input-placeholder-with-line-height.txt
+++ b/Tests/LibWeb/Layout/expected/input-placeholder-with-line-height.txt
@@ -4,7 +4,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 TextInputBox start: 0, length: 0, rect: [13,11 159.6875x66.640625] baseline: 40.609375
frag 1 from TextNode start: 0, length: 4, rect: [177.6875,35 32.140625x16] baseline: 12.796875
"text"
- TextInputBox <input> at [13,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 66.640625 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 66.640625 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] flex-container(row) [0+0+0 159.6875 0+0+0] [0+0+0 66.640625 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,11] flex-item [0+0+0 159.6875 0+0+0] [0+0+0 66.640625 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 0, rect: [13,37.328125 0x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/input-placeholder-with-text-align.txt b/Tests/LibWeb/Layout/expected/input-placeholder-with-text-align.txt
index f22b1b6e305..a171dac3815 100644
--- a/Tests/LibWeb/Layout/expected/input-placeholder-with-text-align.txt
+++ b/Tests/LibWeb/Layout/expected/input-placeholder-with-text-align.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 122 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 106 0+0+8] children: inline
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 400x100] baseline: 56.984375
- TextInputBox <input> at [13,11] inline-block [0+1+4 400 4+1+0] [0+1+2 100 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 400 3+2+0] [0+2+1 100 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] flex-container(row) [0+0+0 400 0+0+0] [0+0+0 100 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,54] flex-item [0+0+0 400 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 0, rect: [213,54 0x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/input-placeholder.txt b/Tests/LibWeb/Layout/expected/input-placeholder.txt
index d80ed63d72a..db21a29b4be 100644
--- a/Tests/LibWeb/Layout/expected/input-placeholder.txt
+++ b/Tests/LibWeb/Layout/expected/input-placeholder.txt
@@ -9,14 +9,14 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
" "
frag 4 from TextInputBox start: 0, length: 0, rect: [453,11 200x20] baseline: 19
frag 5 from TextInputBox start: 0, length: 0, rect: [13,37 200x20] baseline: 19
- TextInputBox <input> at [13,11] inline-block [0+1+4 200 4+1+0] [0+1+2 20 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 200 3+2+0] [0+2+1 20 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,11] flex-item [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [13,11 40.1875x20] baseline: 16
"text"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- TextInputBox <input> at [233,11] inline-block [0+1+4 200 4+1+0] [0+1+2 20 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [233,11] inline-block [0+2+3 200 3+2+0] [0+2+1 20 1+2+0] [BFC] children: not-inline
Box <div> at [233,11] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [233,11] flex-item [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 0, rect: [233,11 0x20] baseline: 16
@@ -26,14 +26,14 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"This placeholder should be visible"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- TextInputBox <input> at [453,11] inline-block [0+1+4 200 4+1+0] [0+1+2 20 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [453,11] inline-block [0+2+3 200 3+2+0] [0+2+1 20 1+2+0] [BFC] children: not-inline
Box <div> at [453,11] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [453,11] flex-item [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [453,11 40.1875x20] baseline: 16
"text"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- TextInputBox <input#placeholder> at [13,37] inline-block [0+1+4 200 4+1+0] [0+1+2 20 2+1+0] [BFC] children: not-inline
+ TextInputBox <input#placeholder> at [13,37] inline-block [0+2+3 200 3+2+0] [0+2+1 20 1+2+0] [BFC] children: not-inline
Box <div> at [13,37] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,37] flex-item [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 0, rect: [13,37 0x20] baseline: 16
diff --git a/Tests/LibWeb/Layout/expected/input-text-node-invalidation-on-value-change.txt b/Tests/LibWeb/Layout/expected/input-text-node-invalidation-on-value-change.txt
index 398e7827738..e745e04acd0 100644
--- a/Tests/LibWeb/Layout/expected/input-text-node-invalidation-on-value-change.txt
+++ b/Tests/LibWeb/Layout/expected/input-text-node-invalidation-on-value-change.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 42 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 26 0+0+8] children: inline
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 200x20] baseline: 19
- TextInputBox <input#foo> at [13,11] inline-block [0+1+4 200 4+1+0] [0+1+2 20 2+1+0] [BFC] children: not-inline
+ TextInputBox <input#foo> at [13,11] inline-block [0+2+3 200 3+2+0] [0+2+1 20 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,11] flex-item [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [13,11 62.1875x20] baseline: 16
diff --git a/Tests/LibWeb/Layout/expected/input-text-to-password.txt b/Tests/LibWeb/Layout/expected/input-text-to-password.txt
index eba089b5a04..f7739a293f1 100644
--- a/Tests/LibWeb/Layout/expected/input-text-to-password.txt
+++ b/Tests/LibWeb/Layout/expected/input-text-to-password.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 159.6875x14] baseline: 13.984375
- TextInputBox <input> at [13,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] 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 [13,11] 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: 7, rect: [13,11 34.125x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/input-time.txt b/Tests/LibWeb/Layout/expected/input-time.txt
index da00afc5450..8a5172e7d72 100644
--- a/Tests/LibWeb/Layout/expected/input-time.txt
+++ b/Tests/LibWeb/Layout/expected/input-time.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 42 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 26 0+0+8] children: inline
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 240x20] baseline: 19
- TextInputBox <input> at [13,11] inline-block [0+1+4 240 4+1+0] [0+1+2 20 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 240 3+2+0] [0+2+1 20 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] flex-container(row) [0+0+0 240 0+0+0] [0+0+0 20 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,11] flex-item [0+0+0 240 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 0, rect: [13,11 0x20] baseline: 16
diff --git a/Tests/LibWeb/Layout/expected/layout-tree-update/maintain-single-backdrop-pseudo-element.txt b/Tests/LibWeb/Layout/expected/layout-tree-update/maintain-single-backdrop-pseudo-element.txt
index b1f71040e4e..eb838973e9b 100644
--- a/Tests/LibWeb/Layout/expected/layout-tree-update/maintain-single-backdrop-pseudo-element.txt
+++ b/Tests/LibWeb/Layout/expected/layout-tree-update/maintain-single-backdrop-pseudo-element.txt
@@ -5,7 +5,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <(anonymous)> at [0,0] positioned [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
BlockContainer <dialog#d> at [315.15625,290] positioned [296.15625+3+16 169.6875 16+3+296.15625] [271+3+16 20 16+3+271] [BFC] children: inline
frag 0 from TextInputBox start: 0, length: 0, rect: [320.15625,293 159.6875x14] baseline: 13.984375
- TextInputBox <input> at [320.15625,293] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [320.15625,293] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [320.15625,293] 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 [320.15625,293] 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: [320.15625,293 0x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/number-input-appearance.txt b/Tests/LibWeb/Layout/expected/number-input-appearance.txt
index 8a50ff3ad02..45c18991f5d 100644
--- a/Tests/LibWeb/Layout/expected/number-input-appearance.txt
+++ b/Tests/LibWeb/Layout/expected/number-input-appearance.txt
@@ -8,7 +8,7 @@ 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: [355.375,9 8x16] baseline: 12.796875
" "
frag 4 from TextInputBox start: 0, length: 0, rect: [368.375,11 159.6875x14] baseline: 13.984375
- TextInputBox <input> at [13,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] flex-container(row) [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
Box <div> at [13,11] flex-container(row) flex-item [0+0+0 146.359375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [13,11] flex-item [0+0+0 146.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
@@ -23,7 +23,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGSVGBox <svg> at [161.359375,18.171875] flex-item [0+0+0 9.328125 0+0+0] [0+0+0 6.65625 0+0+0] viewport-transform=[0.665625 0 0 0.665625 -3.328125 -4.6593747] [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
TextNode <#text> (not painted)
- TextInputBox <input> at [190.6875,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [190.6875,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [190.6875,11] flex-container(row) [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
Box <div> at [190.6875,11] flex-container(row) flex-item [0+0+0 146.359375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [190.6875,11] flex-item [0+0+0 146.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
@@ -38,7 +38,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGSVGBox <svg> at [339.046875,18.171875] flex-item [0+0+0 9.328125 0+0+0] [0+0+0 6.65625 0+0+0] viewport-transform=[0.665625 0 0 0.665625 -3.328125 -4.6593747] [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
TextNode <#text> (not painted)
- TextInputBox <input> at [368.375,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [368.375,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [368.375,11] flex-container(row) [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
Box <div> at [368.375,11] flex-container(row) flex-item [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <div> at [368.375,11] flex-item [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
diff --git a/Tests/LibWeb/Layout/expected/popovertarget-button.txt b/Tests/LibWeb/Layout/expected/popovertarget-button.txt
index d5c2e0c42b8..1dd9c18c645 100644
--- a/Tests/LibWeb/Layout/expected/popovertarget-button.txt
+++ b/Tests/LibWeb/Layout/expected/popovertarget-button.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 32 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 16 0+0+8] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [17,20 0x0] baseline: 3
- BlockContainer <button#button> at [17,20] inline-block [0+1+8 0 8+1+0] [0+1+2 0 2+1+0] [BFC] children: not-inline
+ BlockContainer <button#button> at [17,20] inline-block [0+2+7 0 7+2+0] [0+2+1 0 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [17,20] flex-container(column) [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: not-inline
TextNode <#text> (not painted)
diff --git a/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement.txt b/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement.txt
index e8a4d61d18d..4e6d7d41fcf 100644
--- a/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement.txt
+++ b/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement.txt
@@ -3,7 +3,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 320 0+0+8] children: not-inline
BlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- Box <button.flex-container.single-image> at [17,11] flex-container(row) [0+1+8 182 8+1+584] [0+1+2 42 2+1+0] [FFC] children: not-inline
+ Box <button.flex-container.single-image> at [17,11] flex-container(row) [0+2+7 182 7+2+584] [0+2+1 42 1+2+0] [FFC] children: not-inline
ImageBox <(anonymous)> at [17,11] flex-item [0+0+0 32 0+0+0] [0+0+0 32 0+0+0] children: not-inline
BlockContainer <(anonymous)> at [57,11] flex-item [0+0+0 106.515625 0+0+0] [0+0+0 42 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 14, rect: [57,11 106.515625x14] baseline: 10.984375
@@ -11,7 +11,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)
BlockContainer <(anonymous)> at [8,56] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- Box <button.flex-container.single-image.intrinsic-size> at [17,59] flex-container(row) [0+1+8 182 8+1+584] [0+1+2 42 2+1+0] [FFC] children: not-inline
+ Box <button.flex-container.single-image.intrinsic-size> at [17,59] flex-container(row) [0+2+7 182 7+2+584] [0+2+1 42 1+2+0] [FFC] children: not-inline
ImageBox <(anonymous)> at [17,59] flex-item [0+0+0 40 0+0+0] [0+0+0 32 0+0+0] children: not-inline
BlockContainer <(anonymous)> at [65,59] flex-item [0+0+0 124.578125 0+0+0] [0+0+0 42 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 18, rect: [65,59 124.578125x14] baseline: 10.984375
@@ -19,7 +19,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)
BlockContainer <(anonymous)> at [8,104] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- Box <button.flex-container.single-image.with-alt-text> at [17,107] flex-container(row) [0+1+8 182 8+1+584] [0+1+2 42 2+1+0] [FFC] children: not-inline
+ Box <button.flex-container.single-image.with-alt-text> at [17,107] flex-container(row) [0+2+7 182 7+2+584] [0+2+1 42 1+2+0] [FFC] children: not-inline
ImageBox <(anonymous)> at [17,107] flex-item [0+0+0 32 0+0+0] [0+0+0 32 0+0+0] children: not-inline
BlockContainer <(anonymous)> at [57,107] flex-item [0+0+0 54.59375 0+0+0] [0+0+0 42 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 8, rect: [57,107 54.59375x14] baseline: 10.984375
@@ -27,7 +27,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)
BlockContainer <(anonymous)> at [8,152] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
- Box <button.flex-container.after-only> at [17,155] flex-container(row) [0+1+8 182 8+1+584] [0+1+2 42 2+1+0] [FFC] children: not-inline
+ Box <button.flex-container.after-only> at [17,155] flex-container(row) [0+2+7 182 7+2+584] [0+2+1 42 1+2+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [17,155] flex-item [0+0+0 37.59375 0+0+0] [0+0+0 42 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [17,155 37.59375x14] baseline: 10.984375
"After"
diff --git a/Tests/LibWeb/Layout/expected/quirks/button-height-in-quirks-mode.txt b/Tests/LibWeb/Layout/expected/quirks/button-height-in-quirks-mode.txt
index 0b324edd3e4..4611a535d36 100644
--- a/Tests/LibWeb/Layout/expected/quirks/button-height-in-quirks-mode.txt
+++ b/Tests/LibWeb/Layout/expected/quirks/button-height-in-quirks-mode.txt
@@ -3,7 +3,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <body> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [9,3 81.671875x14] baseline: 13.984375
TextNode <#text> (not painted)
- BlockContainer <button> at [9,3] inline-block [0+1+8 81.671875 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <button> at [9,3] inline-block [0+2+7 81.671875 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [9,3] flex-container(column) [0+0+0 81.671875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [9,3] flex-item [0+0+0 81.671875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 11, rect: [9,3 81.671875x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/quirks/input-in-pre-quirks-mode.txt b/Tests/LibWeb/Layout/expected/quirks/input-in-pre-quirks-mode.txt
index 8fc4e2e05f9..2deff59e14f 100644
--- a/Tests/LibWeb/Layout/expected/quirks/input-in-pre-quirks-mode.txt
+++ b/Tests/LibWeb/Layout/expected/quirks/input-in-pre-quirks-mode.txt
@@ -5,7 +5,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)
BlockContainer <pre> at [8,13] [0+0+0 784 0+0+0] [13+0+0 20 0+0+13] children: inline
frag 0 from TextInputBox start: 0, length: 0, rect: [13,16 159.6875x14] baseline: 13.984375
- TextInputBox <input> at [13,16] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,16] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,16] 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 [13,16] 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: [13,16 0x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/select-baseline-from-label-text.txt b/Tests/LibWeb/Layout/expected/select-baseline-from-label-text.txt
index deba6e8e828..5094e5059eb 100644
--- a/Tests/LibWeb/Layout/expected/select-baseline-from-label-text.txt
+++ b/Tests/LibWeb/Layout/expected/select-baseline-from-label-text.txt
@@ -26,7 +26,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
SVGSVGBox <svg> at [97.296875,10] [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
TextNode <#text> (not painted)
- BlockContainer <input> at [139.296875,11] inline-block [0+1+8 19.65625 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ BlockContainer <input> at [139.296875,11] inline-block [0+2+7 19.65625 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [139.296875,11] flex-container(column) [0+0+0 19.65625 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
BlockContainer <(anonymous)> at [139.296875,11] flex-item [0+0+0 19.65625 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [139.296875,11 19.65625x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Layout/expected/unicode-password-input.txt b/Tests/LibWeb/Layout/expected/unicode-password-input.txt
index c79e7899d38..e7a80f89ee8 100644
--- a/Tests/LibWeb/Layout/expected/unicode-password-input.txt
+++ b/Tests/LibWeb/Layout/expected/unicode-password-input.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
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
frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 159.6875x14] baseline: 13.984375
- TextInputBox <input> at [13,11] inline-block [0+1+4 159.6875 4+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline
+ TextInputBox <input> at [13,11] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
Box <div> at [13,11] 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 [13,11] 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: 14, rect: [13,11 68.25x14] baseline: 10.984375
diff --git a/Tests/LibWeb/Text/expected/css/revert-physical-after-all-unset.txt b/Tests/LibWeb/Text/expected/css/revert-physical-after-all-unset.txt
index ebd3c11801f..05a5a877792 100644
--- a/Tests/LibWeb/Text/expected/css/revert-physical-after-all-unset.txt
+++ b/Tests/LibWeb/Text/expected/css/revert-physical-after-all-unset.txt
@@ -1,4 +1,4 @@
-same-rule: 1px solid
-later-rule: 1px solid
-longhands: 1px solid
+same-rule: 2px outset
+later-rule: 2px outset
+longhands: 2px outset
logical-later: 0px none
diff --git a/Tests/LibWeb/Text/expected/display_list/form-control-devolved-borders.txt b/Tests/LibWeb/Text/expected/display_list/form-control-devolved-borders.txt
new file mode 100644
index 00000000000..734ef46175a
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/display_list/form-control-devolved-borders.txt
@@ -0,0 +1,6 @@
+FillRoundedRectRing@s1/e0 rect=[0,0 58x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)
+FillRoundedRectRing@s1/e0 rect=[66,0 170x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)
+FillPath@s1/e0 path_bounding_rect=[0,20 74x20]
+FillPath@s1/e0 path_bounding_rect=[0,20 74x20]
+FillPath@s1/e0 path_bounding_rect=[82,20 170x20]
+FillPath@s1/e0 path_bounding_rect=[82,20 170x20]
diff --git a/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt b/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt
index 2cffbc4a079..305717f31b0 100644
--- a/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt
+++ b/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt
@@ -3,10 +3,10 @@ AccumulatedVisualContext Tree:
[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)
[s1] scroll (Viewport<#document>)
clips:
- [c0 in s1] clip=[1,181 168x18] (TextInputBox<INPUT>)
+ [c0 in s1] clip=[2,182 166x16] (TextInputBox<INPUT>)
[c1 in s1] clip=[5,183 160x14] (BlockContainer<DIV>)
- [c2 in s1] clip=[3,213 168x18] (TextInputBox<INPUT>)
- [c3 in s1] clip=[7,215 160x14] (BlockContainer<DIV>)
+ [c2 in s1] clip=[3,213 166x16] (TextInputBox<INPUT>)
+ [c3 in s1] clip=[6,214 160x14] (BlockContainer<DIV>)
effects:
[e0 in s0] effects=[]
@@ -14,25 +14,29 @@ DisplayList:
FillRectWithRoundedCorners@s1/e0 rect=[0,0 58x20] color=rgb(239, 239, 239)
FillRoundedRectRing@s1/e0 rect=[0,0 58x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/e0 rect=[9,3 40x14] translation=[9,13.984375] color=rgb(0, 0, 0)
-FillRectWithRoundedCorners@s1/e0 rect=[0,30 128x22] color=rgb(239, 239, 239)
-FillRoundedRectRing@s1/e0 rect=[0,30 128x22] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)
-DrawGlyphRun@s1/e0 rect=[4,34 120x14] translation=[4,44.984375] color=rgb(0, 128, 0)
+FillRectWithRoundedCorners@s1/e0 rect=[0,30 130x24] color=rgb(239, 239, 239)
+FillRoundedRectRing@s1/e0 rect=[0,30 130x24] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)
+DrawGlyphRun@s1/e0 rect=[5,35 120x14] translation=[5,45.984375] color=rgb(0, 128, 0)
FillRectWithRoundedCorners@s1/e0 rect=[0,60 129x20] color=rgb(239, 239, 239)
FillRoundedRectRing@s1/e0 rect=[0,60 129x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/e0 rect=[9,63 112x14] translation=[9,73.984375] color=rgb(0, 0, 0)
FillRect@s1/e0 rect=[0,90 92x20] color=rgb(0, 255, 0)
-FillRoundedRectRing@s1/e0 rect=[0,90 92x20] widths=[1,1,1,1] color=rgb(118, 118, 118)
+FillPath@s1/e0 path_bounding_rect=[0,90 92x20]
+FillPath@s1/e0 path_bounding_rect=[0,90 92x20]
DrawGlyphRun@s1/e0 rect=[9,93 75x14] translation=[9,103.984375] color=rgb(0, 0, 0)
FillRect@s1/e0 rect=[0,120 63x20] color=rgb(239, 239, 239)
-FillRoundedRectRing@s1/e0 rect=[0,120 63x20] widths=[1,1,1,1] color=rgb(255, 0, 0)
+FillPath@s1/e0 path_bounding_rect=[0,120 63x20]
+FillPath@s1/e0 path_bounding_rect=[0,120 63x20]
DrawGlyphRun@s1/e0 rect=[9,123 45x14] translation=[9,133.98438] color=rgb(0, 0, 0)
FillRect@s1/e0 rect=[0,150 137x20] color=rgb(239, 239, 239)
-FillRoundedRectRing@s1/e0 rect=[0,150 137x20] widths=[1,1,1,1] color=rgb(118, 118, 118)
+FillPath@s1/e0 path_bounding_rect=[0,150 137x20]
+FillPath@s1/e0 path_bounding_rect=[0,150 137x20]
DrawGlyphRun@s1/e0 rect=[9,153 119x14] translation=[9,163.98438] color=rgb(0, 0, 0)
FillRectWithRoundedCorners@s1/e0 rect=[0,180 170x20] color=rgb(255, 255, 255)
FillRoundedRectRing@s1/e0 rect=[0,180 170x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c1/e0 rect=[5,183 32x14] translation=[5,193.98438] color=rgb(0, 0, 0)
-FillRect@s1/e0 rect=[0,210 174x24] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[0,210 174x24] widths=[3,3,3,3] color=rgb(118, 118, 118)
-DrawGlyphRun@s1/c3/e0 rect=[7,215 59x14] translation=[7,225.98438] color=rgb(0, 0, 0)
+FillRect@s1/e0 rect=[0,210 172x22] color=rgb(255, 255, 255)
+FillPath@s1/e0 path_bounding_rect=[0,210 172x22]
+FillPath@s1/e0 path_bounding_rect=[0,210 172x22]
+DrawGlyphRun@s1/c3/e0 rect=[6,214 59x14] translation=[6,224.98438] color=rgb(0, 0, 0)
diff --git a/Tests/LibWeb/Text/expected/display_list/input-caret.txt b/Tests/LibWeb/Text/expected/display_list/input-caret.txt
index a08218b5cd9..535964e0f05 100644
--- a/Tests/LibWeb/Text/expected/display_list/input-caret.txt
+++ b/Tests/LibWeb/Text/expected/display_list/input-caret.txt
@@ -3,7 +3,7 @@ AccumulatedVisualContext Tree:
[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)
[s1] scroll (Viewport<#document>)
clips:
- [c0 in s1] clip=[9,9 108x18] (TextInputBox<INPUT>)
+ [c0 in s1] clip=[10,10 106x16] (TextInputBox<INPUT>)
[c1 in s1] clip=[13,11 100x14] (BlockContainer<DIV>)
effects:
[e0 in s0] effects=[]
diff --git a/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt b/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt
index 304433f57ee..de959a7229b 100644
--- a/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt
+++ b/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt
@@ -3,9 +3,9 @@ AccumulatedVisualContext Tree:
[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)
[s1] scroll (Viewport<#document>)
clips:
- [c0 in s1] clip=[9,9 168x18] (TextInputBox<INPUT>#foo)
+ [c0 in s1] clip=[10,10 166x16] (TextInputBox<INPUT>#foo)
[c1 in s1] clip=[13,11 160x14] (BlockContainer<DIV>)
- [c2 in s1] clip=[187,9 167x18] (TextInputBox<INPUT>#bar)
+ [c2 in s1] clip=[188,10 165x16] (TextInputBox<INPUT>#bar)
[c3 in s1] clip=[191,11 159x14] (BlockContainer<DIV>)
effects:
[e0 in s0] effects=[]
diff --git a/Tests/LibWeb/Text/expected/ruby-display-boxes-lay-out-like-flow-boxes.txt b/Tests/LibWeb/Text/expected/ruby-display-boxes-lay-out-like-flow-boxes.txt
index 60c82689ce0..2394b2e65b7 100644
--- a/Tests/LibWeb/Text/expected/ruby-display-boxes-lay-out-like-flow-boxes.txt
+++ b/Tests/LibWeb/Text/expected/ruby-display-boxes-lay-out-like-flow-boxes.txt
@@ -3,4 +3,4 @@ vertical-block-ruby: 70x100 at 0,0, child 50x20 at 20,0, same as its flow twin
inline-ruby-legend-with-block-child: 50x20 at 0,0, child 50x20 at 0,0, same as its flow twin
inline-ruby-legend-with-text: 40.1875x20 at 0,0, same as its flow twin
ruby-text-legend: 300x40 at 0,0, child 50x20 at 0,0, same as its flow twin
-inline-ruby-input: 161.6875x16 at 0,4, same as its flow twin
+inline-ruby-input: 163.6875x18 at 0,3, same as its flow twin
diff --git a/Tests/LibWeb/Text/input/display_list/form-control-devolved-borders.html b/Tests/LibWeb/Text/input/display_list/form-control-devolved-borders.html
new file mode 100644
index 00000000000..3842f0acdf5
--- /dev/null
+++ b/Tests/LibWeb/Text/input/display_list/form-control-devolved-borders.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src="../include.js"></script>
+<style>
+ body {
+ margin: 0;
+ }
+ .none {
+ appearance: none;
+ }
+</style>
+<button>Native</button>
+<input value="Native">
+<br>
+<button class="none">Devolved</button>
+<input class="none" value="Devolved">
+<script>
+ test(() => {
+ println(internals.dumpDisplayList().split("\n").filter(line => /Border|RoundedRectRing|StrokePath|FillPath/.test(line)).join("\n"));
+ });
+</script>