Truly independent web browser
LibGfx: Compute font metrics with HarfBuzz
Aliaksandr Kalenik3b47d6a070c2
diff --git a/Libraries/LibGfx/Font/FaceDescription.cpp b/Libraries/LibGfx/Font/FaceDescription.cppindex 76cac3a5c56..7e3f04ee66d 100644--- a/Libraries/LibGfx/Font/FaceDescription.cpp+++ b/Libraries/LibGfx/Font/FaceDescription.cpp@@ -98,12 +98,33 @@ static FaceStyle read_declared_style(hb_face_t* face)return style;}+// The ascender, the descender and the x-height at the default coordinates. A font adds the deltas of its variations.+static FaceVerticalMetrics read_vertical_metrics(hb_face_t* face)+{+ // A new font has the scale of the face, so positions are in font units.+ auto* font = hb_font_create(face);+ hb_font_set_var_coords_normalized(font, nullptr, 0);++ FaceVerticalMetrics metrics;+ hb_position_t position = 0;+ hb_ot_metrics_get_position_with_fallback(font, HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER, &position);+ metrics.ascender = position;+ hb_ot_metrics_get_position_with_fallback(font, HB_OT_METRICS_TAG_HORIZONTAL_DESCENDER, &position);+ metrics.descender = position;+ if (hb_ot_metrics_get_position(font, HB_OT_METRICS_TAG_X_HEIGHT, &position))+ metrics.x_height = position;++ hb_font_destroy(font);+ return metrics;+}+FaceDescription FaceDescription::read(hb_face_t* face){FaceDescription description;if (auto family = read_family(face); family.has_value())description.m_family = FlyString { family.release_value() };description.m_declared_style = read_declared_style(face);+ description.m_vertical_metrics = read_vertical_metrics(face);// https://learn.microsoft.com/en-us/typography/opentype/spec/fvarauto axis_count = hb_ot_var_get_axis_count(face);diff --git a/Libraries/LibGfx/Font/FaceDescription.h b/Libraries/LibGfx/Font/FaceDescription.hindex a64d07da25a..781e9aaa770 100644--- a/Libraries/LibGfx/Font/FaceDescription.h+++ b/Libraries/LibGfx/Font/FaceDescription.h@@ -24,13 +24,22 @@ struct FaceStyle {bool operator==(FaceStyle const&) const = default;};-// The family and the style of a face, read from its tables.+// Vertical metrics in font units at the default coordinates, with y up.+struct FaceVerticalMetrics {+ i32 ascender { 0 };+ i32 descender { 0 };+ // The sxHeight of the OS/2 table, or 0 if the table does not give it.+ i32 x_height { 0 };+};++// The family, the style and the vertical metrics of a face, read from its tables.class FaceDescription {public:static FaceDescription read(hb_face_t*);FlyString const& family() const { return m_family; }FaceStyle style() const { return m_style; }+ FaceVerticalMetrics const& vertical_metrics() const { return m_vertical_metrics; }// The style of the face with these variations applied.FaceStyle style_for_variations(ReadonlySpan<FontVariationAxis>) const;@@ -48,6 +57,7 @@ private:// The style that the OS/2 and head tables give, which the axes of a variable face can change.FaceStyle m_declared_style;FaceStyle m_style;+ FaceVerticalMetrics m_vertical_metrics;Vector<VariationAxis> m_axes;};diff --git a/Libraries/LibGfx/Font/Font.cpp b/Libraries/LibGfx/Font/Font.cppindex 2c04e1c7ae4..452566b5012 100644--- a/Libraries/LibGfx/Font/Font.cpp+++ b/Libraries/LibGfx/Font/Font.cpp@@ -20,7 +20,6 @@#endif#include <core/SkFont.h>-#include <core/SkFontMetrics.h>#include <core/SkFontTypes.h>#include <harfbuzz/hb-ot.h>@@ -50,20 +49,44 @@ Font::Font(NonnullRefPtr<Typeface const> typeface, float point_width, float poin{m_pixel_size = m_point_height * (DEFAULT_DPI / POINTS_PER_INCH);m_style = m_typeface->style_for_variations(m_font_variation_settings.to_sorted_list());+ m_harfbuzz_font = create_harfbuzz_font();+ m_pixel_metrics = compute_pixel_metrics();+}- auto const* sk_typeface = as<TypefaceSkia>(*m_typeface).sk_typeface();- SkFont const font { sk_ref_sp(sk_typeface), m_pixel_size };-- SkFontMetrics skMetrics;- font.getMetrics(&skMetrics);+FontPixelMetrics Font::compute_pixel_metrics() const+{+ auto const& vertical_metrics = m_typeface->description().vertical_metrics();+ auto units_per_em = static_cast<float>(m_typeface->units_per_em());+ auto font_units_to_pixels = [&](float units) {+ return units / units_per_em * m_pixel_size;+ };FontPixelMetrics metrics;- metrics.x_height = skMetrics.fXHeight;- metrics.advance_of_ascii_zero = font.measureText("0", 1, SkTextEncoding::kUTF8);- metrics.ascent = -skMetrics.fAscent;- metrics.descent = skMetrics.fDescent;+ metrics.ascent = font_units_to_pixels(vertical_metrics.ascender + hb_ot_metrics_get_variation(m_harfbuzz_font, HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER));+ metrics.descent = -font_units_to_pixels(vertical_metrics.descender + hb_ot_metrics_get_variation(m_harfbuzz_font, HB_OT_METRICS_TAG_HORIZONTAL_DESCENDER));++ // https://drafts.csswg.org/css-values-4/#ex+ // In the cases where it is impossible or impractical to determine the x-height, a value of 0.5em must be assumed.+ metrics.x_height = m_pixel_size / 2;+ int x_scale = 0;+ int y_scale = 0;+ hb_font_get_scale(m_harfbuzz_font, &x_scale, &y_scale);+ hb_codepoint_t glyph_id = 0;+ hb_glyph_extents_t extents {};+ if (vertical_metrics.x_height != 0) {+ metrics.x_height = font_units_to_pixels(vertical_metrics.x_height + hb_ot_metrics_get_variation(m_harfbuzz_font, HB_OT_METRICS_TAG_X_HEIGHT));+ } else if (y_scale > 0 && hb_font_get_nominal_glyph(m_harfbuzz_font, 'x', &glyph_id) && hb_font_get_glyph_extents(m_harfbuzz_font, glyph_id, &extents) && extents.y_bearing > 0) {+ metrics.x_height = static_cast<float>(extents.y_bearing) * m_pixel_size / static_cast<float>(y_scale);+ }- m_pixel_metrics = metrics;+ // https://drafts.csswg.org/css-values-4/#ch+ // The advance of the glyph that shaping uses for "0". In the cases where it is impossible or impractical to+ // determine the measure of the "0" glyph, it must be assumed to be 0.5em wide.+ metrics.advance_of_ascii_zero = m_pixel_size / 2;+ if (hb_font_get_nominal_glyph(m_harfbuzz_font, '0', &glyph_id))+ metrics.advance_of_ascii_zero = static_cast<float>(hb_font_get_glyph_h_advance(m_harfbuzz_font, glyph_id)) / text_shaping_resolution;++ return metrics;}float Font::width(Utf16View const& view) const { return measure_text_width(view, *this); }@@ -103,29 +126,27 @@ static int scale_for_harfbuzz(float pixel_size)return static_cast<int>(scaled_pixel_size);}-hb_font_t* Font::harfbuzz_font() const+hb_font_t* Font::create_harfbuzz_font() const{- call_once(m_harfbuzz_font_once, [&] {- m_harfbuzz_font = hb_font_create(typeface().harfbuzz_typeface());- auto harfbuzz_scale = scale_for_harfbuzz(pixel_size());- hb_font_set_scale(m_harfbuzz_font, harfbuzz_scale, harfbuzz_scale);- // HarfBuzz uses ptem for AAT 'trak' table lookup; use CSS pixels instead of physical points here.- hb_font_set_ptem(m_harfbuzz_font, pixel_size());-- auto variations = m_font_variation_settings.axes;- if (!variations.is_empty()) {- Vector<hb_variation_t> hb_list;- hb_list.ensure_capacity(variations.size());-- for (auto const& axis : variations) {- hb_list.unchecked_append(hb_variation_t { axis.key.to_u32(), axis.value });- }-- hb_font_set_variations(m_harfbuzz_font, hb_list.data(), hb_list.size());+ auto* font = hb_font_create(typeface().harfbuzz_typeface());+ auto harfbuzz_scale = scale_for_harfbuzz(pixel_size());+ hb_font_set_scale(font, harfbuzz_scale, harfbuzz_scale);+ // HarfBuzz uses ptem for AAT 'trak' table lookup; use CSS pixels instead of physical points here.+ hb_font_set_ptem(font, pixel_size());++ auto variations = m_font_variation_settings.axes;+ if (!variations.is_empty()) {+ Vector<hb_variation_t> hb_list;+ hb_list.ensure_capacity(variations.size());++ for (auto const& axis : variations) {+ hb_list.unchecked_append(hb_variation_t { axis.key.to_u32(), axis.value });}- hb_font_make_immutable(m_harfbuzz_font);- });- return m_harfbuzz_font;++ hb_font_set_variations(font, hb_list.data(), hb_list.size());+ }+ hb_font_make_immutable(font);+ return font;}#if defined(USE_FONTCONFIG)diff --git a/Libraries/LibGfx/Font/Font.h b/Libraries/LibGfx/Font/Font.hindex 3243e789ce1..66fcaad0c27 100644--- a/Libraries/LibGfx/Font/Font.h+++ b/Libraries/LibGfx/Font/Font.h@@ -91,7 +91,7 @@ public:SkFont skia_font(float scale) const;- hb_font_t* harfbuzz_font() const;+ hb_font_t* harfbuzz_font() const { return m_harfbuzz_font; }FontVariationSettings const& variation_settings() const { return m_font_variation_settings; }ShapeFeatures const& features() const { return m_shape_features; }@@ -111,8 +111,10 @@ private:mutable Atomic<u64> m_hinting_memo { 0 };#endif- mutable OnceFlag m_harfbuzz_font_once;- mutable hb_font_t* m_harfbuzz_font { nullptr };+ hb_font_t* create_harfbuzz_font() const;+ FontPixelMetrics compute_pixel_metrics() const;++ hb_font_t* m_harfbuzz_font { nullptr };// A layout pass classifies fonts while the document thread may be doing the same to the same// font, so the verdict is a single atomic byte. Either winner is correct: the classificationdiff --git a/Tests/LibWeb/Accessibility/expected/form-controls.txt b/Tests/LibWeb/Accessibility/expected/form-controls.txtindex 9d1dffbf5a3..d396ed087d4 100644--- a/Tests/LibWeb/Accessibility/expected/form-controls.txt+++ b/Tests/LibWeb/Accessibility/expected/form-controls.txt@@ -23,9 +23,9 @@ documenttext leaf name=""text leaf name="Free"- radio name="Pro plan" uncheckedtext leaf name=""+ radio name="Pro plan" uncheckedtext leaf name="Pro"text leaf name=""diff --git a/Tests/LibWeb/Accessibility/expected/text-values.txt b/Tests/LibWeb/Accessibility/expected/text-values.txtindex c6582bacd00..63019ea4585 100644--- a/Tests/LibWeb/Accessibility/expected/text-values.txt+++ b/Tests/LibWeb/Accessibility/expected/text-values.txt@@ -7,5 +7,7 @@ documenttext leaf name=""name="Password field" value="●●●●●●●●●●●●●" editable password+ text leaf name="+"textbox name="Notes" value="note text" editable multilinetext leaf name="note text"diff --git a/Tests/LibWeb/Layout/expected/css-line-height-zero.txt b/Tests/LibWeb/Layout/expected/css-line-height-zero.txtindex ba2aaf139b9..4ce5398370a 100644--- a/Tests/LibWeb/Layout/expected/css-line-height-zero.txt+++ b/Tests/LibWeb/Layout/expected/css-line-height-zero.txt@@ -1,25 +1,25 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 84 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 68 0+0+8] children: not-inline- TextInputBox <input#a> at [11,10] [0+1+2 200 2+1+578] [0+1+1 16 1+1+0] children: not-inline- Box <div> at [11,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,10] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ TextInputBox <input#a> at [11,10] [0+1+2 191.875 2+1+586.125] [0+1+1 16 1+1+0] children: not-inline+ Box <div> at [11,10] 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 [11,10] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [11,10 91.953125x16] baseline: 12.796875"Hello World"TextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,28] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- TextInputBox <input#b> at [11,30] [0+1+2 200 2+1+578] [0+1+1 16 1+1+0] children: not-inline- Box <div> at [11,30] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,30] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ TextInputBox <input#b> at [11,30] [0+1+2 191.875 2+1+586.125] [0+1+1 16 1+1+0] children: not-inline+ Box <div> at [11,30] 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 [11,30] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [11,30 91.953125x16] baseline: 12.796875"Hello World"TextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,48] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- TextInputBox <input#c> at [11,50] [0+1+2 200 2+1+578] [0+1+1 24 1+1+0] children: not-inline- Box <div> at [11,50] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 24 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,50] flex-item [0+0+0 200 0+0+0] [0+0+0 24 0+0+0] [BFC] children: inline+ TextInputBox <input#c> at [11,50] [0+1+2 191.875 2+1+586.125] [0+1+1 24 1+1+0] children: not-inline+ Box <div> at [11,50] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 24 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,50] flex-item [0+0+0 191.875 0+0+0] [0+0+0 24 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [11,54 91.953125x16] baseline: 12.796875"Hello World"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/css-pseudo-element-blockification.txt b/Tests/LibWeb/Layout/expected/css-pseudo-element-blockification.txtindex eefff5b1229..264902480d4 100644--- a/Tests/LibWeb/Layout/expected/css-pseudo-element-blockification.txt+++ b/Tests/LibWeb/Layout/expected/css-pseudo-element-blockification.txt@@ -6,12 +6,12 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenfrag 0 from GeneratedTextNode start: 0, length: 4, rect: [8,8 28.40625x16] baseline: 12.796875"well"GeneratedTextNode <(anonymous)> (not painted)- BlockContainer <(anonymous)> at [46.40625,8] flex-item [0+0+0 36.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 5, rect: [46.40625,8 36.84375x16] baseline: 12.796875+ BlockContainer <(anonymous)> at [46,8] flex-item [0+0+0 36.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 5, rect: [46,8 36.84375x16] baseline: 12.796875"hello"TextNode <#text> (not painted)- BlockContainer <(anonymous)> at [93.25,8] flex-item [0+0+0 55.359375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from GeneratedTextNode start: 0, length: 7, rect: [93.25,8 55.359375x16] baseline: 12.796875+ BlockContainer <(anonymous)> at [92.4375,8] flex-item [0+0+0 55.359375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from GeneratedTextNode start: 0, length: 7, rect: [92.4375,8 55.359375x16] baseline: 12.796875"friends"GeneratedTextNode <(anonymous)> (not painted)diff --git a/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt b/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txtindex 3e71fcc9e9a..962dcb6b8d1 100644--- a/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt+++ b/Tests/LibWeb/Layout/expected/empty-editable-shows-cursor.txt@@ -7,47 +7,47 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenTextNode <#text> (not painted)BlockContainer <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 35.203125 0+0+0] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,40 200x16] baseline: 18- frag 1 from TextNode start: 0, length: 1, rect: [214,43 8x16] baseline: 12.796875+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,40 191.875x16] baseline: 18+ frag 1 from TextNode start: 0, length: 1, rect: [205.875,43 8x16] baseline: 12.796875" "- frag 2 from TextAreaBox start: 0, length: 0, rect: [225,27 160x26] baseline: 32- frag 3 from TextNode start: 0, length: 1, rect: [388,43 8x16] baseline: 12.796875+ frag 2 from TextAreaBox start: 0, length: 0, rect: [216.875,27 155.9375x26] baseline: 32+ frag 3 from TextNode start: 0, length: 1, rect: [375.8125,43 8x16] baseline: 12.796875" "- frag 4 from TextInputBox start: 0, length: 0, rect: [399,40 200x16] baseline: 18- frag 5 from TextNode start: 0, length: 1, rect: [602,43 8x16] baseline: 12.796875+ frag 4 from TextInputBox start: 0, length: 0, rect: [386.8125,40 191.875x16] baseline: 18+ frag 5 from TextNode start: 0, length: 1, rect: [581.6875,43 8x16] baseline: 12.796875" "- frag 6 from TextAreaBox start: 0, length: 0, rect: [613,27 160x26] baseline: 32+ frag 6 from TextAreaBox start: 0, length: 0, rect: [592.6875,27 155.9375x26] baseline: 32TextNode <#text> (not painted)- TextInputBox <input> at [11,40] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,40] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,40] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ TextInputBox <input> at [11,40] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,40] 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 [11,40] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,40 0x16] baseline: 12.796875TextNode <#text> (not painted)- BlockContainer <div> at [11,40] flex-item [-200+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ BlockContainer <div> at [11,40] flex-item [-191.875+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 5, rect: [11,40 36.84375x16] baseline: 12.796875"hello"TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea> at [225,27] inline-block [0+1+2 160 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [225,27] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [225,27] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [225,27 0x13] baseline: 10.390625+ TextAreaBox <textarea> at [216.875,27] inline-block [0+1+2 155.9375 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [216.875,27] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [216.875,27] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [216.875,27 0x13] baseline: 10.390625TextNode <#text> (not painted)- BlockContainer <div> at [225,27] flex-item [-160+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 5, rect: [225,27 29.921875x13] baseline: 10.390625+ BlockContainer <div> at [216.875,27] flex-item [-155.9375+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 5, rect: [216.875,27 29.921875x13] baseline: 10.390625"hello"TextNode <#text> (not painted)TextNode <#text> (not painted)- TextInputBox <input> at [399,40] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [399,40] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [399,40] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [399,40 0x16] baseline: 12.796875+ TextInputBox <input> at [386.8125,40] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [386.8125,40] 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 [386.8125,40] 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: [386.8125,40 0x16] baseline: 12.796875TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea> at [613,27] inline-block [0+1+2 160 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [613,27] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [613,27] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [613,27 0x13] baseline: 10.390625+ TextAreaBox <textarea> at [592.6875,27] inline-block [0+1+2 155.9375 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [592.6875,27] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [592.6875,27] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [592.6875,27 0x13] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/font-size-zero.txt b/Tests/LibWeb/Layout/expected/font-size-zero.txtindex a7a49d6364f..afb000f0f23 100644--- a/Tests/LibWeb/Layout/expected/font-size-zero.txt+++ b/Tests/LibWeb/Layout/expected/font-size-zero.txt@@ -1,10 +1,10 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 17 0+0+0] [BFC] children: not-inline- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 1 0+0+8] children: not-inline- BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 1 0+0+0] children: inline- frag 0 from TextNode start: 0, length: 21, rect: [8,8 0x1] baseline: 0.796875+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline+ BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline+ frag 0 from TextNode start: 0, length: 21, rect: [8,8 0x0] baseline: 0"should not be visible"TextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)- SC for BlockContainer<HTML> [0,0 800x17] (z-index: auto)+ SC for BlockContainer<HTML> [0,0 800x16] (z-index: auto)diff --git a/Tests/LibWeb/Layout/expected/form-control-baseline-alignment.txt b/Tests/LibWeb/Layout/expected/form-control-baseline-alignment.txtindex bef90f5a274..4cd49efd929 100644--- a/Tests/LibWeb/Layout/expected/form-control-baseline-alignment.txt+++ b/Tests/LibWeb/Layout/expected/form-control-baseline-alignment.txt@@ -1,50 +1,50 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 86.609375 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 70.609375 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,24 200x16] baseline: 18- frag 1 from TextAreaBox start: 0, length: 0, rect: [247.1875,11 160x26] baseline: 32- frag 2 from TextInputBox start: 0, length: 0, rect: [443.375,24 200x16] baseline: 18- frag 3 from TextNode start: 0, length: 1, rect: [646.375,27 8x16] baseline: 12.796875+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,24 191.875x16] baseline: 18+ frag 1 from TextAreaBox start: 0, length: 0, rect: [239.0625,11 155.9375x26] baseline: 32+ frag 2 from TextInputBox start: 0, length: 0, rect: [431.1875,24 191.875x16] baseline: 18+ frag 3 from TextNode start: 0, length: 1, rect: [626.0625,27 8x16] baseline: 12.796875" "- frag 4 from TextAreaBox start: 0, length: 0, rect: [11,46 160x26] baseline: 32- TextInputBox <input> at [11,24] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,24] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,24] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 4 from TextAreaBox start: 0, length: 0, rect: [11,46 155.9375x26] baseline: 32+ TextInputBox <input> at [11,24] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,24] 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 [11,24] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,24 0x16] baseline: 12.796875TextNode <#text> (not painted)- InlineNode <span> at [214,27] [0+0+0 30.1875 0+0+0] [0+0+0 16 0+0+0]- frag 0 from TextNode start: 0, length: 3, rect: [214,27 30.1875x16] baseline: 12.796875+ InlineNode <span> at [205.875,27] [0+0+0 30.1875 0+0+0] [0+0+0 16 0+0+0]+ frag 0 from TextNode start: 0, length: 3, rect: [205.875,27 30.1875x16] baseline: 12.796875"boo"TextNode <#text> (not painted)- TextAreaBox <textarea> at [247.1875,11] inline-block [0+1+2 160 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [247.1875,11] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [247.1875,11] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [247.1875,11 0x13] baseline: 10.390625+ TextAreaBox <textarea> at [239.0625,11] inline-block [0+1+2 155.9375 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [239.0625,11] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [239.0625,11] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [239.0625,11 0x13] baseline: 10.390625TextNode <#text> (not painted)- InlineNode <span> at [410.1875,27] [0+0+0 30.1875 0+0+0] [0+0+0 16 0+0+0]- frag 0 from TextNode start: 0, length: 3, rect: [410.1875,27 30.1875x16] baseline: 12.796875+ InlineNode <span> at [398,27] [0+0+0 30.1875 0+0+0] [0+0+0 16 0+0+0]+ frag 0 from TextNode start: 0, length: 3, rect: [398,27 30.1875x16] baseline: 12.796875"boo"TextNode <#text> (not painted)- TextInputBox <input> at [443.375,24] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [443.375,24] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [443.375,24] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [443.375,24 0x16] baseline: 12.796875+ TextInputBox <input> at [431.1875,24] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [431.1875,24] 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 [431.1875,24] 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: [431.1875,24 0x16] baseline: 12.796875TextNode <#text> (not painted)- BlockContainer <div> at [443.375,24] flex-item [-200+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 5, rect: [443.375,24 36.84375x16] baseline: 12.796875+ BlockContainer <div> at [431.1875,24] 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: 5, rect: [431.1875,24 36.84375x16] baseline: 12.796875"hello"TextNode <#text> (not painted)TextNode <#text> (not painted)- InlineNode <span> at [654.375,27] [0+0+0 30.1875 0+0+0] [0+0+0 16 0+0+0]- frag 0 from TextNode start: 0, length: 3, rect: [654.375,27 30.1875x16] baseline: 12.796875+ InlineNode <span> at [634.0625,27] [0+0+0 30.1875 0+0+0] [0+0+0 16 0+0+0]+ frag 0 from TextNode start: 0, length: 3, rect: [634.0625,27 30.1875x16] baseline: 12.796875"boo"TextNode <#text> (not painted)- TextAreaBox <textarea> at [11,46] inline-block [0+1+2 160 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [11,46] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,46] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ TextAreaBox <textarea> at [11,46] inline-block [0+1+2 155.9375 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [11,46] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,46] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,46 0x13] baseline: 10.390625TextNode <#text> (not painted)- BlockContainer <div> at [11,46] flex-item [-160+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ BlockContainer <div> at [11,46] flex-item [-155.9375+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 5, rect: [11,46 29.921875x13] baseline: 10.390625"hello"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 8685d3e254a..dc54b98b7ab 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@@ -1,44 +1,44 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 126.609375 0+0+0] [BFC] children: not-inline- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 110.609375 0+0+8] children: inline- frag 0 from TextAreaBox start: 0, length: 0, rect: [11,39 240x52] baseline: 58- frag 1 from TextNode start: 0, length: 1, rect: [254,81 8x16] baseline: 12.796875+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 124.546875 0+0+0] [BFC] children: not-inline+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 108.546875 0+0+8] children: inline+ frag 0 from TextAreaBox start: 0, length: 0, rect: [11,36 233.90625x52] baseline: 58+ frag 1 from TextNode start: 0, length: 1, rect: [247.90625,79 8x16] baseline: 12.796875" "- frag 2 from TextInputBox start: 0, length: 0, rect: [265,78 250x16] baseline: 18- frag 3 from TextNode start: 0, length: 1, rect: [518,81 8x16] baseline: 12.796875+ frag 2 from TextInputBox start: 0, length: 0, rect: [258.90625,75 239.84375x16] baseline: 18+ frag 3 from TextNode start: 0, length: 1, rect: [501.75,79 8x16] baseline: 12.796875" "- frag 4 from TextAreaBox start: 0, length: 0, rect: [529,11 65x80] baseline: 86- frag 5 from TextNode start: 0, length: 1, rect: [597,81 8x16] baseline: 12.796875+ frag 4 from TextAreaBox start: 0, length: 0, rect: [512.75,11 65x77.96875] baseline: 83.96875+ frag 5 from TextNode start: 0, length: 1, rect: [580.75,79 8x16] baseline: 12.796875" "- frag 6 from CanvasBox start: 0, length: 0, rect: [605,74 120x20] baseline: 20- frag 7 from BlockContainer start: 0, length: 0, rect: [11,99 150x16] baseline: 18- TextAreaBox <textarea#textarea> at [11,39] inline-block [0+1+2 240 2+1+0] [0+1+2 52 2+1+0] [BFC] children: not-inline- Box <div> at [11,39] flex-container(row) [0+0+0 240 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,39] flex-item [0+0+0 240 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [11,39 0x13] baseline: 10.390625+ frag 6 from CanvasBox start: 0, length: 0, rect: [588.75,71 120x20] baseline: 20+ frag 7 from BlockContainer start: 0, length: 0, rect: [11,97 143.90625x16] baseline: 18+ TextAreaBox <textarea#textarea> at [11,36] inline-block [0+1+2 233.90625 2+1+0] [0+1+2 52 2+1+0] [BFC] children: not-inline+ Box <div> at [11,36] flex-container(row) [0+0+0 233.90625 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,36] flex-item [0+0+0 233.90625 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [11,36 0x13] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)- TextInputBox <input#input> at [265,78] inline-block [0+1+2 250 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [265,78] flex-container(row) [0+0+0 250 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [265,78] flex-item [0+0+0 250 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [265,78 0x16] baseline: 12.796875+ TextInputBox <input#input> at [258.90625,75] inline-block [0+1+2 239.84375 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [258.90625,75] flex-container(row) [0+0+0 239.84375 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [258.90625,75] flex-item [0+0+0 239.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [258.90625,75 0x16] baseline: 12.796875TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea#vertical-textarea> at [529,11] inline-block [0+1+2 65 2+1+0] [0+1+2 80 2+1+0] [BFC] children: not-inline- Box <div> at [529,11] flex-container(row) [0+0+0 65 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [529,11] flex-item [0+0+0 65 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [581,11 13x0] baseline: 10.390625+ TextAreaBox <textarea#vertical-textarea> at [512.75,11] inline-block [0+1+2 65 2+1+0] [0+1+2 77.96875 2+1+0] [BFC] children: not-inline+ Box <div> at [512.75,11] flex-container(row) [0+0+0 65 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [512.75,11] flex-item [0+0+0 65 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [564.75,11 13x0] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)- CanvasBox <canvas#canvas> at [605,74] [0+0+0 120 0+0+0] [0+0+0 20 0+0+0] children: not-inline+ CanvasBox <canvas#canvas> at [588.75,71] [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 [11,99] inline-block [0+1+2 150 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,99] flex-container(row) [0+0+0 150 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,99] flex-item [0+0+0 150 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [11,99 0x16] baseline: 12.796875+ BlockContainer <input#becomes-text> at [11,97] inline-block [0+1+2 143.90625 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,97] flex-container(row) [0+0+0 143.90625 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,97] flex-item [0+0+0 143.90625 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [11,97 0x16] baseline: 12.796875TextNode <#text> (not painted)TextNode <#text> (not painted)TextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)- SC for BlockContainer<HTML> [0,0 800x126.609375] (z-index: auto)+ SC for BlockContainer<HTML> [0,0 800x124.546875] (z-index: auto)diff --git a/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt b/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txtindex c394115b76c..ac2b381e081 100644--- a/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt+++ b/Tests/LibWeb/Layout/expected/input-element-placeholder-position.txt@@ -10,38 +10,38 @@ 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 38 0+0+0] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [19,85.875 200x16] baseline: 27- frag 1 from TextNode start: 0, length: 1, rect: [230,88.875 8x16] baseline: 12.796875+ frag 0 from TextInputBox start: 0, length: 0, rect: [19,85.875 191.875x16] baseline: 27+ frag 1 from TextNode start: 0, length: 1, rect: [221.875,88.875 8x16] baseline: 12.796875" "- frag 2 from TextInputBox start: 0, length: 0, rect: [249,85.875 200x16] baseline: 27- frag 3 from TextNode start: 0, length: 1, rect: [460,88.875 8x16] baseline: 12.796875+ frag 2 from TextInputBox start: 0, length: 0, rect: [240.875,85.875 191.875x16] baseline: 27+ frag 3 from TextNode start: 0, length: 1, rect: [443.75,88.875 8x16] baseline: 12.796875" "- frag 4 from TextInputBox start: 0, length: 0, rect: [479,85.875 200x16] baseline: 27+ frag 4 from TextInputBox start: 0, length: 0, rect: [462.75,85.875 191.875x16] baseline: 27TextNode <#text> (not painted)- TextInputBox <input> at [19,85.875] inline-block [0+1+10 200 10+1+0] [0+1+10 16 10+1+0] [BFC] children: not-inline- Box <div> at [19,85.875] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [19,85.875] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ TextInputBox <input> at [19,85.875] inline-block [0+1+10 191.875 10+1+0] [0+1+10 16 10+1+0] [BFC] children: not-inline+ Box <div> at [19,85.875] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [19,85.875] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [19,85.875 0x16] baseline: 12.796875TextNode <#text> (not painted)- BlockContainer <div> at [19,85.875] flex-item [-200+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ BlockContainer <div> at [19,85.875] flex-item [-191.875+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [19,85.875 87.328125x16] baseline: 12.796875"Empty field"TextNode <#text> (not painted)TextNode <#text> (not painted)- TextInputBox <input> at [249,85.875] inline-block [0+1+10 200 10+1+0] [0+1+10 16 10+1+0] [BFC] children: not-inline- Box <div> at [249,85.875] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [249,85.875] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 12, rect: [249,85.875 81.96875x16] baseline: 12.796875+ TextInputBox <input> at [240.875,85.875] inline-block [0+1+10 191.875 10+1+0] [0+1+10 16 10+1+0] [BFC] children: not-inline+ Box <div> at [240.875,85.875] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [240.875,85.875] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 12, rect: [240.875,85.875 81.96875x16] baseline: 12.796875"Filled field"TextNode <#text> (not painted)TextNode <#text> (not painted)- TextInputBox <input> at [479,85.875] inline-block [0+1+10 200 10+1+0] [0+1+10 16 10+1+0] [BFC] children: not-inline- Box <div> at [479,85.875] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [479,85.875] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [479,85.875 0x16] baseline: 12.796875+ TextInputBox <input> at [462.75,85.875] inline-block [0+1+10 191.875 10+1+0] [0+1+10 16 10+1+0] [BFC] children: not-inline+ Box <div> at [462.75,85.875] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [462.75,85.875] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [462.75,85.875 0x16] baseline: 12.796875TextNode <#text> (not painted)- BlockContainer <div> at [479,85.875] flex-item [-200+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 9, rect: [479,85.875 81.171875x16] baseline: 12.796875+ BlockContainer <div> at [462.75,85.875] flex-item [-191.875+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 9, rect: [462.75,85.875 81.171875x16] baseline: 12.796875"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 8527b68fa19..27b0a561aab 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 37.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 21.203125 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 200x16] baseline: 18- TextInputBox <input> at [11,10] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,10] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 191.875x16] baseline: 18+ TextInputBox <input> at [11,10] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,10] 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 [11,10] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 7, rect: [11,10 55.6875x16] baseline: 12.796875"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 8527b68fa19..27b0a561aab 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 37.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 21.203125 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 200x16] baseline: 18- TextInputBox <input> at [11,10] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,10] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 191.875x16] baseline: 18+ TextInputBox <input> at [11,10] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,10] 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 [11,10] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 7, rect: [11,10 55.6875x16] baseline: 12.796875"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 926b55680b2..b65ceb2c43c 100644--- a/Tests/LibWeb/Layout/expected/input-number-placeholder.txt+++ b/Tests/LibWeb/Layout/expected/input-number-placeholder.txt@@ -1,28 +1,28 @@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 38.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 22.203125 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 200x16] baseline: 19- TextInputBox <input> at [11,10] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 18 0+0+0] [FFC] children: not-inline- Box <div> at [11,11] flex-container(row) flex-item [0+0+0 164 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,11] flex-item [0+0+0 164 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 191.875x16] baseline: 19+ TextInputBox <input> at [11,10] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,10] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 18 0+0+0] [FFC] children: not-inline+ Box <div> at [11,11] flex-container(row) flex-item [0+0+0 155.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,11] flex-item [0+0+0 155.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,11 0x16] baseline: 12.796875TextNode <#text> (not painted)- BlockContainer <div> at [11,11] flex-item [-164+0+0 164 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ BlockContainer <div> at [11,11] flex-item [-155.875+0+0 155.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 6, rect: [11,11 63.0625x16] baseline: 12.796875"Amount"TextNode <#text> (not painted)- BlockContainer <button> at [176,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [176,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <(anonymous)> at [176,11] flex-item [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: [176,11 16x16] baseline: 16- SVGSVGBox <svg> at [176,11] [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 <button> at [167.875,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [167.875,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <(anonymous)> at [167.875,11] flex-item [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: [167.875,11 16x16] baseline: 16+ SVGSVGBox <svg> at [167.875,11] [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] [0+0+0 12 0+0+0] [0+0+0 7.40625 0+0+0] children: not-inline- BlockContainer <button> at [194,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [194,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <(anonymous)> at [194,11] flex-item [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: [194,11 16x16] baseline: 16- SVGSVGBox <svg> at [194,11] [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 <button> at [185.875,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [185.875,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <(anonymous)> at [185.875,11] flex-item [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: [185.875,11 16x16] baseline: 16+ SVGSVGBox <svg> at [185.875,11] [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)diff --git a/Tests/LibWeb/Layout/expected/input-password-to-text.txt b/Tests/LibWeb/Layout/expected/input-password-to-text.txtindex c1dfdff5164..66c426ab6bd 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 37.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 21.203125 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 200x16] baseline: 18- TextInputBox <input> at [11,10] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,10] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 191.875x16] baseline: 18+ TextInputBox <input> at [11,10] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,10] 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 [11,10] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 7, rect: [11,10 61.890625x16] baseline: 12.796875"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 42a199e908b..1769e81e309 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 100 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 84 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 200x80] baseline: 46.296875- frag 1 from TextNode start: 0, length: 4, rect: [214,41 32.140625x16] baseline: 12.796875+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 191.875x80] baseline: 46.296875+ frag 1 from TextNode start: 0, length: 4, rect: [205.875,41 32.140625x16] baseline: 12.796875"text"- TextInputBox <input> at [11,10] inline-block [0+1+2 200 2+1+0] [0+1+1 80 1+1+0] [BFC] children: not-inline- Box <div> at [11,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 80 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,10] flex-item [0+0+0 200 0+0+0] [0+0+0 80 0+0+0] [BFC] children: inline+ TextInputBox <input> at [11,10] inline-block [0+1+2 191.875 2+1+0] [0+1+1 80 1+1+0] [BFC] children: not-inline+ Box <div> at [11,10] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 80 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,10] flex-item [0+0+0 191.875 0+0+0] [0+0+0 80 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,42 0x16] baseline: 12.796875TextNode <#text> (not painted)- BlockContainer <div> at [11,10] flex-item [-200+0+0 200 0+0+0] [0+0+0 80 0+0+0] [BFC] children: inline+ BlockContainer <div> at [11,10] flex-item [-191.875+0+0 191.875 0+0+0] [0+0+0 80 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 11, rect: [11,42 89.90625x16] baseline: 12.796875"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 2930affbf27..10dd27c4542 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 37.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 21.203125 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 200x16] baseline: 18- TextInputBox <input> at [11,10] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,10] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 191.875x16] baseline: 18+ TextInputBox <input> at [11,10] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,10] 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 [11,10] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 7, rect: [11,10 40.90625x16] baseline: 12.796875"●●●●●●●"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 39877a02aeb..fe8da87e962 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@@ -3,15 +3,15 @@ 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 0 0+0+8] children: inlineTextNode <#text> (not painted)BlockContainer <(anonymous)> at [0,0] positioned [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline- BlockContainer <dialog#d> at [297,289.390625] positioned [278+3+16 206 16+3+278] [270.390625+3+16 21.203125 16+3+270.390625] [BFC] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [300,291.390625 200x16] baseline: 18- TextInputBox <input> at [300,291.390625] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [300,291.390625] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [300,291.390625] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [300,291.390625 0x16] baseline: 12.796875+ BlockContainer <dialog#d> at [301.0625,289.390625] positioned [282.0625+3+16 197.875 16+3+282.0625] [270.390625+3+16 21.203125 16+3+270.390625] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [304.0625,291.390625 191.875x16] baseline: 18+ TextInputBox <input> at [304.0625,291.390625] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [304.0625,291.390625] 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 [304.0625,291.390625] 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: [304.0625,291.390625 0x16] baseline: 12.796875TextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)SC for BlockContainer<HTML> [0,0 800x16] (z-index: auto)SC for BlockContainer(anonymous) [0,0 800x600] (z-index: auto)- SC for BlockContainer<DIALOG>#d [297,289.390625 206x21.203125] (z-index: auto)+ SC for BlockContainer<DIALOG>#d [301.0625,289.390625 197.875x21.203125] (z-index: auto)diff --git a/Tests/LibWeb/Layout/expected/letter-spacing-end-of-line-001.txt b/Tests/LibWeb/Layout/expected/letter-spacing-end-of-line-001.txtindex 264f3e0a706..5d4f69fae30 100644--- a/Tests/LibWeb/Layout/expected/letter-spacing-end-of-line-001.txt+++ b/Tests/LibWeb/Layout/expected/letter-spacing-end-of-line-001.txt@@ -8,10 +8,10 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <(anonymous)> at [8,56] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)BlockContainer <div> at [8,56] [0+0+0 784 0+0+0] [0+0+0 48 0+0+0] children: inline- frag 0 from TextNode start: 0, length: 1, rect: [122.0625,56 28.03125x48] baseline: 38.390625+ frag 0 from TextNode start: 0, length: 1, rect: [121.625,56 28.03125x48] baseline: 38.390625"a"- BlockContainer <span> at [8,56] floating [0+0+0 114.0625 0+0+0] [0+0+0 48 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 2, rect: [8,56 114.0625x48] baseline: 38.390625+ BlockContainer <span> at [8,56] floating [0+0+0 113.625 0+0+0] [0+0+0 48 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 2, rect: [8,56 113.625x48] baseline: 38.390625"aa"TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/number-input-appearance.txt b/Tests/LibWeb/Layout/expected/number-input-appearance.txtindex 0166faf1203..ecfcb01c02f 100644--- a/Tests/LibWeb/Layout/expected/number-input-appearance.txt+++ b/Tests/LibWeb/Layout/expected/number-input-appearance.txt@@ -1,58 +1,58 @@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 38.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 22.203125 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 200x16] baseline: 19- frag 1 from TextNode start: 0, length: 1, rect: [214,14 8x16] baseline: 12.796875+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 191.875x16] baseline: 19+ frag 1 from TextNode start: 0, length: 1, rect: [205.875,14 8x16] baseline: 12.796875" "- frag 2 from TextInputBox start: 0, length: 0, rect: [225,10 200x16] baseline: 19- frag 3 from TextNode start: 0, length: 1, rect: [428,14 8x16] baseline: 12.796875+ frag 2 from TextInputBox start: 0, length: 0, rect: [216.875,10 191.875x16] baseline: 19+ frag 3 from TextNode start: 0, length: 1, rect: [411.75,14 8x16] baseline: 12.796875" "- frag 4 from TextInputBox start: 0, length: 0, rect: [439,11 200x16] baseline: 18- TextInputBox <input> at [11,10] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 18 0+0+0] [FFC] children: not-inline- Box <div> at [11,11] flex-container(row) flex-item [0+0+0 164 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,11] flex-item [0+0+0 164 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 4 from TextInputBox start: 0, length: 0, rect: [422.75,11 191.875x16] baseline: 18+ TextInputBox <input> at [11,10] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,10] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 18 0+0+0] [FFC] children: not-inline+ Box <div> at [11,11] flex-container(row) flex-item [0+0+0 155.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,11] flex-item [0+0+0 155.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 1, rect: [11,11 6.34375x16] baseline: 12.796875"1"TextNode <#text> (not painted)- BlockContainer <button> at [176,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [176,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <(anonymous)> at [176,11] flex-item [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: [176,11 16x16] baseline: 16- SVGSVGBox <svg> at [176,11] [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 <button> at [167.875,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [167.875,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <(anonymous)> at [167.875,11] flex-item [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: [167.875,11 16x16] baseline: 16+ SVGSVGBox <svg> at [167.875,11] [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] [0+0+0 12 0+0+0] [0+0+0 7.40625 0+0+0] children: not-inline- BlockContainer <button> at [194,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [194,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <(anonymous)> at [194,11] flex-item [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: [194,11 16x16] baseline: 16- SVGSVGBox <svg> at [194,11] [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 <button> at [185.875,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [185.875,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <(anonymous)> at [185.875,11] flex-item [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: [185.875,11 16x16] baseline: 16+ SVGSVGBox <svg> at [185.875,11] [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)- TextInputBox <input> at [225,10] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [225,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 18 0+0+0] [FFC] children: not-inline- Box <div> at [225,11] flex-container(row) flex-item [0+0+0 164 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [225,11] flex-item [0+0+0 164 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 1, rect: [225,11 8.8125x16] baseline: 12.796875+ TextInputBox <input> at [216.875,10] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [216.875,10] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 18 0+0+0] [FFC] children: not-inline+ Box <div> at [216.875,11] flex-container(row) flex-item [0+0+0 155.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [216.875,11] flex-item [0+0+0 155.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 1, rect: [216.875,11 8.8125x16] baseline: 12.796875"2"TextNode <#text> (not painted)- BlockContainer <button> at [390,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [390,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <(anonymous)> at [390,11] flex-item [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: [390,11 16x16] baseline: 16- SVGSVGBox <svg> at [390,11] [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 <button> at [373.75,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [373.75,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <(anonymous)> at [373.75,11] flex-item [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: [373.75,11 16x16] baseline: 16+ SVGSVGBox <svg> at [373.75,11] [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] [0+0+0 12 0+0+0] [0+0+0 7.40625 0+0+0] children: not-inline- BlockContainer <button> at [408,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [408,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <(anonymous)> at [408,11] flex-item [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: [408,11 16x16] baseline: 16- SVGSVGBox <svg> at [408,11] [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 <button> at [391.75,11] flex-item [0+1+0 16 0+1+0] [0+1+0 16 0+1+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [391.75,11] flex-container(column) [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <(anonymous)> at [391.75,11] flex-item [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: [391.75,11 16x16] baseline: 16+ SVGSVGBox <svg> at [391.75,11] [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)- TextInputBox <input> at [439,11] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [439,11] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- Box <div> at [439,11] flex-container(row) flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [439,11] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 1, rect: [439,11 9.09375x16] baseline: 12.796875+ TextInputBox <input> at [422.75,11] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [422.75,11] flex-container(row) [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ Box <div> at [422.75,11] flex-container(row) flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [422.75,11] 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: 1, rect: [422.75,11 9.09375x16] baseline: 12.796875"3"TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/percentage-font-size.txt b/Tests/LibWeb/Layout/expected/percentage-font-size.txtindex 2a58c45d673..2eefb370fc3 100644--- a/Tests/LibWeb/Layout/expected/percentage-font-size.txt+++ b/Tests/LibWeb/Layout/expected/percentage-font-size.txt@@ -1,6 +1,6 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 89 0+0+0] [BFC] children: not-inline- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 73 0+0+8] children: not-inline+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 88 0+0+0] [BFC] children: not-inline+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 72 0+0+8] children: not-inlineBlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline@@ -9,30 +9,30 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenTextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,24] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- BlockContainer <div> at [8,24] [0+0+0 784 0+0+0] [0+0+0 1 0+0+0] children: inline- frag 0 from TextNode start: 0, length: 1, rect: [8,24 0x1] baseline: 0.796875+ BlockContainer <div> at [8,24] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline+ frag 0 from TextNode start: 0, length: 1, rect: [8,24 0x0] baseline: 0"X"TextNode <#text> (not painted)- BlockContainer <(anonymous)> at [8,25] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline+ BlockContainer <(anonymous)> at [8,24] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- BlockContainer <div> at [8,25] [0+0+0 784 0+0+0] [0+0+0 8 0+0+0] children: inline- frag 0 from TextNode start: 0, length: 1, rect: [8,25 5.78125x8] baseline: 6.40625+ BlockContainer <div> at [8,24] [0+0+0 784 0+0+0] [0+0+0 8 0+0+0] children: inline+ frag 0 from TextNode start: 0, length: 1, rect: [8,24 5.78125x8] baseline: 6.40625"X"TextNode <#text> (not painted)- BlockContainer <(anonymous)> at [8,33] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline+ BlockContainer <(anonymous)> at [8,32] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- BlockContainer <div> at [8,33] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline- frag 0 from TextNode start: 0, length: 1, rect: [8,33 11.5625x16] baseline: 12.796875+ BlockContainer <div> at [8,32] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline+ frag 0 from TextNode start: 0, length: 1, rect: [8,32 11.5625x16] baseline: 12.796875"X"TextNode <#text> (not painted)- BlockContainer <(anonymous)> at [8,49] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline+ BlockContainer <(anonymous)> at [8,48] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- BlockContainer <div> at [8,49] [0+0+0 784 0+0+0] [0+0+0 32 0+0+0] children: inline- frag 0 from TextNode start: 0, length: 1, rect: [8,49 23.125x32] baseline: 25.59375+ BlockContainer <div> at [8,48] [0+0+0 784 0+0+0] [0+0+0 32 0+0+0] children: inline+ frag 0 from TextNode start: 0, length: 1, rect: [8,48 23.125x32] baseline: 25.59375"X"TextNode <#text> (not painted)- BlockContainer <(anonymous)> at [8,81] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline+ BlockContainer <(anonymous)> at [8,80] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)- SC for BlockContainer<HTML> [0,0 800x89] (z-index: auto)+ SC for BlockContainer<HTML> [0,0 800x88] (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 3546426125f..e23f208c745 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@@ -4,10 +4,10 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <(anonymous)> at [8,13] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)BlockContainer <pre> at [8,13] [0+0+0 784 0+0+0] [13+0+0 17.609375 0+0+13] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,15 160x13] baseline: 15- TextInputBox <input> at [11,15] inline-block [0+1+2 160 2+1+0] [0+1+1 13 1+1+0] [BFC] children: not-inline- Box <div> at [11,15] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,15] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,15 155.9375x13] baseline: 15+ TextInputBox <input> at [11,15] inline-block [0+1+2 155.9375 2+1+0] [0+1+1 13 1+1+0] [BFC] children: not-inline+ Box <div> at [11,15] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,15] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,15 0x13] baseline: 10.390625TextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,43.609375] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlinediff --git a/Tests/LibWeb/Layout/expected/tab-size-chars-should-vertically-align.txt b/Tests/LibWeb/Layout/expected/tab-size-chars-should-vertically-align.txtindex f60eb549184..866fd5de510 100644--- a/Tests/LibWeb/Layout/expected/tab-size-chars-should-vertically-align.txt+++ b/Tests/LibWeb/Layout/expected/tab-size-chars-should-vertically-align.txt@@ -2,26 +2,26 @@ 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 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-inlineBlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 13 0+0+0] children: inline- frag 0 from BlockContainer start: 0, length: 0, rect: [8,18 48x0] baseline: 0- frag 1 from TextNode start: 0, length: 2, rect: [56,8 15.59375x13] baseline: 10.390625+ frag 0 from BlockContainer start: 0, length: 0, rect: [8,18 46.78125x0] baseline: 0+ frag 1 from TextNode start: 0, length: 2, rect: [54.78125,8 16.8125x13] baseline: 10.390625" A"- BlockContainer <span#s1> at [8,18] inline-block [0+0+0 48 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline+ BlockContainer <span#s1> at [8,18] inline-block [0+0+0 46.78125 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inlineTextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,21] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)BlockContainer <div> at [8,21] [0+0+0 784 0+0+0] [0+0+0 13 0+0+0] children: inline- frag 0 from BlockContainer start: 0, length: 0, rect: [8,31 56x0] baseline: 0- frag 1 from TextNode start: 0, length: 2, rect: [64,21 59.59375x13] baseline: 10.390625+ frag 0 from BlockContainer start: 0, length: 0, rect: [8,31 54.578125x0] baseline: 0+ frag 1 from TextNode start: 0, length: 2, rect: [62.578125,21 61.015625x13] baseline: 10.390625" A"- BlockContainer <span#s2> at [8,31] inline-block [0+0+0 56 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline+ BlockContainer <span#s2> at [8,31] inline-block [0+0+0 54.578125 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inlineTextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,34] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)BlockContainer <div> at [8,34] [0+0+0 784 0+0+0] [0+0+0 13 0+0+0] children: inline- frag 0 from BlockContainer start: 0, length: 0, rect: [8,44 58.40625x0] baseline: 0- frag 1 from TextNode start: 0, length: 2, rect: [66.40625,34 57.1875x13] baseline: 10.390625+ frag 0 from BlockContainer start: 0, length: 0, rect: [8,44 56.921875x0] baseline: 0+ frag 1 from TextNode start: 0, length: 2, rect: [64.921875,34 58.671875x13] baseline: 10.390625" A"- BlockContainer <span#s3> at [8,44] inline-block [0+0+0 58.40625 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline+ BlockContainer <span#s3> at [8,44] inline-block [0+0+0 56.921875 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inlineTextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,47] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/tab-size-letter-spacing.txt b/Tests/LibWeb/Layout/expected/tab-size-letter-spacing.txtindex 8eb88e9666f..2d54b34ffe3 100644--- a/Tests/LibWeb/Layout/expected/tab-size-letter-spacing.txt+++ b/Tests/LibWeb/Layout/expected/tab-size-letter-spacing.txt@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 29 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 13 0+0+8] children: not-inlineBlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 13 0+0+0] children: inline- frag 0 from TextNode start: 1, length: 1, rect: [8,8 27.59375x13] baseline: 10.390625+ frag 0 from TextNode start: 1, length: 1, rect: [8,8 27.1875x13] baseline: 10.390625"A"TextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,21] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlinediff --git a/Tests/LibWeb/Layout/expected/tab-size-spacing-001.txt b/Tests/LibWeb/Layout/expected/tab-size-spacing-001.txtindex 0713cfae139..08145d44539 100644--- a/Tests/LibWeb/Layout/expected/tab-size-spacing-001.txt+++ b/Tests/LibWeb/Layout/expected/tab-size-spacing-001.txt@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 38.609375 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 22.609375 0+0+8] children: not-inlineBlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline- BlockContainer <div.ref> at [186,10] positioned [176+2+0 16 0+2+0] [0+2+0 16 0+2+0] [BFC] children: not-inline+ BlockContainer <div.ref> at [182.75,10] positioned [172.75+2+0 16 0+2+0] [0+2+0 16 0+2+0] [BFC] children: not-inlineTextNode <#text> (not painted)BlockContainer <div.test> at [8,8] [0+0+0 784 0+0+0] [0+0+0 22.609375 0+0+0] children: inlinefrag 0 from TextNode start: 0, length: 1, rect: [8,17 148x13] baseline: 10.390625@@ -15,4 +15,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 800x38.609375] (z-index: auto)- SC for BlockContainer<DIV>.ref [186,10 16x16] (z-index: -1)+ SC for BlockContainer<DIV>.ref [182.75,10 16x16] (z-index: -1)diff --git a/Tests/LibWeb/Layout/expected/table/baseline-aligned-cell-grows-row.txt b/Tests/LibWeb/Layout/expected/table/baseline-aligned-cell-grows-row.txtindex b9020ad0319..91b1b46b13a 100644--- a/Tests/LibWeb/Layout/expected/table/baseline-aligned-cell-grows-row.txt+++ b/Tests/LibWeb/Layout/expected/table/baseline-aligned-cell-grows-row.txt@@ -1,19 +1,19 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166.203125 0+0+0] [BFC] children: not-inline- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150.203125 0+0+8] children: not-inline- TableWrapper <(anonymous)> at [8,8] [0+0+0 40 0+0+744] [0+0+0 150.203125 0+0+0] [BFC] children: not-inline- Box <table> at [8,8] table-box [0+0+0 40 0+0+0] [0+0+0 150.203125 0+0+0] [TFC] children: not-inline- Box <tbody> at [8,8] table-row-group [0+0+0 40 0+0+0] [0+0+0 150.203125 0+0+0] children: not-inline- Box <tr> at [8,8] table-row [0+0+0 40 0+0+0] [0+0+0 150.203125 0+0+0] children: not-inline- BlockContainer <td> at [8,8] table-cell [0+0+0 20 0+0+0] [0+0+0 50 100.203125+0+0] [BFC] children: not-inline+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 166 0+0+0] [BFC] children: not-inline+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: not-inline+ TableWrapper <(anonymous)> at [8,8] [0+0+0 40 0+0+744] [0+0+0 150 0+0+0] [BFC] children: not-inline+ Box <table> at [8,8] table-box [0+0+0 40 0+0+0] [0+0+0 150 0+0+0] [TFC] children: not-inline+ Box <tbody> at [8,8] table-row-group [0+0+0 40 0+0+0] [0+0+0 150 0+0+0] children: not-inline+ Box <tr> at [8,8] table-row [0+0+0 40 0+0+0] [0+0+0 150 0+0+0] children: not-inline+ BlockContainer <td> at [8,8] table-cell [0+0+0 20 0+0+0] [0+0+0 50 100+0+0] [BFC] children: not-inlineBlockContainer <div> at [8,8] [0+0+0 20 0+0+0] [0+0+0 50 0+0+0] children: not-inline- BlockContainer <td> at [28,38] table-cell [0+0+0 20 0+0+0] [0+0+30 120.203125 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [28,38] [0+0+0 20 0+0+0] [0+0+0 20.203125 0+0+0] children: inline+ BlockContainer <td> at [28,38] table-cell [0+0+0 20 0+0+0] [0+0+30 120 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [28,38] [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] children: inlinefrag 0 from BlockContainer start: 0, length: 0, rect: [28,38 20x20] baseline: 20BlockContainer <span.inline> at [28,38] inline-block [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline- BlockContainer <div.block> at [28,58.203125] [0+0+0 20 0+0+0] [0+0+0 100 0+0+0] children: not-inline- BlockContainer <(anonymous)> at [8,158.203125] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline+ BlockContainer <div.block> at [28,58] [0+0+0 20 0+0+0] [0+0+0 100 0+0+0] children: not-inline+ BlockContainer <(anonymous)> at [8,158] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)- SC for BlockContainer<HTML> [0,0 800x166.203125] (z-index: auto)+ SC for BlockContainer<HTML> [0,0 800x166] (z-index: auto)diff --git a/Tests/LibWeb/Layout/expected/textarea-box-writing-modes.txt b/Tests/LibWeb/Layout/expected/textarea-box-writing-modes.txtindex 88751ed0766..478c878af8d 100644--- a/Tests/LibWeb/Layout/expected/textarea-box-writing-modes.txt+++ b/Tests/LibWeb/Layout/expected/textarea-box-writing-modes.txt@@ -1,43 +1,43 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 185.203125 0+0+0] [BFC] children: not-inline+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 181.140625 0+0+0] [BFC] children: not-inlineBlockContainer <(anonymous)> at [0,0] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 169.203125 0+0+8] children: inline- frag 0 from TextAreaBox start: 0, length: 0, rect: [11,145 160x26] baseline: 32- frag 1 from TextNode start: 0, length: 1, rect: [174,161 8x16] baseline: 12.796875+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 165.140625 0+0+8] children: inline+ frag 0 from TextAreaBox start: 0, length: 0, rect: [11,140 155.9375x26] baseline: 32+ frag 1 from TextNode start: 0, length: 1, rect: [169.9375,157 8x16] baseline: 12.796875" "- frag 2 from TextAreaBox start: 0, length: 0, rect: [185,11 260x160] baseline: 166- frag 3 from TextNode start: 0, length: 1, rect: [448,161 8x16] baseline: 12.796875+ frag 2 from TextAreaBox start: 0, length: 0, rect: [180.9375,11 260x155.9375] baseline: 161.9375+ frag 3 from TextNode start: 0, length: 1, rect: [443.9375,157 8x16] baseline: 12.796875" "- frag 4 from TextAreaBox start: 0, length: 0, rect: [459,145 40x26] baseline: 32- frag 5 from TextNode start: 0, length: 1, rect: [502,161 8x16] baseline: 12.796875+ frag 4 from TextAreaBox start: 0, length: 0, rect: [454.9375,140 38.984375x26] baseline: 32+ frag 5 from TextNode start: 0, length: 1, rect: [496.921875,157 8x16] baseline: 12.796875" "- frag 6 from TextAreaBox start: 0, length: 0, rect: [513,131 26x40] baseline: 46+ frag 6 from TextAreaBox start: 0, length: 0, rect: [507.921875,127 26x38.984375] baseline: 44.984375TextNode <#text> (not painted)- TextAreaBox <textarea> at [11,145] inline-block [0+1+2 160 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [11,145] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,145] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [11,145 0x13] baseline: 10.390625+ TextAreaBox <textarea> at [11,140] inline-block [0+1+2 155.9375 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [11,140] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,140] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [11,140 0x13] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea> at [185,11] inline-block [0+1+2 260 2+1+0] [0+1+2 160 2+1+0] [BFC] children: not-inline- Box <div> at [185,11] flex-container(row) [0+0+0 260 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [185,11] flex-item [0+0+0 260 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [432,11 13x0] baseline: 10.390625+ TextAreaBox <textarea> at [180.9375,11] inline-block [0+1+2 260 2+1+0] [0+1+2 155.9375 2+1+0] [BFC] children: not-inline+ Box <div> at [180.9375,11] flex-container(row) [0+0+0 260 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [180.9375,11] flex-item [0+0+0 260 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [427.9375,11 13x0] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea> at [459,145] inline-block [0+1+2 40 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [459,145] flex-container(row) [0+0+0 40 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [459,145] flex-item [0+0+0 40 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [459,145 0x13] baseline: 10.390625+ TextAreaBox <textarea> at [454.9375,140] inline-block [0+1+2 38.984375 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [454.9375,140] flex-container(row) [0+0+0 38.984375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [454.9375,140] flex-item [0+0+0 38.984375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [454.9375,140 0x13] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea> at [513,131] inline-block [0+1+2 26 2+1+0] [0+1+2 40 2+1+0] [BFC] children: not-inline- Box <div> at [513,131] flex-container(row) [0+0+0 26 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [513,131] flex-item [0+0+0 26 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [526,131 13x0] baseline: 10.390625+ TextAreaBox <textarea> at [507.921875,127] inline-block [0+1+2 26 2+1+0] [0+1+2 38.984375 2+1+0] [BFC] children: not-inline+ Box <div> at [507.921875,127] flex-container(row) [0+0+0 26 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [507.921875,127] flex-item [0+0+0 26 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [520.921875,127 13x0] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)- SC for BlockContainer<HTML> [0,0 800x185.203125] (z-index: auto)+ SC for BlockContainer<HTML> [0,0 800x181.140625] (z-index: auto)diff --git a/Tests/LibWeb/Layout/expected/textarea-height-stretch.txt b/Tests/LibWeb/Layout/expected/textarea-height-stretch.txtindex 8698433ead4..1cb7ac6ad54 100644--- a/Tests/LibWeb/Layout/expected/textarea-height-stretch.txt+++ b/Tests/LibWeb/Layout/expected/textarea-height-stretch.txt@@ -6,27 +6,27 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)Box <div.stretch> at [8,8] flex-container(row) [0+0+0 784 0+0+0] [0+0+0 200 0+0+0] [FFC] children: not-inline- TextAreaBox <textarea> at [11,11] flex-item [0+1+2 160 2+1+0] [0+1+2 194 2+1+0] [BFC] children: not-inline- Box <div> at [11,11] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,11] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ TextAreaBox <textarea> at [11,11] flex-item [0+1+2 155.9375 2+1+0] [0+1+2 194 2+1+0] [BFC] children: not-inline+ Box <div> at [11,11] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,11] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,11 0x13] baseline: 10.390625TextNode <#text> (not painted)BlockContainer <(anonymous)> at [8,208] [0+0+0 784 0+0+0] [0+0+0 139.203125 0+0+0] children: inline- frag 0 from TextAreaBox start: 0, length: 0, rect: [11,211 160x130] baseline: 136- frag 1 from TextNode start: 0, length: 1, rect: [174,331 8x16] baseline: 12.796875+ frag 0 from TextAreaBox start: 0, length: 0, rect: [11,211 155.9375x130] baseline: 136+ frag 1 from TextNode start: 0, length: 1, rect: [169.9375,331 8x16] baseline: 12.796875" "- frag 2 from TextAreaBox start: 0, length: 0, rect: [185,315 480x26] baseline: 32+ frag 2 from TextAreaBox start: 0, length: 0, rect: [180.9375,315 467.8125x26] baseline: 32TextNode <#text> (not painted)- TextAreaBox <textarea> at [11,211] inline-block [0+1+2 160 2+1+0] [0+1+2 130 2+1+0] [BFC] children: not-inline- Box <div> at [11,211] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,211] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ TextAreaBox <textarea> at [11,211] inline-block [0+1+2 155.9375 2+1+0] [0+1+2 130 2+1+0] [BFC] children: not-inline+ Box <div> at [11,211] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,211] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,211 0x13] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)- TextAreaBox <textarea> at [185,315] inline-block [0+1+2 480 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [185,315] flex-container(row) [0+0+0 480 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [185,315] flex-item [0+0+0 480 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [185,315 0x13] baseline: 10.390625+ TextAreaBox <textarea> at [180.9375,315] inline-block [0+1+2 467.8125 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [180.9375,315] flex-container(row) [0+0+0 467.8125 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [180.9375,315] flex-item [0+0+0 467.8125 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [180.9375,315 0x13] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/textarea-placeholder-after-restyle.txt b/Tests/LibWeb/Layout/expected/textarea-placeholder-after-restyle.txtindex 457623bbd37..0d1f68bdbd9 100644--- a/Tests/LibWeb/Layout/expected/textarea-placeholder-after-restyle.txt+++ b/Tests/LibWeb/Layout/expected/textarea-placeholder-after-restyle.txt@@ -1,13 +1,13 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 51.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 35.203125 0+0+8] children: inline- frag 0 from TextAreaBox start: 0, length: 0, rect: [11,11 160x26] baseline: 32- TextAreaBox <textarea#textarea> at [11,11] inline-block [0+1+2 160 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [11,11] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,11] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextAreaBox start: 0, length: 0, rect: [11,11 155.9375x26] baseline: 32+ TextAreaBox <textarea#textarea> at [11,11] inline-block [0+1+2 155.9375 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [11,11] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,11] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [11,11 0x13] baseline: 10.390625TextNode <#text> (not painted)- BlockContainer <div> at [11,11] flex-item [-160+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ BlockContainer <div> at [11,11] flex-item [-155.9375+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 6, rect: [11,11 51.265625x13] baseline: 10.390625"Amount"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/textarea-placeholder-with-text-align.txt b/Tests/LibWeb/Layout/expected/textarea-placeholder-with-text-align.txtindex cf37c9700a7..34f0b325e65 100644--- a/Tests/LibWeb/Layout/expected/textarea-placeholder-with-text-align.txt+++ b/Tests/LibWeb/Layout/expected/textarea-placeholder-with-text-align.txt@@ -1,14 +1,14 @@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 51.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 35.203125 0+0+8] children: inline- frag 0 from TextAreaBox start: 0, length: 0, rect: [11,11 160x26] baseline: 32- TextAreaBox <textarea> at [11,11] inline-block [0+1+2 160 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [11,11] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,11] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 0, rect: [91,11 0x13] baseline: 10.390625+ frag 0 from TextAreaBox start: 0, length: 0, rect: [11,11 155.9375x26] baseline: 32+ TextAreaBox <textarea> at [11,11] inline-block [0+1+2 155.9375 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [11,11] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,11] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 0, rect: [88.96875,11 0x13] baseline: 10.390625TextNode <#text> (not painted)- BlockContainer <div> at [11,11] flex-item [-160+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline- frag 0 from TextNode start: 0, length: 6, rect: [65.359375,11 51.265625x13] baseline: 10.390625+ BlockContainer <div> at [11,11] flex-item [-155.9375+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ frag 0 from TextNode start: 0, length: 6, rect: [63.328125,11 51.265625x13] baseline: 10.390625"Amount"TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/textarea-reset.txt b/Tests/LibWeb/Layout/expected/textarea-reset.txtindex 04dc2ddc19a..08a4d83674b 100644--- a/Tests/LibWeb/Layout/expected/textarea-reset.txt+++ b/Tests/LibWeb/Layout/expected/textarea-reset.txt@@ -2,11 +2,11 @@ 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 51.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 35.203125 0+0+8] children: not-inlineBlockContainer <form#form> at [8,8] [0+0+0 784 0+0+0] [0+0+0 35.203125 0+0+0] children: inline- frag 0 from TextAreaBox start: 0, length: 0, rect: [11,11 160x26] baseline: 32+ frag 0 from TextAreaBox start: 0, length: 0, rect: [11,11 155.9375x26] baseline: 32TextNode <#text> (not painted)- TextAreaBox <textarea#textarea> at [11,11] inline-block [0+1+2 160 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline- Box <div> at [11,11] flex-container(row) [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,11] flex-item [0+0+0 160 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline+ TextAreaBox <textarea#textarea> at [11,11] inline-block [0+1+2 155.9375 2+1+0] [0+1+2 26 2+1+0] [BFC] children: not-inline+ Box <div> at [11,11] flex-container(row) [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [11,11] flex-item [0+0+0 155.9375 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 14, rect: [11,11 88.109375x13] baseline: 10.390625"Original value"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/unicode-password-input.txt b/Tests/LibWeb/Layout/expected/unicode-password-input.txtindex f9ec67e02c4..576be1fe751 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 37.203125 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 21.203125 0+0+8] children: inline- frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 200x16] baseline: 18- TextInputBox <input> at [11,10] inline-block [0+1+2 200 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline- Box <div> at [11,10] flex-container(row) [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [11,10] flex-item [0+0+0 200 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline+ frag 0 from TextInputBox start: 0, length: 0, rect: [11,10 191.875x16] baseline: 18+ TextInputBox <input> at [11,10] inline-block [0+1+2 191.875 2+1+0] [0+1+1 16 1+1+0] [BFC] children: not-inline+ Box <div> at [11,10] 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 [11,10] flex-item [0+0+0 191.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 14, rect: [11,10 81.8125x16] baseline: 12.796875"●●●●●●●●●●●●●●"TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Ref/expected/webkit-line-clamp-layout-edges-ref.html b/Tests/LibWeb/Ref/expected/webkit-line-clamp-layout-edges-ref.htmlindex 9ee7f2bf244..84d0185ece9 100644--- a/Tests/LibWeb/Ref/expected/webkit-line-clamp-layout-edges-ref.html+++ b/Tests/LibWeb/Ref/expected/webkit-line-clamp-layout-edges-ref.html@@ -24,7 +24,7 @@}.justify {- width: 8ch;+ width: 80px;}.justify-no-opportunities {diff --git a/Tests/LibWeb/Ref/input/webkit-line-clamp-layout-edges.html b/Tests/LibWeb/Ref/input/webkit-line-clamp-layout-edges.htmlindex 972246b649d..0c8046d3b22 100644--- a/Tests/LibWeb/Ref/input/webkit-line-clamp-layout-edges.html+++ b/Tests/LibWeb/Ref/input/webkit-line-clamp-layout-edges.html@@ -28,7 +28,7 @@}.justify {- width: 8ch;+ width: 80px;text-align: justify;}diff --git a/Tests/LibWeb/Screenshot/expected/clip-path-transformed.png b/Tests/LibWeb/Screenshot/expected/clip-path-transformed.pngindex 033d64df454..fb31e4349d1 100644Binary files a/Tests/LibWeb/Screenshot/expected/clip-path-transformed.png and b/Tests/LibWeb/Screenshot/expected/clip-path-transformed.png differdiff --git a/Tests/LibWeb/Screenshot/expected/input-placeholder.png b/Tests/LibWeb/Screenshot/expected/input-placeholder.pngindex 99225ee6ee1..58787aa7b67 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/Editing/caret-walk-through-inline-bidi-and-shadow-content.txt b/Tests/LibWeb/Text/expected/Editing/caret-walk-through-inline-bidi-and-shadow-content.txtindex f79bc7286c5..0121667783f 100644--- a/Tests/LibWeb/Text/expected/Editing/caret-walk-through-inline-bidi-and-shadow-content.txt+++ b/Tests/LibWeb/Text/expected/Editing/caret-walk-through-inline-bidi-and-shadow-content.txt@@ -50,14 +50,14 @@ wrap Down #text[0]:4wrap Down #text[0]:8wrap Down #text[0]:14wrap Down #text[0]:19+wrap Down #text[0]:24wrap Down #text[0]:27-wrap Down #text[0]:27+wrap Up #text[0]:19wrap Up #text[0]:14wrap Up #text[0]:8wrap Up #text[0]:4wrap Up #text[0]:0wrap Up #text[0]:0-wrap Up #text[0]:0wrap Home #text[0]:0wrap Home #text[0]:0wrap Home #text[0]:0diff --git a/Tests/LibWeb/Text/expected/abspos-replaced-auto-insets-static-position.txt b/Tests/LibWeb/Text/expected/abspos-replaced-auto-insets-static-position.txtindex 8db99301e86..febdb317cd8 100644--- a/Tests/LibWeb/Text/expected/abspos-replaced-auto-insets-static-position.txt+++ b/Tests/LibWeb/Text/expected/abspos-replaced-auto-insets-static-position.txt@@ -1,5 +1,5 @@-top: 50.203125px+top: 50pxright: 170px-bottom: 109.796875px+bottom: 110pxleft: 70px-offset within containing block: 70,50.203125+offset within containing block: 70,50diff --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 5c138f747de..b3854f5a878 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=[9,9 204x18] (TextInputBox<INPUT>#foo)- [c1 in s1] clip=[11,10 200x16] (BlockContainer<DIV>)- [c2 in s1] clip=[223,9 204x18] (TextInputBox<INPUT>#bar)- [c3 in s1] clip=[225,10 200x16] (BlockContainer<DIV>)+ [c0 in s1] clip=[9,9 196x18] (TextInputBox<INPUT>#foo)+ [c1 in s1] clip=[11,10 192x16] (BlockContainer<DIV>)+ [c2 in s1] clip=[215,9 196x18] (TextInputBox<INPUT>#bar)+ [c3 in s1] clip=[217,10 192x16] (BlockContainer<DIV>)effects:[e0 in s0] effects=[]DisplayList:-FillRect@s1/e0 rect=[8,8 206x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[8,8 206x20] widths=[1,1,1,1] color=rgb(118, 118, 118)+FillRect@s1/e0 rect=[8,8 198x20] color=rgb(255, 255, 255)+FillRoundedRectRing@s1/e0 rect=[8,8 198x20] widths=[1,1,1,1] color=rgb(118, 118, 118)DrawGlyphRun@s1/c1/e0 rect=[11,10 28x16] translation=[11,22.796875] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[214,13 8x16] translation=[214,25.796875] color=rgb(0, 0, 0)-FillRect@s1/e0 rect=[222,8 206x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[222,8 206x20] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c3/e0 rect=[225,10 28x16] translation=[225,22.796875] color=rgb(0, 0, 0)-PaintCaret@s1/c3/e0 rect=[225,10 1x16] color=rgb(0, 0, 0) should_blink=false-FillRoundedRectRing@s1/e0 rect=[220,6 210x24] widths=[2,2,2,2] color=rgb(61, 174, 233)+DrawGlyphRun@s1/e0 rect=[205,13 8x16] translation=[205.875,25.796875] color=rgb(0, 0, 0)+FillRect@s1/e0 rect=[214,8 198x20] color=rgb(255, 255, 255)+FillRoundedRectRing@s1/e0 rect=[214,8 198x20] widths=[1,1,1,1] color=rgb(118, 118, 118)+DrawGlyphRun@s1/c3/e0 rect=[216,10 28x16] translation=[216.875,22.796875] color=rgb(0, 0, 0)+PaintCaret@s1/c3/e0 rect=[217,10 1x16] color=rgb(0, 0, 0) should_blink=false+FillRoundedRectRing@s1/e0 rect=[212,6 202x24] widths=[2,2,2,2] color=rgb(61, 174, 233)diff --git a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txtindex ca31526dbfd..456996f50d2 100644--- a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt+++ b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt@@ -4,23 +4,23 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)clips:- [c0 in s1] clip=[1,1 84x20] (TextAreaBox<TEXTAREA>#ta)+ [c0 in s1] clip=[1,1 81x20] (TextAreaBox<TEXTAREA>#ta)effects:[e0 in s0] effects=[]DisplayList:-FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)+FillRect@s1/e0 rect=[0,0 83x22] color=rgb(255, 255, 255)+FillRoundedRectRing@s1/e0 rect=[0,0 83x22] widths=[1,1,1,1] color=rgb(118, 118, 118)DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[3,3 9x15]]FillRect@s1/c0/e0 rect=[12,3 19x16] color=rgba(101, 2, 0, 0.8)DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[12,3 19x15]]-FillRoundedRectRing@s1/e0 rect=[-2,-2 90x26] widths=[2,2,2,2] color=rgb(61, 174, 233)-DrawLine@s1/e0 from=[81,19] to=[83,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[80,19] to=[83,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[78,19] to=[83,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[77,19] to=[83,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[75,19] to=[83,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[74,19] to=[83,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+FillRoundedRectRing@s1/e0 rect=[-2,-2 87x26] widths=[2,2,2,2] color=rgb(61, 174, 233)+DrawLine@s1/e0 from=[78,19] to=[80,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[77,19] to=[80,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[75,19] to=[80,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[74,19] to=[80,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[72,19] to=[80,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[71,19] to=[80,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=SolidFillRect@s1/e0 rect=[0,25 23x16] color=rgba(101, 2, 0, 0.8)DrawGlyphRun@s1/e0 rect=[0,25 24x16] translation=[0,38] color=rgb(0, 0, 0)@@ -30,22 +30,22 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)clips:- [c0 in s1] clip=[1,1 84x20] (TextAreaBox<TEXTAREA>#ta)+ [c0 in s1] clip=[1,1 81x20] (TextAreaBox<TEXTAREA>#ta)effects:[e0 in s0] effects=[]DisplayList:-FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)+FillRect@s1/e0 rect=[0,0 83x22] color=rgb(255, 255, 255)+FillRoundedRectRing@s1/e0 rect=[0,0 83x22] widths=[1,1,1,1] color=rgb(118, 118, 118)DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[3,3 9x15]]FillRect@s1/c0/e0 rect=[12,3 19x16] color=rgba(16, 16, 16, 0.667)DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[12,3 19x15]]-DrawLine@s1/e0 from=[81,19] to=[83,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[80,19] to=[83,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[78,19] to=[83,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[77,19] to=[83,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[75,19] to=[83,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[74,19] to=[83,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[78,19] to=[80,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[77,19] to=[80,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[75,19] to=[80,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[74,19] to=[80,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[72,19] to=[80,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[71,19] to=[80,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=SolidFillRect@s1/e0 rect=[0,25 23x16] color=rgba(16, 16, 16, 0.667)DrawGlyphRun@s1/e0 rect=[0,25 24x16] translation=[0,38] color=rgb(0, 0, 0)@@ -55,23 +55,23 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)clips:- [c0 in s1] clip=[1,1 84x20] (TextAreaBox<TEXTAREA>#ta)+ [c0 in s1] clip=[1,1 81x20] (TextAreaBox<TEXTAREA>#ta)effects:[e0 in s0] effects=[]DisplayList:-FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)+FillRect@s1/e0 rect=[0,0 83x22] color=rgb(255, 255, 255)+FillRoundedRectRing@s1/e0 rect=[0,0 83x22] widths=[1,1,1,1] color=rgb(118, 118, 118)DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[3,3 9x15]]FillRect@s1/c0/e0 rect=[12,3 19x16] color=rgba(101, 2, 0, 0.8)DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[12,3 19x15]]-FillRoundedRectRing@s1/e0 rect=[-2,-2 90x26] widths=[2,2,2,2] color=rgb(61, 174, 233)-DrawLine@s1/e0 from=[81,19] to=[83,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[80,19] to=[83,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[78,19] to=[83,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[77,19] to=[83,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[75,19] to=[83,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[74,19] to=[83,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+FillRoundedRectRing@s1/e0 rect=[-2,-2 87x26] widths=[2,2,2,2] color=rgb(61, 174, 233)+DrawLine@s1/e0 from=[78,19] to=[80,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[77,19] to=[80,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[75,19] to=[80,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[74,19] to=[80,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[72,19] to=[80,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[71,19] to=[80,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=SolidFillRect@s1/e0 rect=[0,25 23x16] color=rgba(101, 2, 0, 0.8)DrawGlyphRun@s1/e0 rect=[0,25 24x16] translation=[0,38] color=rgb(0, 0, 0)@@ -81,22 +81,22 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)clips:- [c0 in s1] clip=[1,1 84x20] (TextAreaBox<TEXTAREA>#ta)+ [c0 in s1] clip=[1,1 81x20] (TextAreaBox<TEXTAREA>#ta)effects:[e0 in s0] effects=[]DisplayList:-FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)+FillRect@s1/e0 rect=[0,0 83x22] color=rgb(255, 255, 255)+FillRoundedRectRing@s1/e0 rect=[0,0 83x22] widths=[1,1,1,1] color=rgb(118, 118, 118)DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0)PaintCaret@s1/c0/e0 rect=[22,3 1x16] color=rgb(0, 0, 0) should_blink=false-FillRoundedRectRing@s1/e0 rect=[-2,-2 90x26] widths=[2,2,2,2] color=rgb(61, 174, 233)-DrawLine@s1/e0 from=[81,19] to=[83,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[80,19] to=[83,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[78,19] to=[83,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[77,19] to=[83,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[75,19] to=[83,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[74,19] to=[83,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+FillRoundedRectRing@s1/e0 rect=[-2,-2 87x26] widths=[2,2,2,2] color=rgb(61, 174, 233)+DrawLine@s1/e0 from=[78,19] to=[80,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[77,19] to=[80,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[75,19] to=[80,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[74,19] to=[80,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[72,19] to=[80,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[71,19] to=[80,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=SolidDrawGlyphRun@s1/e0 rect=[0,25 24x16] translation=[0,38] color=rgb(0, 0, 0)-- caret, unfocused --@@ -105,20 +105,20 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)clips:- [c0 in s1] clip=[1,1 84x20] (TextAreaBox<TEXTAREA>#ta)+ [c0 in s1] clip=[1,1 81x20] (TextAreaBox<TEXTAREA>#ta)effects:[e0 in s0] effects=[]DisplayList:-FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)+FillRect@s1/e0 rect=[0,0 83x22] color=rgb(255, 255, 255)+FillRoundedRectRing@s1/e0 rect=[0,0 83x22] widths=[1,1,1,1] color=rgb(118, 118, 118)DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0)-DrawLine@s1/e0 from=[81,19] to=[83,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[80,19] to=[83,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[78,19] to=[83,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[77,19] to=[83,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[75,19] to=[83,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[74,19] to=[83,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[78,19] to=[80,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[77,19] to=[80,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[75,19] to=[80,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[74,19] to=[80,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[72,19] to=[80,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[71,19] to=[80,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=SolidDrawGlyphRun@s1/e0 rect=[0,25 24x16] translation=[0,38] color=rgb(0, 0, 0)-- caret, focused again --@@ -127,21 +127,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=[1,1 84x20] (TextAreaBox<TEXTAREA>#ta)+ [c0 in s1] clip=[1,1 81x20] (TextAreaBox<TEXTAREA>#ta)effects:[e0 in s0] effects=[]DisplayList:-FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)+FillRect@s1/e0 rect=[0,0 83x22] color=rgb(255, 255, 255)+FillRoundedRectRing@s1/e0 rect=[0,0 83x22] widths=[1,1,1,1] color=rgb(118, 118, 118)DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0)PaintCaret@s1/c0/e0 rect=[22,3 1x16] color=rgb(0, 0, 0) should_blink=false-FillRoundedRectRing@s1/e0 rect=[-2,-2 90x26] widths=[2,2,2,2] color=rgb(61, 174, 233)-DrawLine@s1/e0 from=[81,19] to=[83,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[80,19] to=[83,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[78,19] to=[83,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[77,19] to=[83,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[75,19] to=[83,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[74,19] to=[83,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+FillRoundedRectRing@s1/e0 rect=[-2,-2 87x26] widths=[2,2,2,2] color=rgb(61, 174, 233)+DrawLine@s1/e0 from=[78,19] to=[80,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[77,19] to=[80,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[75,19] to=[80,14] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[74,19] to=[80,13] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[72,19] to=[80,11] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid+DrawLine@s1/e0 from=[71,19] to=[80,10] color=rgba(0, 0, 0, 0.392) thickness=1 style=SolidDrawGlyphRun@s1/e0 rect=[0,25 24x16] translation=[0,38] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/layout-run-cache-inline-damage.txt b/Tests/LibWeb/Text/expected/layout-run-cache-inline-damage.txtindex 44b67f1542a..6ea05da7675 100644--- a/Tests/LibWeb/Text/expected/layout-run-cache-inline-damage.txt+++ b/Tests/LibWeb/Text/expected/layout-run-cache-inline-damage.txt@@ -1,5 +1,5 @@-after insert: 40x42+after insert: 40x40inserted: 20,20-last: 0,31-after remove: 40x31+last: 0,30+after remove: 40x30last: 30,20diff --git a/Tests/LibWeb/Text/input/HTML/form-image-submission.html b/Tests/LibWeb/Text/input/HTML/form-image-submission.htmlindex f183e113eb0..4f55e48a540 100644--- a/Tests/LibWeb/Text/input/HTML/form-image-submission.html+++ b/Tests/LibWeb/Text/input/HTML/form-image-submission.html@@ -9,6 +9,10 @@margin: 0;padding: 0;}++ input {+ display: block;+ }</style></head>