Truly independent web browser
LibGfx+LibWeb: Size text inputs using their font's advances
Timothy Flynne08807c81593
diff --git a/Libraries/LibGfx/Font/Font.cpp b/Libraries/LibGfx/Font/Font.cppindex cebe575c843..1c12ba7e8df 100644--- a/Libraries/LibGfx/Font/Font.cpp+++ b/Libraries/LibGfx/Font/Font.cpp@@ -21,6 +21,7 @@extern "C" {void ladybird_gfx_font_snapshot(void const*, Gfx::FFI::FfiFontSnapshot*);+void ladybird_gfx_font_character_advances(void const*, float* average, float* maximum);u32 ladybird_gfx_font_glyph_id(void const*, u32);bool ladybird_gfx_font_contains_glyph(void const*, u32);bool ladybird_gfx_font_is_emoji_font(void const*);@@ -285,6 +286,22 @@ extern "C" void ladybird_gfx_font_snapshot(void const* font, Gfx::FFI::FfiFontSn};}+extern "C" void ladybird_gfx_font_character_advances(void const* font, float* average, float* maximum)+{+ auto const& typed_font = *static_cast<Gfx::Font const*>(font);+ auto const& typeface = typed_font.typeface();+ auto* face = typeface.harfbuzz_typeface();+ auto design_units_to_pixels = typed_font.pixel_size() / typeface.units_per_em();++ // https://learn.microsoft.com/en-us/typography/opentype/spec/os2#xavgcharwidth+ Gfx::FontTable os2 { face, Gfx::FourCC { "OS/2" } };+ *average = os2.contains(2, 2) ? max<i16>(0, os2.i16_at(2)) * design_units_to_pixels : 0;++ // https://learn.microsoft.com/en-us/typography/opentype/spec/hhea+ Gfx::FontTable hhea { face, Gfx::FourCC { "hhea" } };+ *maximum = hhea.contains(10, 2) ? hhea.u16_at(10) * design_units_to_pixels : 0;+}+extern "C" u32 ladybird_gfx_font_glyph_id(void const* font, u32 code_point){VERIFY(font);diff --git a/Libraries/LibGfx/Rust/src/font.rs b/Libraries/LibGfx/Rust/src/font.rsindex b163dd114fb..cc59f608e89 100644--- a/Libraries/LibGfx/Rust/src/font.rs+++ b/Libraries/LibGfx/Rust/src/font.rs@@ -73,6 +73,7 @@ struct FontEntry {id: FontId,raw: NonNull<c_void>,facts: FontFacts,+ character_advances: std::sync::OnceLock<(f32, f32)>,// What the font answers about itself that text chunking asks for every character: whether it is an emoji font,// and whether it has a glyph for U+0020 SPACE. Each is unknown until first asked.is_emoji_font: LazyVerdict,@@ -148,6 +149,7 @@ impl FontHandle {pixel_size: snapshot.pixel_size,point_size: snapshot.point_size,},+ character_advances: std::sync::OnceLock::new(),is_emoji_font: LazyVerdict::default(),contains_space_glyph: LazyVerdict::default(),}))@@ -175,6 +177,20 @@ impl FontHandle {&self.0.facts}+ /// The average and maximum horizontal advances in pixels. A missing metric is zero.+ pub fn character_advances(&self) -> (f32, f32) {+ unsafe extern "C" {+ fn ladybird_gfx_font_character_advances(font: *const c_void, average: *mut f32, maximum: *mut f32);+ }+ *self.0.character_advances.get_or_init(|| {+ let mut average = 0.0;+ let mut maximum = 0.0;+ // SAFETY: The entry owns a reference to the font, and both out-pointers address local variables.+ unsafe { ladybird_gfx_font_character_advances(self.as_raw(), &raw mut average, &raw mut maximum) };+ (average, maximum)+ })+ }+#[inline]pub fn as_raw(&self) -> *const c_void {self.0.raw.as_ptr()diff --git a/Libraries/LibWeb/Rust/src/css/style_compute/ffi_test_stubs.rs b/Libraries/LibWeb/Rust/src/css/style_compute/ffi_test_stubs.rsindex 14e12b38d63..98e52bd4b36 100644--- a/Libraries/LibWeb/Rust/src/css/style_compute/ffi_test_stubs.rs+++ b/Libraries/LibWeb/Rust/src/css/style_compute/ffi_test_stubs.rs@@ -210,6 +210,19 @@ unsafe extern "C" fn ladybird_gfx_font_snapshot(}};}+#[unsafe(no_mangle)]+unsafe extern "C" fn ladybird_gfx_font_character_advances(+ _font: *const std::ffi::c_void,+ average: *mut f32,+ maximum: *mut f32,+) {+ // SAFETY: The caller provides valid out-pointers. Test fonts have no font tables.+ unsafe {+ *average = 0.0;+ *maximum = 0.0;+ }+}+#[unsafe(no_mangle)]unsafe extern "C" fn unicode_rust_idna_to_ascii(domain: *const u8,diff --git a/Libraries/LibWeb/Rust/src/layout/node_facts.rs b/Libraries/LibWeb/Rust/src/layout/node_facts.rsindex 8e1296be59b..c2aaaabf74b 100644--- a/Libraries/LibWeb/Rust/src/layout/node_facts.rs+++ b/Libraries/LibWeb/Rust/src/layout/node_facts.rs@@ -91,7 +91,7 @@ pub(crate) fn derived_replaced_content_facts(data: &NodeData, input: ReplacedConreturn svg_image_facts(input);}node_style_view(data).map_or_else(Default::default, |style| {- replaced_content_facts(data.kind.get(), ReplacedContentStyle::of(style), input)+ replaced_content_facts(data.kind.get(), ReplacedContentStyle::of(style, input), input)})}@@ -103,6 +103,8 @@ struct ReplacedContentStyle {size_contained: Option<(CssPixels, CssPixels)>,/// The `ch` unit.zero_advance: CssPixels,+ average_advance: CssPixels,+ maximum_advance: CssPixels,line_height: CssPixels,is_horizontal: bool,appearance_is_none: bool,@@ -110,7 +112,7 @@ struct ReplacedContentStyle {}impl ReplacedContentStyle {- fn of(style: ComputedValuesView<'_>) -> Self {+ fn of(style: ComputedValuesView<'_>, input: ReplacedContentInput) -> Self {// https://drafts.csswg.org/css-contain-2/#containment-size// Replaced elements must be treated as having a natural width and height of 0 and no natural aspect ratio.// https://drafts.csswg.org/css-sizing-4/#intrinsic-size-override@@ -123,6 +125,15 @@ impl ReplacedContentStyle {CssPixels::default()}};+ let (average_advance, maximum_advance) = match input {+ ReplacedContentInput::Input {+ is_text_entry: true, ..+ } => style+ .font()+ .first_available_font()+ .map_or((0.0, 0.0), |font| font.character_advances()),+ _ => (0.0, 0.0),+ };Self {size_contained: style_has_size_containment(style).then(|| {(@@ -137,6 +148,8 @@ impl ReplacedContentStyle {)}),zero_advance: CssPixels::nearest_value_for_f32(style.font_zero_advance()),+ average_advance: CssPixels::nearest_value_for_f32(average_advance),+ maximum_advance: CssPixels::nearest_value_for_f32(maximum_advance),line_height: style.line_height(),is_horizontal: style.writing_mode() == crate::css::css_enums::writing_mode::HORIZONTAL_TB,appearance_is_none: style.appearance() == crate::css::css_enums::appearance::NONE,@@ -160,15 +173,25 @@ impl ReplacedContentStyle {// https://html.spec.whatwg.org/multipage/rendering.html#the-input-element-as-a-text-entry-widgetfn text_control_default_preferred_size(self, size: u32) -> (CssPixels, CssPixels) {- // [...] If the element has a size attribute, and parsing that attribute's value using the rules for parsing- // non-negative integers doesn't generate an error, return the value obtained from applying the converting a- // character width to pixels algorithm to the value of the attribute. Otherwise, return the value obtained from- // applying the converting a character width to pixels algorithm to the number 20.- // FIXME: Implement the specified "converting a character width to pixels" algorithm.+ // INTEROP: Match Firefox's allowance for wide glyphs. Cap it so an unusually wide glyph+ // (for example, a ligature) cannot make a proportional-font input excessively wide.+ let average = self+ .average_advance+ .round()+ .min(self.maximum_advance)+ .max(self.zero_advance);+ let allowance = if self.maximum_advance - average > CssPixels::from_integer(1) {+ (self.maximum_advance.min(average * 2) - CssPixels::from_integer(4))+ .max(CssPixels::default())+ .round()+ } else {+ CssPixels::default()+ };+ let inline_size = CssPixels::nearest_value_for(f64::from(size) * average.to_double() + allowance.to_double());// FIXME: HTML does not yet detail the primitive appearance of text inputs. Use one line for the default// preferred block size, matching the native appearance described by HTML and the behavior of other// engines.- self.in_writing_mode(self.characters(size), self.line_height)+ self.in_writing_mode(inline_size, self.line_height)}}@@ -1630,6 +1653,8 @@ mod node_facts_tests {super::ReplacedContentStyle {size_contained: None,zero_advance: CssPixels::from_integer(8),+ average_advance: CssPixels::from_integer(8),+ maximum_advance: CssPixels::from_integer(8),line_height: CssPixels::from_integer(16),is_horizontal: true,appearance_is_none: false,@@ -1684,6 +1709,27 @@ mod node_facts_tests {assert!(checkbox.default_preferred_width.is_none());}+ #[test]+ fn a_text_entry_input_caps_the_allowance_for_wide_glyphs() {+ let input = ReplacedContentInput::Input {+ size: 2,+ is_text_entry: true,+ include_number_stepper: false,+ };+ for (maximum_advance, expected_width) in [(11, 20), (12, 28), (100, 36)] {+ let style = super::ReplacedContentStyle {+ average_advance: CssPixels::from_integer(10),+ maximum_advance: CssPixels::from_integer(maximum_advance),+ ..horizontal_style()+ };+ let facts = super::replaced_content_facts(NodeKind::TextInputBox, style, input);+ assert_eq!(+ facts.auto_content_size.width,+ Some(CssPixels::from_integer(expected_width))+ );+ }+ }+#[test]fn an_empty_canvas_has_no_aspect_ratio() {let empty = super::replaced_content_facts(diff --git a/Tests/LibWeb/Accessibility/input/form-controls.html b/Tests/LibWeb/Accessibility/input/form-controls.htmlindex 83c0a1e9c0f..e86c77aeb0f 100644--- a/Tests/LibWeb/Accessibility/input/form-controls.html+++ b/Tests/LibWeb/Accessibility/input/form-controls.html@@ -1,5 +1,10 @@<!DOCTYPE html><html>+<head>+ <style>+ input[type="text"], input[type="email"] { width: 20ch; }+ </style>+</head><body><form aria-label="Registration"><label for="name">Name</label>diff --git a/Tests/LibWeb/Layout/expected/css-line-height-zero.txt b/Tests/LibWeb/Layout/expected/css-line-height-zero.txtindex 316c7f878dd..1f450fc7a4d 100644--- a/Tests/LibWeb/Layout/expected/css-line-height-zero.txt+++ b/Tests/LibWeb/Layout/expected/css-line-height-zero.txt@@ -1,21 +1,21 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 68 0+0+0] [BFC] children: not-inlineBlockContainer <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+2+3 159.6875 3+2+614.3125] [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+ TextInputBox <input#a> at [13,11] [0+2+3 167.6875 3+2+606.3125] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [13,11] flex-container(row) [0+0+0 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [13,11 76.609375x14] baseline: 11"Hello World"TextNode <#text> (not painted)- TextInputBox <input#b> at [13,31] [0+2+3 159.6875 3+2+614.3125] [0+2+1 0 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 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+ TextInputBox <input#b> at [13,31] [0+2+3 167.6875 3+2+606.3125] [0+2+1 0 1+2+0] [BFC] children: not-inline+ Box <div> at [13,31] flex-container(row) [0+0+0 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [13,24 76.609375x14] baseline: 11"Hello World"TextNode <#text> (not painted)- TextInputBox <input#c> at [13,37] [0+2+3 159.6875 3+2+614.3125] [0+2+1 20 1+2+0] [BFC] 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+ TextInputBox <input#c> at [13,37] [0+2+3 167.6875 3+2+606.3125] [0+2+1 20 1+2+0] [BFC] children: not-inline+ Box <div> at [13,37] flex-container(row) [0+0+0 167.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 167.6875 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [13,40 76.609375x14] baseline: 11"Hello World"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt b/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txtindex 85e8e188eac..2d1a9c0f543 100644--- a/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt+++ b/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt@@ -3,46 +3,46 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 56 0+0+8] children: not-inlineBlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: not-inlineBlockContainer <(anonymous)> at [8,24] [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: [13,47 159.6875x14] baseline: 14- frag 1 from TextNode start: 0, length: 1, rect: [177.6875,45 8x16] baseline: 13+ frag 0 from TextInputBox start: 0, length: 0, rect: [13,47 167.6875x14] baseline: 14+ frag 1 from TextNode start: 0, length: 1, rect: [185.6875,45 8x16] baseline: 13" "- frag 2 from TextAreaBox start: 0, length: 0, rect: [188.6875,27 159.6875x28] baseline: 34- frag 3 from TextNode start: 0, length: 1, rect: [351.375,45 8x16] baseline: 13+ frag 2 from TextAreaBox start: 0, length: 0, rect: [196.6875,27 159.6875x28] baseline: 34+ frag 3 from TextNode start: 0, length: 1, rect: [359.375,45 8x16] baseline: 13" "- frag 4 from TextInputBox start: 0, length: 0, rect: [364.375,47 159.6875x14] baseline: 14- frag 5 from TextNode start: 0, length: 1, rect: [529.0625,45 8x16] baseline: 13+ frag 4 from TextInputBox start: 0, length: 0, rect: [372.375,47 167.6875x14] baseline: 14+ frag 5 from TextNode start: 0, length: 1, rect: [545.0625,45 8x16] baseline: 13" "- frag 6 from TextAreaBox start: 0, length: 0, rect: [540.0625,27 159.6875x28] baseline: 34- 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 6 from TextAreaBox start: 0, length: 0, rect: [556.0625,27 159.6875x28] baseline: 34+ TextInputBox <input> at [13,47] inline-block [0+2+3 167.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 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [13,47 0x14] baseline: 11TextNode <#text> (not painted)- BlockContainer <div> at [13,47] flex-item [-159.6875+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ BlockContainer <div> at [13,47] flex-item [-167.6875+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 5, rect: [13,47 30.703125x14] baseline: 11"hello"TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea> at [188.6875,27] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline- Box <div> at [188.6875,27] 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 [188.6875,27] 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: [188.6875,27 0x14] baseline: 11+ TextAreaBox <textarea> at [196.6875,27] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline+ Box <div> at [196.6875,27] 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 [196.6875,27] 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: [196.6875,27 0x14] baseline: 11TextNode <#text> (not painted)- BlockContainer <div> at [188.6875,27] flex-item [-159.6875+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 5, rect: [188.6875,27 30.703125x14] baseline: 11+ BlockContainer <div> at [196.6875,27] flex-item [-159.6875+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 5, rect: [196.6875,27 30.703125x14] baseline: 11"hello"TextNode <#text> (not painted)TextNode <#text> (not painted)- 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: 11+ TextInputBox <input> at [372.375,47] inline-block [0+2+3 167.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [372.375,47] flex-container(row) [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [372.375,47] flex-item [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [372.375,47 0x14] baseline: 11TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea> at [540.0625,27] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline- Box <div> at [540.0625,27] 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 [540.0625,27] 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: [540.0625,27 0x14] baseline: 11+ TextAreaBox <textarea> at [556.0625,27] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline+ Box <div> at [556.0625,27] 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 [556.0625,27] 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: [556.0625,27 0x14] baseline: 11TextNode <#text> (not painted)TextNode <#text> (not painted)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.txtindex fe3acfa7d11..c49fcbec2e2 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@@ -4,37 +4,37 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenfrag 0 from TextAreaBox start: 0, length: 0, rect: [11,34 239.53125x56] baseline: 62frag 1 from TextNode start: 0, length: 1, rect: [253.53125,80 8x16] baseline: 13" "- frag 2 from TextInputBox start: 0, length: 0, rect: [266.53125,82 199.609375x14] baseline: 14- frag 3 from TextNode start: 0, length: 1, rect: [471.140625,80 8x16] baseline: 13+ frag 2 from TextInputBox start: 0, length: 0, rect: [266.53125,82 207.609375x14] baseline: 14+ frag 3 from TextNode start: 0, length: 1, rect: [479.140625,80 8x16] baseline: 13" "- frag 4 from TextAreaBox start: 0, length: 0, rect: [482.140625,11 70x79.84375] baseline: 85.84375- frag 5 from TextNode start: 0, length: 1, rect: [555.140625,80 8x16] baseline: 13+ frag 4 from TextAreaBox start: 0, length: 0, rect: [490.140625,11 70x79.84375] baseline: 85.84375+ frag 5 from TextNode start: 0, length: 1, rect: [563.140625,80 8x16] baseline: 13" "- frag 6 from CanvasBox start: 0, length: 0, rect: [563.140625,73 120x20] baseline: 20- frag 7 from BlockContainer start: 0, length: 0, rect: [13,102 119.765625x14] baseline: 14+ frag 6 from CanvasBox start: 0, length: 0, rect: [571.140625,73 120x20] baseline: 20+ frag 7 from BlockContainer start: 0, length: 0, rect: [13,102 127.765625x14] baseline: 14TextAreaBox <textarea#textarea> at [11,34] inline-block [0+1+2 239.53125 2+1+0] [0+1+2 56 2+1+0] [BFC] children: not-inlineBox <div> at [11,34] flex-container(row) [0+0+0 239.53125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inlineBlockContainer <div> at [11,34] flex-item [0+0+0 239.53125 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,34 0x14] baseline: 11TextNode <#text> (not painted)TextNode <#text> (not painted)- 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+ TextInputBox <input#input> at [266.53125,82] inline-block [0+2+3 207.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 207.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 207.609375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [266.53125,82 0x14] baseline: 11TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea#vertical-textarea> at [482.140625,11] inline-block [0+1+2 70 2+1+0] [0+1+2 79.84375 2+1+0] [BFC] children: not-inline- Box <div> at [538.140625,11] flex-container(row) [0+0+0 14 0+0+0] [0+0+0 79.84375 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [538.140625,11] flex-item [0+0+0 14 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [538.140625,11 14x0] baseline: 11+ TextAreaBox <textarea#vertical-textarea> at [490.140625,11] inline-block [0+1+2 70 2+1+0] [0+1+2 79.84375 2+1+0] [BFC] children: not-inline+ Box <div> at [546.140625,11] flex-container(row) [0+0+0 14 0+0+0] [0+0+0 79.84375 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [546.140625,11] flex-item [0+0+0 14 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [546.140625,11 14x0] baseline: 11TextNode <#text> (not painted)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+ CanvasBox <canvas#canvas> at [571.140625,73] [0+0+0 120 0+0+0] [0+0+0 20 0+0+0] children: not-inlineTextNode <#text> (not painted)- 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+ BlockContainer <input#becomes-text> at [13,102] inline-block [0+2+3 127.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 127.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 127.765625 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [13,102 0x14] baseline: 11TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/form-controls-generate-no-before-and-after.txt b/Tests/LibWeb/Layout/expected/form-controls-generate-no-before-and-after.txtindex cbadd476f1b..f3fbe05efcd 100644--- a/Tests/LibWeb/Layout/expected/form-controls-generate-no-before-and-after.txt+++ b/Tests/LibWeb/Layout/expected/form-controls-generate-no-before-and-after.txt@@ -1,76 +1,76 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 92 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 76 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [13,31 159.6875x14] baseline: 14- frag 1 from TextNode start: 0, length: 1, rect: [177.6875,29 8x16] baseline: 13+ frag 0 from TextInputBox start: 0, length: 0, rect: [13,31 167.6875x14] baseline: 14+ frag 1 from TextNode start: 0, length: 1, rect: [185.6875,29 8x16] baseline: 13" "- frag 2 from TextAreaBox start: 0, length: 0, rect: [188.6875,11 159.6875x28] baseline: 34- frag 3 from TextNode start: 0, length: 1, rect: [351.375,29 8x16] baseline: 13+ frag 2 from TextAreaBox start: 0, length: 0, rect: [196.6875,11 159.6875x28] baseline: 34+ frag 3 from TextNode start: 0, length: 1, rect: [359.375,29 8x16] baseline: 13" "- frag 4 from BlockContainer start: 0, length: 0, rect: [368.375,31 43.5x14] baseline: 14- frag 5 from TextNode start: 0, length: 1, rect: [420.875,29 8x16] baseline: 13+ frag 4 from BlockContainer start: 0, length: 0, rect: [376.375,31 43.5x14] baseline: 14+ frag 5 from TextNode start: 0, length: 1, rect: [428.875,29 8x16] baseline: 13" "- frag 6 from BlockContainer start: 0, length: 0, rect: [437.875,31 44.09375x14] baseline: 14- frag 7 from TextNode start: 0, length: 1, rect: [490.96875,29 8x16] baseline: 13+ frag 6 from BlockContainer start: 0, length: 0, rect: [445.875,31 44.09375x14] baseline: 14+ frag 7 from TextNode start: 0, length: 1, rect: [498.96875,29 8x16] baseline: 13" "- frag 8 from RangeInputBox start: 0, length: 0, rect: [500.96875,26 129x16] baseline: 18- frag 9 from TextNode start: 0, length: 1, rect: [631.96875,29 8x16] baseline: 13+ frag 8 from RangeInputBox start: 0, length: 0, rect: [508.96875,26 129x16] baseline: 18+ frag 9 from TextNode start: 0, length: 1, rect: [639.96875,29 8x16] baseline: 13" "- frag 10 from BlockContainer start: 0, length: 0, rect: [648.96875,31 62.609375x14] baseline: 14+ frag 10 from BlockContainer start: 0, length: 0, rect: [656.96875,31 62.609375x14] baseline: 14frag 11 from BlockContainer start: 0, length: 0, rect: [17,51 135.65625x30] baseline: 22- TextInputBox <input.g> 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+ TextInputBox <input.g> at [13,31] inline-block [0+2+3 167.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 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 4, rect: [13,31 26.78125x14] baseline: 11"text"TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea.g> at [188.6875,11] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline- Box <div> at [188.6875,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 [188.6875,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: 4, rect: [188.6875,11 30.1875x14] baseline: 11+ TextAreaBox <textarea.g> at [196.6875,11] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline+ Box <div> at [196.6875,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 [196.6875,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: 4, rect: [196.6875,11 30.1875x14] baseline: 11"area"TextNode <#text> (not painted)TextNode <#text> (not painted)- BlockContainer <input.g> at [368.375,31] inline-block [0+2+7 43.5 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [368.375,31] flex-container(column) [0+0+0 43.5 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline- BlockContainer <(anonymous)> at [368.375,31] flex-item [0+0+0 43.5 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline- frag 0 from BlockContainer start: 0, length: 0, rect: [368.375,31 43.5x14] baseline: 11- BlockContainer <span> at [368.375,31] inline-block [0+0+0 43.5 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 6, rect: [368.375,31 43.5x14] baseline: 11+ BlockContainer <input.g> at [376.375,31] inline-block [0+2+7 43.5 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [376.375,31] flex-container(column) [0+0+0 43.5 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <(anonymous)> at [376.375,31] flex-item [0+0+0 43.5 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from BlockContainer start: 0, length: 0, rect: [376.375,31 43.5x14] baseline: 11+ BlockContainer <span> at [376.375,31] inline-block [0+0+0 43.5 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 6, rect: [376.375,31 43.5x14] baseline: 11"submit"TextNode <#text> (not painted)TextNode <#text> (not painted)- BlockContainer <input.g> at [437.875,31] inline-block [0+2+7 44.09375 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [437.875,31] flex-container(column) [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline- BlockContainer <(anonymous)> at [437.875,31] flex-item [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline- frag 0 from BlockContainer start: 0, length: 0, rect: [437.875,31 44.09375x14] baseline: 11- BlockContainer <span> at [437.875,31] inline-block [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 6, rect: [437.875,31 44.09375x14] baseline: 11+ BlockContainer <input.g> at [445.875,31] inline-block [0+2+7 44.09375 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [445.875,31] flex-container(column) [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <(anonymous)> at [445.875,31] flex-item [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from BlockContainer start: 0, length: 0, rect: [445.875,31 44.09375x14] baseline: 11+ BlockContainer <span> at [445.875,31] inline-block [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 6, rect: [445.875,31 44.09375x14] baseline: 11"button"TextNode <#text> (not painted)TextNode <#text> (not painted)- RangeInputBox <input.g> at [500.96875,26] inline-block [2+0+0 129 0+0+2] [2+0+0 16 0+0+2] [BFC] children: not-inline- Box <div> at [500.96875,26] flex-container(row) [0+0+0 129 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [500.96875,32] positioned flex-item [0+0+0 129 0+0+0] [0+0+0 4 0+0+0] [BFC] children: not-inline- BlockContainer <div> at [500.96875,32] positioned [0+0+0 64.5 0+0+0] [0+0+0 4 0+0+0] [BFC] children: not-inline- BlockContainer <div> at [565.46875,34] positioned [64.5+0+0 16 0+0+48.5] [0+0+0 16 0+0+0] children: not-inline+ RangeInputBox <input.g> at [508.96875,26] inline-block [2+0+0 129 0+0+2] [2+0+0 16 0+0+2] [BFC] children: not-inline+ Box <div> at [508.96875,26] flex-container(row) [0+0+0 129 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [508.96875,32] positioned flex-item [0+0+0 129 0+0+0] [0+0+0 4 0+0+0] [BFC] children: not-inline+ BlockContainer <div> at [508.96875,32] positioned [0+0+0 64.5 0+0+0] [0+0+0 4 0+0+0] [BFC] children: not-inline+ BlockContainer <div> at [573.46875,34] positioned [64.5+0+0 16 0+0+48.5] [0+0+0 16 0+0+0] children: not-inlineTextNode <#text> (not painted)- BlockContainer <select.g> at [648.96875,31] inline-block [0+1+8 62.609375 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline- Box <div> at [648.96875,31] positioned flex-container(row) [0+0+0 62.609375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [648.96875,31] flex-item [0+0+0 42.609375 0+0+20] [0+0+0 14 0+0+0] [BFC] children: not-inline- BlockContainer <div> at [648.96875,31] [0+0+0 42.609375 0+0+0] [0+0+0 14 0+0+0] children: inline- frag 0 from TextNode start: 0, length: 6, rect: [648.96875,31 42.609375x14] baseline: 11+ BlockContainer <select.g> at [656.96875,31] inline-block [0+1+8 62.609375 8+1+0] [0+1+2 14 2+1+0] [BFC] children: not-inline+ Box <div> at [656.96875,31] positioned flex-container(row) [0+0+0 62.609375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [656.96875,31] flex-item [0+0+0 42.609375 0+0+20] [0+0+0 14 0+0+0] [BFC] children: not-inline+ BlockContainer <div> at [656.96875,31] [0+0+0 42.609375 0+0+0] [0+0+0 14 0+0+0] children: inline+ frag 0 from TextNode start: 0, length: 6, rect: [656.96875,31 42.609375x14] baseline: 11"option"TextNode <#text> (not painted)- BlockContainer <div> at [648.96875,45] floating [0+0+0 42.609375 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline- BlockContainer <div> at [648.96875,45] [0+0+0 42.609375 0+0+0] [0+0+0 14 0+0+0] children: inline- frag 0 from TextNode start: 0, length: 6, rect: [648.96875,45 42.609375x14] baseline: 11+ BlockContainer <div> at [656.96875,45] floating [0+0+0 42.609375 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline+ BlockContainer <div> at [656.96875,45] [0+0+0 42.609375 0+0+0] [0+0+0 14 0+0+0] children: inline+ frag 0 from TextNode start: 0, length: 6, rect: [656.96875,45 42.609375x14] baseline: 11"option"TextNode <#text> (not painted)- BlockContainer <div> at [695.578125,30] positioned [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from SVGSVGBox start: 0, length: 0, rect: [695.578125,30 16x16] baseline: 16- SVGSVGBox <svg> at [695.578125,30] [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] viewport-transform=[0.6666667 0 0 0.6666667 0 0] [SVG] children: not-inline+ BlockContainer <div> at [703.578125,30] positioned [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from SVGSVGBox start: 0, length: 0, rect: [703.578125,30 16x16] baseline: 16+ SVGSVGBox <svg> at [703.578125,30] [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-inlineSVGGeometryBox <path> at [6,8.578125] [0+0+0 12 0+0+0] [0+0+0 7.421875 0+0+0] children: not-inlineTextNode <#text> (not painted)BlockContainer <button.g> at [17,51] inline-block [0+2+7 135.65625 7+2+0] [0+2+1 30 1+2+0] [BFC] children: not-inline@@ -92,4 +92,4 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenSC for Viewport<#document> [0,0 800x600] (z-index: auto)SC for BlockContainer<HTML> [0,0 800x92] (z-index: auto)- SC for BlockContainer<DIV> [565.46875,34 16x16] (z-index: auto), has_transform+ SC for BlockContainer<DIV> [573.46875,34 16x16] (z-index: auto), has_transformdiff --git a/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt b/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txtindex bd59ba80f44..98ef7f6dda7 100644--- a/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt+++ b/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt@@ -6,37 +6,37 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children"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 40 0+0+0] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [20,86.875 191.875x16] baseline: 25- frag 1 from TextNode start: 0, length: 1, rect: [223.875,86.875 8x16] baseline: 13+ frag 0 from TextInputBox start: 0, length: 0, rect: [20,86.875 201.875x16] baseline: 25+ frag 1 from TextNode start: 0, length: 1, rect: [233.875,86.875 8x16] baseline: 13" "- frag 2 from TextInputBox start: 0, length: 0, rect: [243.875,86.875 191.875x16] baseline: 25- frag 3 from TextNode start: 0, length: 1, rect: [447.75,86.875 8x16] baseline: 13+ frag 2 from TextInputBox start: 0, length: 0, rect: [253.875,86.875 201.875x16] baseline: 25+ frag 3 from TextNode start: 0, length: 1, rect: [467.75,86.875 8x16] baseline: 13" "- frag 4 from TextInputBox start: 0, length: 0, rect: [467.75,86.875 191.875x16] baseline: 25- 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 4 from TextInputBox start: 0, length: 0, rect: [487.75,86.875 201.875x16] baseline: 25+ TextInputBox <input> at [20,86.875] inline-block [0+2+10 201.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 201.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 201.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [20,86.875 0x16] baseline: 13TextNode <#text> (not painted)- 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+ BlockContainer <div> at [20,86.875] flex-item [-201.875+0+0 201.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [20,86.875 87.328125x16] baseline: 13"Empty field"TextNode <#text> (not painted)TextNode <#text> (not painted)- 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: 13+ TextInputBox <input> at [253.875,86.875] inline-block [0+2+10 201.875 10+2+0] [0+2+10 16 10+2+0] [BFC] children: not-inline+ Box <div> at [253.875,86.875] flex-container(row) [0+0+0 201.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [253.875,86.875] flex-item [0+0+0 201.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 12, rect: [253.875,86.875 81.96875x16] baseline: 13"Filled field"TextNode <#text> (not painted)TextNode <#text> (not painted)- 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: 13+ TextInputBox <input> at [487.75,86.875] inline-block [0+2+10 201.875 10+2+0] [0+2+10 16 10+2+0] [BFC] children: not-inline+ Box <div> at [487.75,86.875] flex-container(row) [0+0+0 201.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [487.75,86.875] flex-item [0+0+0 201.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [487.75,86.875 0x16] baseline: 13TextNode <#text> (not painted)- 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: 13+ BlockContainer <div> at [487.75,86.875] flex-item [-201.875+0+0 201.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 9, rect: [487.75,86.875 81.171875x16] baseline: 13"Type here"TextNode <#text> (not painted)TextNode <#text> (not painted)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.txtindex 7151d7f2145..55cfe1df99a 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@@ -1,10 +1,10 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inlineBlockContainer <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: 14- 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 TextInputBox start: 0, length: 0, rect: [13,11 167.6875x14] baseline: 14+ TextInputBox <input> at [13,11] inline-block [0+2+3 167.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 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 7, rect: [13,11 46.375x14] baseline: 11"120.png"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/input-image-to-text.txt b/Tests/LibWeb/Layout/expected/input-image-to-text.txtindex 7151d7f2145..55cfe1df99a 100644--- a/Tests/LibWeb/Layout/expected/input-image-to-text.txt+++ b/Tests/LibWeb/Layout/expected/input-image-to-text.txt@@ -1,10 +1,10 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inlineBlockContainer <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: 14- 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 TextInputBox start: 0, length: 0, rect: [13,11 167.6875x14] baseline: 14+ TextInputBox <input> at [13,11] inline-block [0+2+3 167.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 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 7, rect: [13,11 46.375x14] baseline: 11"120.png"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/input-number-placeholder.txt b/Tests/LibWeb/Layout/expected/input-number-placeholder.txtindex d9daac3987e..2998be8f582 100644--- a/Tests/LibWeb/Layout/expected/input-number-placeholder.txt+++ b/Tests/LibWeb/Layout/expected/input-number-placeholder.txt@@ -1,23 +1,23 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inlineBlockContainer <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: 14- 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+ frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 167.6875x14] baseline: 14+ TextInputBox <input> at [13,11] inline-block [0+2+3 167.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 167.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 154.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 154.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [13,11 0x14] baseline: 11TextNode <#text> (not painted)- BlockContainer <div> at [13,11] flex-item [-146.359375+0+0 146.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ BlockContainer <div> at [13,11] flex-item [-154.359375+0+0 154.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 6, rect: [13,11 52.546875x14] baseline: 11"Amount"TextNode <#text> (not painted)- Box <div> at [159.359375,11] flex-container(column) flex-item [0+0+0 13.328125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline- Box <button> at [161.359375,11] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline- SVGSVGBox <svg> at [161.359375,11.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+ Box <div> at [167.359375,11] flex-container(column) flex-item [0+0+0 13.328125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ Box <button> at [169.359375,11] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline+ SVGSVGBox <svg> at [169.359375,11.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-inlineSVGGeometryBox <path> at [6,8] [0+0+0 12 0+0+0] [0+0+0 7.40625 0+0+0] children: not-inline- Box <button> at [161.359375,18] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline- 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+ Box <button> at [169.359375,18] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline+ SVGSVGBox <svg> at [169.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-inlineSVGGeometryBox <path> at [6,8.578125] [0+0+0 12 0+0+0] [0+0+0 7.421875 0+0+0] children: not-inlineTextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/input-password-to-text.txt b/Tests/LibWeb/Layout/expected/input-password-to-text.txtindex 8f8ac7088bb..31f1eac73b8 100644--- a/Tests/LibWeb/Layout/expected/input-password-to-text.txt+++ b/Tests/LibWeb/Layout/expected/input-password-to-text.txt@@ -1,10 +1,10 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inlineBlockContainer <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: 14- 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 TextInputBox start: 0, length: 0, rect: [13,11 167.6875x14] baseline: 14+ TextInputBox <input> at [13,11] inline-block [0+2+3 167.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 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 7, rect: [13,11 51.578125x14] baseline: 11"hunter2"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/input-placeholder-with-line-height.txt b/Tests/LibWeb/Layout/expected/input-placeholder-with-line-height.txtindex c7b7578f7b6..2f61cfaf9c3 100644--- a/Tests/LibWeb/Layout/expected/input-placeholder-with-line-height.txt+++ b/Tests/LibWeb/Layout/expected/input-placeholder-with-line-height.txt@@ -1,15 +1,15 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 88.640625 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 72.640625 0+0+8] children: inline- 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: 13+ frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 167.6875x66.640625] baseline: 40.609375+ frag 1 from TextNode start: 0, length: 4, rect: [185.6875,35 32.140625x16] baseline: 13"text"- 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+ TextInputBox <input> at [13,11] inline-block [0+2+3 167.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 167.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 167.6875 0+0+0] [0+0+0 66.640625 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [13,37 0x14] baseline: 11TextNode <#text> (not painted)- BlockContainer <div> at [13,11] flex-item [-159.6875+0+0 159.6875 0+0+0] [0+0+0 66.640625 0+0+0] [BFC] children: inline+ BlockContainer <div> at [13,11] flex-item [-167.6875+0+0 167.6875 0+0+0] [0+0+0 66.640625 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [13,37 74.90625x14] baseline: 11"placeholder"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/input-text-to-password.txt b/Tests/LibWeb/Layout/expected/input-text-to-password.txtindex 7d573731476..7445fc9fa74 100644--- a/Tests/LibWeb/Layout/expected/input-text-to-password.txt+++ b/Tests/LibWeb/Layout/expected/input-text-to-password.txt@@ -1,10 +1,10 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inlineBlockContainer <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: 14- 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 TextInputBox start: 0, length: 0, rect: [13,11 167.6875x14] baseline: 14+ TextInputBox <input> at [13,11] inline-block [0+2+3 167.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 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 7, rect: [13,11 34.125x14] baseline: 11"•••••••"TextNode <#text> (not painted)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.txtindex f59442b2e1a..329f575d905 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@@ -2,15 +2,15 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 8 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inlineBlockContainer <(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: 14- 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: 11+ BlockContainer <dialog#d> at [311.15625,290] positioned [292.15625+3+16 177.6875 16+3+292.15625] [271+3+16 20 16+3+271] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [316.15625,293 167.6875x14] baseline: 14+ TextInputBox <input> at [316.15625,293] inline-block [0+2+3 167.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [316.15625,293] flex-container(row) [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [316.15625,293] flex-item [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [316.15625,293 0x14] baseline: 11TextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)SC for BlockContainer<HTML> [0,0 800x8] (z-index: auto)SC for BlockContainer(anonymous) [0,0 800x600] (z-index: auto)- SC for BlockContainer<DIALOG>#d [315.15625,290 169.6875x20] (z-index: auto)+ SC for BlockContainer<DIALOG>#d [311.15625,290 177.6875x20] (z-index: auto)diff --git a/Tests/LibWeb/Layout/expected/number-input-appearance.txt b/Tests/LibWeb/Layout/expected/number-input-appearance.txtindex 489287abcf7..b4f6c020d93 100644--- a/Tests/LibWeb/Layout/expected/number-input-appearance.txt+++ b/Tests/LibWeb/Layout/expected/number-input-appearance.txt@@ -1,51 +1,51 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inlineBlockContainer <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: 14- frag 1 from TextNode start: 0, length: 1, rect: [177.6875,9 8x16] baseline: 13+ frag 0 from TextInputBox start: 0, length: 0, rect: [13,11 167.6875x14] baseline: 14+ frag 1 from TextNode start: 0, length: 1, rect: [185.6875,9 8x16] baseline: 13" "- frag 2 from TextInputBox start: 0, length: 0, rect: [190.6875,11 159.6875x14] baseline: 14- frag 3 from TextNode start: 0, length: 1, rect: [355.375,9 8x16] baseline: 13+ frag 2 from TextInputBox start: 0, length: 0, rect: [198.6875,11 167.6875x14] baseline: 14+ frag 3 from TextNode start: 0, length: 1, rect: [371.375,9 8x16] baseline: 13" "- frag 4 from TextInputBox start: 0, length: 0, rect: [368.375,11 159.6875x14] baseline: 14- 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+ frag 4 from TextInputBox start: 0, length: 0, rect: [384.375,11 167.6875x14] baseline: 14+ TextInputBox <input> at [13,11] inline-block [0+2+3 167.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 167.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 154.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 154.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 1, rect: [13,11 5.28125x14] baseline: 11"1"TextNode <#text> (not painted)- Box <div> at [159.359375,11] flex-container(column) flex-item [0+0+0 13.328125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline- Box <button> at [161.359375,11] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline- SVGSVGBox <svg> at [161.359375,11.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+ Box <div> at [167.359375,11] flex-container(column) flex-item [0+0+0 13.328125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ Box <button> at [169.359375,11] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline+ SVGSVGBox <svg> at [169.359375,11.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-inlineSVGGeometryBox <path> at [6,8] [0+0+0 12 0+0+0] [0+0+0 7.40625 0+0+0] children: not-inline- Box <button> at [161.359375,18] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline- 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+ Box <button> at [169.359375,18] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline+ SVGSVGBox <svg> at [169.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-inlineSVGGeometryBox <path> at [6,8.578125] [0+0+0 12 0+0+0] [0+0+0 7.421875 0+0+0] children: not-inlineTextNode <#text> (not painted)- 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- frag 0 from TextNode start: 0, length: 1, rect: [190.6875,11 7.34375x14] baseline: 11+ TextInputBox <input> at [198.6875,11] inline-block [0+2+3 167.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [198.6875,11] flex-container(row) [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ Box <div> at [198.6875,11] flex-container(row) flex-item [0+0+0 154.359375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [198.6875,11] flex-item [0+0+0 154.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 1, rect: [198.6875,11 7.34375x14] baseline: 11"2"TextNode <#text> (not painted)- Box <div> at [337.046875,11] flex-container(column) flex-item [0+0+0 13.328125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline- Box <button> at [339.046875,11] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline- SVGSVGBox <svg> at [339.046875,11.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+ Box <div> at [353.046875,11] flex-container(column) flex-item [0+0+0 13.328125 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ Box <button> at [355.046875,11] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline+ SVGSVGBox <svg> at [355.046875,11.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-inlineSVGGeometryBox <path> at [6,8] [0+0+0 12 0+0+0] [0+0+0 7.40625 0+0+0] children: not-inline- Box <button> at [339.046875,18] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline- 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+ Box <button> at [355.046875,18] flex-container(row) flex-item [0+0+2 9.328125 2+0+0] [0+0+0 7 0+0+0] [FFC] children: not-inline+ SVGSVGBox <svg> at [355.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-inlineSVGGeometryBox <path> at [6,8.578125] [0+0+0 12 0+0+0] [0+0+0 7.421875 0+0+0] children: not-inlineTextNode <#text> (not painted)- 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- frag 0 from TextNode start: 0, length: 1, rect: [368.375,11 7.578125x14] baseline: 11+ TextInputBox <input> at [384.375,11] inline-block [0+2+3 167.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [384.375,11] flex-container(row) [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ Box <div> at [384.375,11] flex-container(row) flex-item [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [384.375,11] flex-item [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 1, rect: [384.375,11 7.578125x14] baseline: 11"3"TextNode <#text> (not painted)- Box <div> at [528.0625,11] flex-container(column) flex-item [0+0+0 0 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ Box <div> at [552.0625,11] flex-container(column) flex-item [0+0+0 0 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inlineTextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)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.txtindex 3a8499f6b53..957cc2aa88e 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@@ -2,10 +2,10 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 610 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,13] [8+0+0 784 0+0+8] [8+0+0 584 0+0+8] children: not-inlineBlockContainer <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: 14- 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 TextInputBox start: 0, length: 0, rect: [13,16 167.6875x14] baseline: 14+ TextInputBox <input> at [13,16] inline-block [0+2+3 167.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 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [13,16 0x14] baseline: 11TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/tree-builder/editable-and-input-empty-text-fragments.txt b/Tests/LibWeb/Layout/expected/tree-builder/editable-and-input-empty-text-fragments.txtindex aadb4df1e9c..292790cbcf1 100644--- a/Tests/LibWeb/Layout/expected/tree-builder/editable-and-input-empty-text-fragments.txt+++ b/Tests/LibWeb/Layout/expected/tree-builder/editable-and-input-empty-text-fragments.txt@@ -6,30 +6,30 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenInlineNode <span#span> at [8,24] [0+0+0 0 0+0+0] [0+0+0 16 0+0+0]TextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,40] [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: [13,63 159.6875x14] baseline: 14- frag 1 from TextNode start: 0, length: 1, rect: [177.6875,61 8x16] baseline: 13+ frag 0 from TextInputBox start: 0, length: 0, rect: [13,63 167.6875x14] baseline: 14+ frag 1 from TextNode start: 0, length: 1, rect: [185.6875,61 8x16] baseline: 13" "- frag 2 from TextInputBox start: 0, length: 0, rect: [190.6875,63 159.6875x14] baseline: 14- frag 3 from TextNode start: 0, length: 1, rect: [355.375,61 8x16] baseline: 13+ frag 2 from TextInputBox start: 0, length: 0, rect: [198.6875,63 167.6875x14] baseline: 14+ frag 3 from TextNode start: 0, length: 1, rect: [371.375,61 8x16] baseline: 13" "- frag 4 from TextAreaBox start: 0, length: 0, rect: [366.375,43 159.6875x28] baseline: 34- TextInputBox <input> at [13,63] 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,63] 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,63] flex-item [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 4 from TextAreaBox start: 0, length: 0, rect: [382.375,43 159.6875x28] baseline: 34+ TextInputBox <input> at [13,63] inline-block [0+2+3 167.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [13,63] flex-container(row) [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [13,63] flex-item [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [13,63 0x14] baseline: 11TextNode <#text> (not painted)TextNode <#text> (not painted)- TextInputBox <input> at [190.6875,63] 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,63] 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 [190.6875,63] 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: 4, rect: [190.6875,63 26.78125x14] baseline: 11+ TextInputBox <input> at [198.6875,63] inline-block [0+2+3 167.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [198.6875,63] flex-container(row) [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [198.6875,63] flex-item [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 4, rect: [198.6875,63 26.78125x14] baseline: 11"text"TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea> at [366.375,43] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline- Box <div> at [366.375,43] 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 [366.375,43] 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: [366.375,43 0x14] baseline: 11+ TextAreaBox <textarea> at [382.375,43] inline-block [0+1+2 159.6875 2+1+0] [0+1+2 28 2+1+0] [BFC] children: not-inline+ Box <div> at [382.375,43] 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 [382.375,43] 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: [382.375,43 0x14] baseline: 11TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/tree-builder/input-button-types-box-kinds.txt b/Tests/LibWeb/Layout/expected/tree-builder/input-button-types-box-kinds.txtindex aee9e0196c6..7a7b4aa135d 100644--- a/Tests/LibWeb/Layout/expected/tree-builder/input-button-types-box-kinds.txt+++ b/Tests/LibWeb/Layout/expected/tree-builder/input-button-types-box-kinds.txt@@ -61,7 +61,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenfrag 0 from CheckBox start: 0, length: 0, rect: [12,56 13x13] baseline: 16frag 1 from RadioButton start: 0, length: 0, rect: [33,57 12x12] baseline: 15frag 2 from RangeInputBox start: 0, length: 0, rect: [50,53 129x16] baseline: 18- frag 3 from TextInputBox start: 0, length: 0, rect: [186,58 159.6875x14] baseline: 14+ frag 3 from TextInputBox start: 0, length: 0, rect: [186,58 167.6875x14] baseline: 14CheckBox <input> at [12,56] inline-block [4+0+0 13 0+0+3] [3+0+0 13 0+0+3] children: not-inlineRadioButton <input> at [33,57] inline-block [5+0+0 12 0+0+3] [3+0+0 12 0+0+0] children: not-inlineRangeInputBox <input> at [50,53] inline-block [2+0+0 129 0+0+2] [2+0+0 16 0+0+2] [BFC] children: not-inline@@ -69,9 +69,9 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <div> at [50,59] positioned flex-item [0+0+0 129 0+0+0] [0+0+0 4 0+0+0] [BFC] children: not-inlineBlockContainer <div> at [50,59] positioned [0+0+0 64.5 0+0+0] [0+0+0 4 0+0+0] [BFC] children: not-inlineBlockContainer <div> at [114.5,61] positioned [64.5+0+0 16 0+0+48.5] [0+0+0 16 0+0+0] children: not-inline- TextInputBox <input> at [186,58] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline- Box <div> at [186,58] 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 [186,58] flex-item [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ TextInputBox <input> at [186,58] inline-block [0+2+3 167.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [186,58] flex-container(row) [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [186,58] flex-item [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [186,58 0x14] baseline: 11TextNode <#text> (not painted)BlockContainer <div> at [8,75] [0+0+0 784 0+0+0] [0+0+0 24 0+0+0] children: inline@@ -84,10 +84,10 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenfrag 4 from BlockContainer start: 0, length: 0, rect: [41,77 129x16] baseline: 18frag 5 from TextNode start: 0, length: 1, rect: [172,80 8x16] baseline: 13" "- frag 6 from BlockContainer start: 0, length: 0, rect: [185,82 159.6875x14] baseline: 14- frag 7 from TextNode start: 0, length: 1, rect: [349.6875,80 8x16] baseline: 13+ frag 6 from BlockContainer start: 0, length: 0, rect: [185,82 167.6875x14] baseline: 14+ frag 7 from TextNode start: 0, length: 1, rect: [357.6875,80 8x16] baseline: 13" "- frag 8 from BlockContainer start: 0, length: 0, rect: [366.6875,82 44.09375x14] baseline: 14+ frag 8 from BlockContainer start: 0, length: 0, rect: [374.6875,82 44.09375x14] baseline: 14BlockContainer <input> at [12,90] inline-block [4+0+0 0 0+0+3] [3+0+0 0 0+0+3] [BFC] children: not-inlineTextNode <#text> (not painted)BlockContainer <input> at [28,93] inline-block [5+0+0 0 0+0+3] [3+0+0 0 0+0+0] [BFC] children: not-inline@@ -98,18 +98,18 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <div> at [41,77] positioned [0+0+0 64.5 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inlineBlockContainer <div> at [105.5,77] positioned [64.5+0+0 16 0+0+48.5] [0+0+0 16 0+0+0] children: not-inlineTextNode <#text> (not painted)- BlockContainer <input> at [185,82] inline-block [0+2+3 159.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline- Box <div> at [185,82] 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 [185,82] flex-item [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ BlockContainer <input> at [185,82] inline-block [0+2+3 167.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [185,82] flex-container(row) [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [185,82] flex-item [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [185,82 0x14] baseline: 11TextNode <#text> (not painted)TextNode <#text> (not painted)- BlockContainer <input> at [366.6875,82] inline-block [0+2+7 44.09375 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [366.6875,82] flex-container(column) [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline- BlockContainer <(anonymous)> at [366.6875,82] flex-item [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline- frag 0 from BlockContainer start: 0, length: 0, rect: [366.6875,82 44.09375x14] baseline: 11- BlockContainer <span> at [366.6875,82] inline-block [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 6, rect: [366.6875,82 44.09375x14] baseline: 11+ BlockContainer <input> at [374.6875,82] inline-block [0+2+7 44.09375 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [374.6875,82] flex-container(column) [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <(anonymous)> at [374.6875,82] flex-item [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from BlockContainer start: 0, length: 0, rect: [374.6875,82 44.09375x14] baseline: 11+ BlockContainer <span> at [374.6875,82] inline-block [0+0+0 44.09375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 6, rect: [374.6875,82 44.09375x14] baseline: 11"button"TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/tree-builder/pseudo-elements-on-void-and-replaced.txt b/Tests/LibWeb/Layout/expected/tree-builder/pseudo-elements-on-void-and-replaced.txtindex 6ed90acf15a..addf52f912c 100644--- a/Tests/LibWeb/Layout/expected/tree-builder/pseudo-elements-on-void-and-replaced.txt+++ b/Tests/LibWeb/Layout/expected/tree-builder/pseudo-elements-on-void-and-replaced.txt@@ -19,10 +19,10 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children"after"GeneratedTextNode <(anonymous)> (not painted)BlockContainer <div> at [8,40] [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [13,43 159.6875x14] baseline: 14- TextInputBox <input.p> at [13,43] 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,43] 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,43] flex-item [0+0+0 159.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [13,43 167.6875x14] baseline: 14+ TextInputBox <input.p> at [13,43] inline-block [0+2+3 167.6875 3+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline+ Box <div> at [13,43] flex-container(row) [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [13,43] flex-item [0+0+0 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [13,43 0x14] baseline: 11TextNode <#text> (not painted)BlockContainer <div> at [8,60] [0+0+0 784 0+0+0] [0+0+0 19 0+0+0] children: inlinediff --git a/Tests/LibWeb/Layout/expected/unicode-password-input.txt b/Tests/LibWeb/Layout/expected/unicode-password-input.txtindex 26fa4c22738..9ddeb51b9c1 100644--- a/Tests/LibWeb/Layout/expected/unicode-password-input.txt+++ b/Tests/LibWeb/Layout/expected/unicode-password-input.txt@@ -1,10 +1,10 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inlineBlockContainer <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: 14- 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 TextInputBox start: 0, length: 0, rect: [13,11 167.6875x14] baseline: 14+ TextInputBox <input> at [13,11] inline-block [0+2+3 167.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 167.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 167.6875 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 14, rect: [13,11 68.25x14] baseline: 11"••••••••••••••"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/input/form-control-baseline-alignment.html b/Tests/LibWeb/Layout/input/form-control-baseline-alignment.htmlindex 462daeb83db..52be1fbaf14 100644--- a/Tests/LibWeb/Layout/input/form-control-baseline-alignment.html+++ b/Tests/LibWeb/Layout/input/form-control-baseline-alignment.html@@ -1,3 +1,7 @@<!DOCTYPE html>+<style>+ /* Keep all four controls on the same line for the baseline comparison. */+ input { width: 20ch; }+</style><input/><span>boo</span><textarea></textarea><span>boo</span><input placeholder="hello"/><span>boo</span><textarea placeholder="hello"></textarea>diff --git a/Tests/LibWeb/Screenshot/expected/input-placeholder.png b/Tests/LibWeb/Screenshot/expected/input-placeholder.pngindex 88f4a519969..30d15174b99 100644Binary files a/Tests/LibWeb/Screenshot/expected/input-placeholder.png and b/Tests/LibWeb/Screenshot/expected/input-placeholder.png differdiff --git a/Tests/LibWeb/Text/expected/css/appearance-change-rebuilds-box.txt b/Tests/LibWeb/Text/expected/css/appearance-change-rebuilds-box.txtindex ad502d1b20b..32aabbc6c6c 100644--- a/Tests/LibWeb/Text/expected/css/appearance-change-rebuilds-box.txt+++ b/Tests/LibWeb/Text/expected/css/appearance-change-rebuilds-box.txt@@ -1,6 +1,6 @@-<input> with its native appearance: 169.6875x20, the tree matches a full rebuild: true-<input> given none: 169.6875x20, the tree matches a full rebuild: true-<input> back: 169.6875x20, the tree matches a full rebuild: true+<input> with its native appearance: 177.6875x20, the tree matches a full rebuild: true+<input> given none: 177.6875x20, the tree matches a full rebuild: true+<input> back: 177.6875x20, the tree matches a full rebuild: true<input type=checkbox> with its native appearance: 13x13, the tree matches a full rebuild: true<input type=checkbox> given none: 0x0, the tree matches a full rebuild: true<input type=checkbox> back: 13x13, the tree matches a full rebuild: truediff --git a/Tests/LibWeb/Text/expected/css/placeholder-css-animation.txt b/Tests/LibWeb/Text/expected/css/placeholder-css-animation.txtindex f2509924018..beb486f742b 100644--- a/Tests/LibWeb/Text/expected/css/placeholder-css-animation.txt+++ b/Tests/LibWeb/Text/expected/css/placeholder-css-animation.txt@@ -1,4 +1,4 @@[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)- [s2] transform=[1,0,0,1,50,0] origin=(92.84375,18) bounds=[13,11 159.6875x14] (BlockContainer<DIV>)+ [s2] transform=[1,0,0,1,50,0] origin=(96.84375,18) bounds=[13,11 167.6875x14] (BlockContainer<DIV>)[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)- [s2] transform=[1,0,0,1,50,0] origin=(92.84375,18) bounds=[13,11 159.6875x14] (BlockContainer<DIV>)+ [s2] transform=[1,0,0,1,50,0] origin=(96.84375,18) bounds=[13,11 167.6875x14] (BlockContainer<DIV>)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.txtindex c75ee5383f3..faade5bef4e 100644--- a/Tests/LibWeb/Text/expected/display_list/form-control-devolved-borders.txt+++ b/Tests/LibWeb/Text/expected/display_list/form-control-devolved-borders.txt@@ -1,6 +1,6 @@FillRoundedRectRing@s1/e0 rect=[0,0 58x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=BlockContainer<BUTTON> phase=border-FillRoundedRectRing@s1/e0 rect=[66,0 170x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT> phase=border+FillRoundedRectRing@s1/e0 rect=[66,0 178x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT> phase=borderFillPath@s1/e0 path_bounding_rect=[0,20 74x20] path_data=[path: M74 20L74 20L72 22L72 38L74 40L74 40M74 40L74 40L72 38L2 38L0 40L0 40] color=rgb(33, 33, 33) winding_rule=EvenOdd owner=BlockContainer<BUTTON>.none phase=borderFillPath@s1/e0 path_bounding_rect=[0,20 74x20] path_data=[path: M0 40L0 40L2 38L2 22L0 20L0 20M0 20L0 20L2 22L72 22L74 20L74 20] color=rgb(118, 118, 118) winding_rule=EvenOdd owner=BlockContainer<BUTTON>.none phase=border-FillPath@s1/e0 path_bounding_rect=[82,20 170x20] path_data=[path: M252 20L252 20L250 22L250 38L252 40L252 40M252 40L252 40L250 38L84 38L82 40L82 40] color=rgb(118, 118, 118) winding_rule=EvenOdd owner=BlockContainer<INPUT>.none phase=border-FillPath@s1/e0 path_bounding_rect=[82,20 170x20] path_data=[path: M82 40L82 40L84 38L84 22L82 20L82 20M82 20L82 20L84 22L250 22L252 20L252 20] color=rgb(33, 33, 33) winding_rule=EvenOdd owner=BlockContainer<INPUT>.none phase=border+FillPath@s1/e0 path_bounding_rect=[82,20 178x20] path_data=[path: M260 20L260 20L258 22L258 38L260 40L260 40M260 40L260 40L258 38L84 38L82 40L82 40] color=rgb(118, 118, 118) winding_rule=EvenOdd owner=BlockContainer<INPUT>.none phase=border+FillPath@s1/e0 path_bounding_rect=[82,20 178x20] path_data=[path: M82 40L82 40L84 38L84 22L82 20L82 20M82 20L82 20L84 22L258 22L260 20L260 20] color=rgb(33, 33, 33) winding_rule=EvenOdd owner=BlockContainer<INPUT>.none phase=borderdiff --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.txtindex 518b9473970..cd6b00ecbb4 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=[2,182 166x16] (TextInputBox<INPUT>)- [c1 in s1] clip=[5,183 160x14] (BlockContainer<DIV>)- [c2 in s1] clip=[3,213 166x16] (TextInputBox<INPUT>)- [c3 in s1] clip=[6,214 160x14] (BlockContainer<DIV>)+ [c0 in s1] clip=[2,182 174x16] (TextInputBox<INPUT>)+ [c1 in s1] clip=[5,183 168x14] (BlockContainer<DIV>)+ [c2 in s1] clip=[3,213 174x16] (TextInputBox<INPUT>)+ [c3 in s1] clip=[6,214 168x14] (BlockContainer<DIV>)effects:[e0 in s0] effects=[]@@ -32,11 +32,11 @@ FillRect@s1/e0 rect=[0,150 137x20] color=rgb(239, 239, 239) owner=BlockContainerFillPath@s1/e0 path_bounding_rect=[0,150 137x20] path_data=[path: M137 150L137 150L135 152L135 168L137 170L137 170M137 170L137 170L135 168L2 168L0 170L0 170] color=rgb(33, 33, 33) winding_rule=EvenOdd owner=BlockContainer<BUTTON> phase=borderFillPath@s1/e0 path_bounding_rect=[0,150 137x20] path_data=[path: M0 170L0 170L2 168L2 152L0 150L0 150M0 150L0 150L2 152L135 152L137 150L137 150] color=rgb(118, 118, 118) winding_rule=EvenOdd owner=BlockContainer<BUTTON> phase=borderDrawGlyphRun@s1/e0 font_id=font1 glyphs=15 rect=[9,153 119x14] glyph_bounding_rect=[9,154 123x12] translation=[9,164] color=rgb(0, 0, 0) text="Appearance none" owner=BlockContainer(anonymous) phase=foreground-FillRectWithRoundedCorners@s1/e0 rect=[0,180 170x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT> phase=background-FillRoundedRectRing@s1/e0 rect=[0,180 170x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT> phase=border+FillRectWithRoundedCorners@s1/e0 rect=[0,180 178x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT> phase=background+FillRoundedRectRing@s1/e0 rect=[0,180 178x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT> phase=borderDrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=4 rect=[5,183 32x14] glyph_bounding_rect=[5,184 37x12] translation=[5,194] color=rgb(0, 0, 0) text="Text" owner=BlockContainer<DIV> phase=foreground-FillRect@s1/e0 rect=[0,210 172x22] color=rgb(255, 255, 255) owner=TextInputBox<INPUT> phase=background-FillPath@s1/e0 path_bounding_rect=[0,210 172x22] path_data=[path: M172 210L172 210L169 213L169 229L172 232L172 232M172 232L172 232L169 229L3 229L0 232L0 232] color=rgb(118, 118, 118) winding_rule=EvenOdd owner=TextInputBox<INPUT> phase=border-FillPath@s1/e0 path_bounding_rect=[0,210 172x22] path_data=[path: M0 232L0 232L3 229L3 213L0 210L0 210M0 210L0 210L3 213L169 213L172 210L172 210] color=rgb(33, 33, 33) winding_rule=EvenOdd owner=TextInputBox<INPUT> phase=border+FillRect@s1/e0 rect=[0,210 180x22] color=rgb(255, 255, 255) owner=TextInputBox<INPUT> phase=background+FillPath@s1/e0 path_bounding_rect=[0,210 180x22] path_data=[path: M180 210L180 210L177 213L177 229L180 232L180 232M180 232L180 232L177 229L3 229L0 232L0 232] color=rgb(118, 118, 118) winding_rule=EvenOdd owner=TextInputBox<INPUT> phase=border+FillPath@s1/e0 path_bounding_rect=[0,210 180x22] path_data=[path: M0 232L0 232L3 229L3 213L0 210L0 210M0 210L0 210L3 213L177 213L180 210L180 210] color=rgb(33, 33, 33) winding_rule=EvenOdd owner=TextInputBox<INPUT> phase=borderDrawGlyphRun@s1/c3/e0 font_id=font1 glyphs=8 rect=[6,214 59x14] glyph_bounding_rect=[6,215 63x12] translation=[6,225] color=rgb(0, 0, 0) text="Bordered" owner=BlockContainer<DIV> phase=foregrounddiff --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.txtindex cbf2146c894..b19d4d1d57b 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,21 +3,21 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)clips:- [c0 in s1] clip=[10,10 166x16] (TextInputBox<INPUT>#foo)- [c1 in s1] clip=[13,11 160x14] (BlockContainer<DIV>)- [c2 in s1] clip=[188,10 165x16] (TextInputBox<INPUT>#bar)- [c3 in s1] clip=[191,11 159x14] (BlockContainer<DIV>)+ [c0 in s1] clip=[10,10 174x16] (TextInputBox<INPUT>#foo)+ [c1 in s1] clip=[13,11 168x14] (BlockContainer<DIV>)+ [c2 in s1] clip=[196,10 173x16] (TextInputBox<INPUT>#bar)+ [c3 in s1] clip=[199,11 167x14] (BlockContainer<DIV>)effects:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[8,8 170x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT>#foo phase=background-FillRoundedRectRing@s1/e0 rect=[8,8 170x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT>#foo phase=border+FillRectWithRoundedCorners@s1/e0 rect=[8,8 178x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT>#foo phase=background+FillRoundedRectRing@s1/e0 rect=[8,8 178x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT>#foo phase=borderDrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=3 rect=[13,11 23x14] glyph_bounding_rect=[13,12 25x12] translation=[13,22] color=rgb(0, 0, 0) text="foo" owner=BlockContainer<DIV> phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=1 rect=[177,9 9x16] glyph_bounding_rect=[178,10 13x15] translation=[177.6875,22] color=rgb(0, 0, 0) text=" " owner=BlockContainer(anonymous) phase=text-fragment-FillRectWithRoundedCorners@s1/e0 rect=[186,8 169x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT>#bar phase=background-FillRoundedRectRing@s1/e0 rect=[186,8 169x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT>#bar phase=border-DrawGlyphRun@s1/c3/e0 font_id=font1 glyphs=3 rect=[190,11 24x14] glyph_bounding_rect=[191,12 27x12] translation=[190.6875,22] color=rgb(0, 0, 0) text="bar" owner=BlockContainer<DIV> phase=foreground-PaintCaret@s1/c3/e0 rect=[191,11 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1 owner=BlockContainer<DIV> phase=foreground-FillRoundedRectRing@s1/e0 rect=[184,6 173x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextInputBox<INPUT>#bar phase=outline+DrawGlyphRun@s1/e0 font_id=font2 glyphs=1 rect=[185,9 9x16] glyph_bounding_rect=[186,10 13x15] translation=[185.6875,22] color=rgb(0, 0, 0) text=" " owner=BlockContainer(anonymous) phase=text-fragment+FillRectWithRoundedCorners@s1/e0 rect=[194,8 177x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT>#bar phase=background+FillRoundedRectRing@s1/e0 rect=[194,8 177x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT>#bar phase=border+DrawGlyphRun@s1/c3/e0 font_id=font1 glyphs=3 rect=[198,11 24x14] glyph_bounding_rect=[199,12 27x12] translation=[198.6875,22] color=rgb(0, 0, 0) text="bar" owner=BlockContainer<DIV> phase=foreground+PaintCaret@s1/c3/e0 rect=[199,11 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1 owner=BlockContainer<DIV> phase=foreground+FillRoundedRectRing@s1/e0 rect=[192,6 181x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextInputBox<INPUT>#bar phase=outlinediff --git a/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txt b/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txtindex 64317ad2b5a..37815e1252d 100644--- a/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txt@@ -3,13 +3,13 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)clips:- [c0 in s1] clip=[8,11 156x13] (TextInputBox<INPUT>#input)- [c1 in s1] clip=[8,11 156x13] (BlockContainer<DIV>)+ [c0 in s1] clip=[8,11 164x13] (TextInputBox<INPUT>#input)+ [c1 in s1] clip=[8,11 164x13] (BlockContainer<DIV>)effects:[e0 in s0] effects=[]DisplayList:FillRect@s1/c1/e0 rect=[8,11 23x13] color=rgba(101, 2, 0, 0.8) owner=BlockContainer<DIV> phase=foregroundDrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=3 rect=[8,11 23x13] glyph_bounding_rect=[8,11 26x12] translation=[8,21] color=rgb(0, 0, 0) text="abc" owner=BlockContainer<DIV> phase=foreground-FillRoundedRectRing@s1/e0 rect=[6,9 160x17] corner_radii=[8x8,8x8,8x8,8x8] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextInputBox<INPUT>#input phase=outline+FillRoundedRectRing@s1/e0 rect=[6,9 168x17] corner_radii=[8x8,8x8,8x8,8x8] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextInputBox<INPUT>#input phase=outlinediff --git a/Tests/LibWeb/Text/expected/flex/flex-item-minimum-width-compresses-text-controls.txt b/Tests/LibWeb/Text/expected/flex/flex-item-minimum-width-compresses-text-controls.txtindex da355602019..1bbd008fd70 100644--- a/Tests/LibWeb/Text/expected/flex/flex-item-minimum-width-compresses-text-controls.txt+++ b/Tests/LibWeb/Text/expected/flex/flex-item-minimum-width-compresses-text-controls.txt@@ -1,5 +1,5 @@flex item around a <input> with width: 100%: 60px-flex item around a <input> with max-width: 100%: 169.6875px+flex item around a <input> with max-width: 100%: 177.6875pxflex item around a <textarea> with width: 100%: 60pxflex item around a <textarea> with max-width: 100%: 245.53125pxflex item around a <select> with width: 100%: 60px@@ -10,4 +10,4 @@ flex item around an inline-flex <select> with width: 100%: 60pxflex item around a <select> with width: calc(100% + 80px): 80pxflex item around a <input> with width: calc(100% + 80px): 80pxflex item around a <select> with width: fit-content(50%): 206.21875px-flex item around a <input> with width: fit-content(50%): 169.6875px+flex item around a <input> with width: fit-content(50%): 177.6875pxdiff --git a/Tests/LibWeb/Text/expected/input-preferred-width-character-advances.txt b/Tests/LibWeb/Text/expected/input-preferred-width-character-advances.txtnew file mode 100644index 00000000000..33059c987d6--- /dev/null+++ b/Tests/LibWeb/Text/expected/input-preferred-width-character-advances.txt@@ -0,0 +1,3 @@+Default size in a proportional font: 201.875+Size 2 with appearance: none: 29.1875+Size 2 in a fixed-width font: 32diff --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.txtindex e117da7bce9..4471ccf5ee8 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 twininline-ruby-legend-with-block-child: 50x20 at 0,0, child 50x20 at 0,0, same as its flow twininline-ruby-legend-with-text: 40.1875x20 at 0,0, same as its flow twinruby-text-legend: 50x40 at 0,0, child 50x20 at 0,0, same as its flow twin-inline-ruby-input: 163.6875x18 at 0,3, same as its flow twin+inline-ruby-input: 171.6875x18 at 0,3, same as its flow twindiff --git a/Tests/LibWeb/Text/input/accessibility-node-data-names.html b/Tests/LibWeb/Text/input/accessibility-node-data-names.htmlindex 6f71e8eb69f..7b42778aaf9 100644--- a/Tests/LibWeb/Text/input/accessibility-node-data-names.html+++ b/Tests/LibWeb/Text/input/accessibility-node-data-names.html@@ -4,6 +4,9 @@body {font: 16px/20px SerenitySans;}+ input {+ width: 20ch;+ }.with-before::before {content: "Before ";}diff --git a/Tests/LibWeb/Text/input/accessibility-node-data-states.html b/Tests/LibWeb/Text/input/accessibility-node-data-states.htmlindex eb505db4bfc..658917f6c58 100644--- a/Tests/LibWeb/Text/input/accessibility-node-data-states.html+++ b/Tests/LibWeb/Text/input/accessibility-node-data-states.html@@ -4,6 +4,9 @@body {font: 16px/20px SerenitySans;}+ #text-field {+ width: 20ch;+ }</style><!-- After each change to a node's state, the accessibility node data reflects it, including the changes that come froma property rather than an attribute: a text field's value, a checkbox's checkedness and indeterminacy, an option'sdiff --git a/Tests/LibWeb/Text/input/input-preferred-width-character-advances.html b/Tests/LibWeb/Text/input/input-preferred-width-character-advances.htmlnew file mode 100644index 00000000000..2bcc9c0c184--- /dev/null+++ b/Tests/LibWeb/Text/input/input-preferred-width-character-advances.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<script src="include.js"></script>+<style>+ @font-face {+ font-family: Ahem;+ src: url("../../Ref/data/fonts/Ahem.ttf");+ }+ input {+ font: 16px/20px SerenitySans;+ border: 0;+ padding: 0;+ }+ #plain { appearance: none; }+ #monospace { font-family: Ahem; }+</style>+<input id="native">+<input id="plain" size="2">+<input id="monospace" size="2">+<script>+ asyncTest(async done => {+ await document.fonts.load("16px Ahem");+ const width = id => document.getElementById(id).getBoundingClientRect().width;+ println(`Default size in a proportional font: ${width("native")}`);+ println(`Size 2 with appearance: none: ${width("plain")}`);+ println(`Size 2 in a fixed-width font: ${width("monospace")}`);+ done();+ });+</script>