Skip to content

Truly independent web browser

LibWeb: Size inline parents independently of atomic children

sideshowbarkerab42981c0e0c
diff --git a/Libraries/LibWeb/Rust/src/css/resolved_value.rs b/Libraries/LibWeb/Rust/src/css/resolved_value.rs
index 09daf6eb027..89d3ef5a052 100644
--- a/Libraries/LibWeb/Rust/src/css/resolved_value.rs
+++ b/Libraries/LibWeb/Rust/src/css/resolved_value.rs
@@ -589,7 +589,10 @@ impl ResolvedValueBox<'_> {
property: u16,
size_in_axis: impl FnOnce(FfiCssPixelSize) -> CssPixels,
) -> StyleValueArc {
- if !self.query.svg_sizing_properties_apply || !self.has_used_box(self.node, self.style) {
+ if !self.query.svg_sizing_properties_apply
+ || !self.has_used_box(self.node, self.style)
+ || crate::layout::shell_reads::layout_row_is_fragmented_inline(self.host, self.node)
+ {
return self.computed(property);
}
let used_size = if self.style.box_sizing() == box_sizing::BORDER_BOX {
diff --git a/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs
index eeba8a53991..f0eb734063f 100644
--- a/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs
+++ b/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs
@@ -410,7 +410,6 @@ struct PerLine {
contributions_inline_range: Option<(CssPixels, CssPixels)>,
first_direct_fragment_block_start: Option<CssPixels>,
max_direct_fragment_block_length: CssPixels,
- fallback_block_start_from_contributions: Option<CssPixels>,
interrupting_block: Option<((CssPixels, CssPixels), CandidateLineCorners)>,
first_fragment_index: Option<u32>,
fragment_count: u32,
@@ -423,7 +422,6 @@ impl PerLine {
contributions_inline_range: None,
first_direct_fragment_block_start: None,
max_direct_fragment_block_length: CssPixels::default(),
- fallback_block_start_from_contributions: None,
interrupting_block: None,
first_fragment_index: None,
fragment_count: 0,
@@ -450,13 +448,7 @@ fn ensure_line(per_node: &mut PerNode, line_index: usize) -> &mut PerLine {
&mut per_node.lines[insertion]
}
-fn note_contribution(line: &mut PerLine, inline_start: CssPixels, inline_end: CssPixels, block_start: CssPixels) {
- if line
- .contributions_inline_range
- .is_none_or(|(current_start, _)| inline_start < current_start)
- {
- line.fallback_block_start_from_contributions = Some(block_start);
- }
+fn note_contribution(line: &mut PerLine, inline_start: CssPixels, inline_end: CssPixels) {
line.contributions_inline_range = Some(
line.contributions_inline_range
.map_or((inline_start, inline_end), |(current_start, current_end)| {
@@ -606,11 +598,11 @@ pub(crate) fn compute(
continue;
}
if direct {
- note_contribution(line, inline_start, inline_end, block_start);
- line.first_direct_fragment_block_start.get_or_insert(block_start);
- line.max_direct_fragment_block_length = line.max_direct_fragment_block_length.max(block_length);
- } else if line.fallback_block_start_from_contributions.is_none() {
- line.fallback_block_start_from_contributions = Some(block_start);
+ note_contribution(line, inline_start, inline_end);
+ if !fragment.is_atomic_inline {
+ line.first_direct_fragment_block_start.get_or_insert(block_start);
+ line.max_direct_fragment_block_length = line.max_direct_fragment_block_length.max(block_length);
+ }
}
per_node.first_line_with_content.get_or_insert(line_index);
per_node.last_line_with_content = Some(line_index);
@@ -747,17 +739,7 @@ pub(crate) fn compute(
let style = context.style(node);
let height = line_builder::normal_line_height(style);
let baseline = line_builder::LineBuilder::baseline_for_style(style, height);
- // NB: Line-relative alignment and atomic-only descendants can leave this box without a
- // recorded baseline. In that case, retain the position of its aligned contributions.
- let block_start = if context.line_data().line_boxes[line.line_index]
- .inline_box_baseline(node)
- .is_some()
- {
- inline_box_baseline - baseline
- } else {
- line.fallback_block_start_from_contributions.unwrap_or_default()
- };
- (block_start, height)
+ (inline_box_baseline - baseline, height)
};
let border_inline_start = contributions_inline_start
- if has_low_edge {
@@ -816,7 +798,6 @@ pub(crate) fn compute(
} else {
CssPixels::default()
},
- content_block_start,
);
}
}
diff --git a/Libraries/LibWeb/Rust/src/layout/line_builder.rs b/Libraries/LibWeb/Rust/src/layout/line_builder.rs
index 1fccd31cf18..de42b741c0e 100644
--- a/Libraries/LibWeb/Rust/src/layout/line_builder.rs
+++ b/Libraries/LibWeb/Rust/src/layout/line_builder.rs
@@ -1420,7 +1420,6 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {
line_box_baseline,
)
};
- let own_vertical_shift = new_block_offset - baseline_aligned_block_offset;
if snapshot.style_source != containing_block && self.facts(snapshot.style_source).is_fragmented_inline() {
inline_box_alignments.push(InlineBoxAlignment {
box_: snapshot.style_source,
@@ -1432,7 +1431,10 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {
} else {
self.context().parent_node(snapshot.style_source)
};
- while !own_alignment_is_line_relative
+ // A line-relative child moves independently of its ancestors, but their own baselines still need
+ // their vertical-align offsets for inline geometry and line bounds.
+ let mut enclosing_vertical_shift = CssPixels::default();
+ while (!own_alignment_is_line_relative || snapshot.is_atomic_inline)
&& !ancestor.is_invalid()
&& self.facts(ancestor).is_fragmented_inline()
&& ancestor != containing_block
@@ -1469,7 +1471,10 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {
ancestor_metrics,
line_box_baseline,
);
- new_block_offset += ancestor_vertical_shift;
+ enclosing_vertical_shift += ancestor_vertical_shift;
+ if !own_alignment_is_line_relative {
+ new_block_offset += ancestor_vertical_shift;
+ }
inline_box_alignments.push(InlineBoxAlignment {
box_: ancestor,
vertical_shift: ancestor_vertical_shift,
@@ -1546,9 +1551,9 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {
}
let inline_box_layout_baseline = text_fragment_baseline.or_else(|| {
- snapshot.is_atomic_inline.then_some(
- current_block_offset + line_box_baseline + accumulated_vertical_shift - own_vertical_shift,
- )
+ snapshot
+ .is_atomic_inline
+ .then_some(current_block_offset + line_box_baseline + enclosing_vertical_shift)
});
if let Some(mut inline_box_baseline) = inline_box_layout_baseline {
// https://drafts.csswg.org/css-text-decor-4/#text-line-constancy
@@ -1557,18 +1562,19 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {
// font-variant-position [CSS-FONTS-3], but must not adjust the line position or thickness in
// response to descendants of a decorating box that are so styled.
let mut remaining_vertical_shift = accumulated_vertical_shift;
+ if snapshot.is_atomic_inline {
+ remaining_vertical_shift = enclosing_vertical_shift;
+ }
for alignment in &inline_box_alignments {
- if is_text_node {
- let inserted = self.line_mut(line_index).set_inline_box_baseline(
- alignment.box_,
- inline_box_baseline,
- remaining_vertical_shift,
- );
- // An already recorded box implies its ancestors are recorded as well, since the
- // walk that recorded it continued through them.
- if !inserted {
- break;
- }
+ let inserted = self.line_mut(line_index).set_inline_box_baseline(
+ alignment.box_,
+ inline_box_baseline,
+ remaining_vertical_shift,
+ );
+ // An already recorded box implies its ancestors are recorded as well, since the
+ // walk that recorded it continued through them.
+ if !inserted {
+ break;
}
// https://drafts.csswg.org/css2/#line-height
// The height of each inline-level box in the line box is calculated. For replaced elements,
@@ -1581,12 +1587,22 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {
inline_box_baseline - bounds.ascent,
inline_box_baseline + bounds.descent,
);
- if let Some((root, _)) = aligned_subtree {
+ if let Some((root, alignment)) = self.line_relative_aligned_subtree_root(alignment.box_) {
if let Some(subtree) = aligned_subtrees.iter_mut().find(|subtree| subtree.root == root) {
should_advance_to_line_box_block_end |=
box_start < subtree.block_start || box_end > subtree.block_end;
subtree.block_start = subtree.block_start.min(box_start);
subtree.block_end = subtree.block_end.max(box_end);
+ } else {
+ should_advance_to_line_box_block_end |= box_end - box_start
+ > self.max_block_size_on_current_line.max(containing_style.line_height());
+ aligned_subtrees.push(LineRelativeAlignedSubtree {
+ root,
+ alignment,
+ block_start: box_start,
+ block_end: box_end,
+ shift: CssPixels::default(),
+ });
}
} else {
should_advance_to_line_box_block_end |= box_start < current_block_offset
diff --git a/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-atomic-inline-border-box.txt b/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-atomic-inline-border-box.txt
index a094b253758..43ad5c59d02 100644
--- a/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-atomic-inline-border-box.txt
+++ b/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-atomic-inline-border-box.txt
@@ -1,21 +1,21 @@
-Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x772]
+Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x782]
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [0,0] positioned [0+0+0 400 0+0+0] [0+0+0 400 0+0+0] [BFC] children: not-inline
BlockContainer <div.case> at [20,20] [20+0+0 360 0+0+20] [20+0+0 20 0+0+20] children: inline
- InlineNode <span.host> at [20,30] [0+0+0 28 0+0+0] [0+0+0 0 0+0+0]
+ InlineNode <span.host> at [20,20] [0+0+0 28 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [34,30 0x0] baseline: 10
BlockContainer <span.atomic.empty-padded> at [34,30] inline-block [0+4+10 0 10+4+0] [0+4+6 0 6+4+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [20,30] positioned [0+0+0 28 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [20,20] positioned [0+0+0 28 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline
BlockContainer <div.case> at [20,60] [20+0+0 360 0+0+20] [20+0+0 20 0+0+20] children: inline
- InlineNode <span.host> at [20,65] [0+0+0 10 0+0+0] [0+0+0 0 0+0+0]
+ InlineNode <span.host> at [20,60] [0+0+0 10 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [25,65 0x0] baseline: 5
BlockContainer <span.atomic.border-only> at [25,65] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [20,65] positioned [0+0+0 10 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [20,60] positioned [0+0+0 10 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline
BlockContainer <div.case> at [20,100] [20+0+0 360 0+0+20] [20+0+0 20 0+0+20] children: inline
- InlineNode <span.host> at [20,105] [0+0+0 30 0+0+0] [0+0+0 8 0+0+0]
+ InlineNode <span.host> at [20,100] [0+0+0 30 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [29,105 12x8] baseline: 5
BlockContainer <span.atomic.sized-padded> at [29,105] inline-block [0+2+7 12 7+2+0] [0+2+3 8 3+2+0] [BFC] children: not-inline
- BlockContainer <span.percentage> at [50,100] positioned [0+0+0 30 0+0+0] [0+0+0 8 0+0+0] [BFC] children: not-inline
+ BlockContainer <span.percentage> at [50,100] positioned [0+0+0 30 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline
BlockContainer <div.case> at [20,140] [20+0+0 360 0+0+20] [20+0+0 20 0+0+20] children: inline
InlineNode <span.host> at [20,140] [0+0+0 32.125 0+0+0] [0+0+0 20 0+0+0]
frag 0 from TextNode start: 0, length: 1, rect: [20,140 12.125x20] baseline: 16
@@ -25,84 +25,84 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <span.atomic.mixed> at [39.125,145] inline-block [0+3+4 6 4+3+0] [0+3+2 10 2+3+0] [BFC] children: not-inline
BlockContainer <span.overlay> at [20,140] positioned [0+0+0 32.125 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline
BlockContainer <div.case> at [20,180] [20+0+0 360 0+0+20] [20+0+0 44 0+0+20] children: inline
- InlineNode <span.host> at [20,182] [0+0+0 12 0+0+0] [0+0+0 40 0+0+0]
+ InlineNode <span.host> at [20,180] [0+0+0 12 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [22,182 8x40] baseline: 2
BlockContainer <span.atomic.tall> at [22,182] inline-block [0+2+0 8 0+2+0] [0+2+0 40 0+2+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [20,182] positioned [0+0+0 12 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case> at [20,244] [20+0+0 360 0+0+20] [20+0+0 20 0+0+20] children: inline
- InlineNode <span.host.large-line-height> at [20,249] [0+0+0 10 0+0+0] [0+0+0 0 0+0+0]
+ BlockContainer <span.overlay> at [20,180] positioned [0+0+0 12 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case> at [20,244] [20+0+0 360 0+0+20] [20+0+0 30 0+0+20] children: inline
+ InlineNode <span.host.large-line-height> at [20,249] [0+0+0 10 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [25,249 0x0] baseline: 5
BlockContainer <span.atomic.border-only> at [25,249] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [20,249] positioned [0+0+0 10 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case> at [20,284] [20+0+0 360 0+0+20] [20+0+0 60 0+0+20] children: inline
- InlineNode <span.large-sibling> at [20,294] [0+0+0 30.75 0+0+0] [0+0+0 40 0+0+0]
- frag 0 from TextNode start: 0, length: 1, rect: [20,294 30.75x40] baseline: 32
+ BlockContainer <span.overlay> at [20,249] positioned [0+0+0 10 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case> at [20,294] [20+0+0 360 0+0+20] [20+0+0 60 0+0+20] children: inline
+ InlineNode <span.large-sibling> at [20,304] [0+0+0 30.75 0+0+0] [0+0+0 40 0+0+0]
+ frag 0 from TextNode start: 0, length: 1, rect: [20,304 30.75x40] baseline: 32
"T"
TextNode <#text> (not painted)
- InlineNode <span.host> at [50.75,321] [0+0+0 10 0+0+0] [0+0+0 0 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [55.75,321 0x0] baseline: 10
- BlockContainer <span.atomic.baseline.border-only> at [55.75,321] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [50.75,321] positioned [0+0+0 10 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case.vertical> at [20,364] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline
- InlineNode <span.host> at [35,364] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [35,369 0x0] baseline: 5
- BlockContainer <span.atomic.border-only> at [35,369] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [35,364] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case.vertical> at [20,394] [20+0+0 30 0+0+20] [20+0+0 18 0+0+20] [BFC] children: inline
- InlineNode <span.host> at [29,394] [0+0+0 12 0+0+0] [0+0+0 18 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [29,399 12x8] baseline: 9
- BlockContainer <span.atomic.sized-padded> at [29,399] inline-block [0+2+7 12 7+2+0] [0+2+3 8 3+2+0] [BFC] children: not-inline
- BlockContainer <span.percentage> at [38,412] positioned [0+0+0 12 0+0+0] [0+0+0 18 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case.vertical> at [20,432] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline
- InlineNode <span.host.large-line-height> at [35,432] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [35,437 0x0] baseline: 5
- BlockContainer <span.atomic.border-only> at [35,437] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [35,432] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case.vertical-lr> at [20,462] [20+0+0 30 0+0+20] [20+0+0 18 0+0+20] [BFC] children: inline
- InlineNode <span.host> at [29,462] [0+0+0 12 0+0+0] [0+0+0 18 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [29,467 12x8] baseline: 9
- BlockContainer <span.atomic.sized-padded> at [29,467] inline-block [0+2+7 12 7+2+0] [0+2+3 8 3+2+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [29,462] positioned [0+0+0 12 0+0+0] [0+0+0 18 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case.vertical> at [20,500] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline
- InlineNode <span.host> at [29,500] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [29,505 0x0] baseline: 10
- BlockContainer <span.atomic.baseline.border-only> at [29,505] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [29,500] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case.vertical> at [20,530] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline
- InlineNode <span.host> at [30,530] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [30,535 0x0] baseline: 10.375
- BlockContainer <span.atomic.middle.border-only> at [30,535] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [30,530] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case> at [20,560] [20+0+0 360 0+0+20] [20+0+0 20 0+0+20] children: inline
- InlineNode <span.host> at [20,570] [0+0+0 10 0+0+0] [0+0+0 0 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [25,570 0x0] baseline: 10.375
- BlockContainer <span.atomic.middle.border-only> at [25,570] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [20,570] positioned [0+0+0 10 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case> at [20,600] [20+0+0 360 0+0+20] [20+0+0 40 0+0+20] children: inline
- InlineNode <span.zero-host> at [20,600] [0+0+0 68.5 0+0+0] [0+0+0 40 0+0+0]
- frag 0 from TextNode start: 0, length: 5, rect: [20,600 45.046875x20] baseline: 16
+ InlineNode <span.host> at [50.75,320] [0+0+0 10 0+0+0] [0+0+0 20 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [55.75,331 0x0] baseline: 10
+ BlockContainer <span.atomic.baseline.border-only> at [55.75,331] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [50.75,320] positioned [0+0+0 10 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case.vertical> at [20,374] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline
+ InlineNode <span.host> at [20,374] [0+0+0 20 0+0+0] [0+0+0 10 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [35,379 0x0] baseline: 5
+ BlockContainer <span.atomic.border-only> at [35,379] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [20,374] positioned [0+0+0 20 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case.vertical> at [20,404] [20+0+0 30 0+0+20] [20+0+0 18 0+0+20] [BFC] children: inline
+ InlineNode <span.host> at [30,404] [0+0+0 20 0+0+0] [0+0+0 18 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [29,409 12x8] baseline: 9
+ BlockContainer <span.atomic.sized-padded> at [29,409] inline-block [0+2+7 12 7+2+0] [0+2+3 8 3+2+0] [BFC] children: not-inline
+ BlockContainer <span.percentage> at [30,422] positioned [0+0+0 20 0+0+0] [0+0+0 18 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case.vertical> at [20,442] [20+0+0 30 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline
+ InlineNode <span.host.large-line-height> at [25,442] [0+0+0 20 0+0+0] [0+0+0 10 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [45,447 0x0] baseline: 5
+ BlockContainer <span.atomic.border-only> at [45,447] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [25,442] positioned [0+0+0 20 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case.vertical-lr> at [20,472] [20+0+0 30 0+0+20] [20+0+0 18 0+0+20] [BFC] children: inline
+ InlineNode <span.host> at [30,472] [0+0+0 20 0+0+0] [0+0+0 18 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [29,477 12x8] baseline: 9
+ BlockContainer <span.atomic.sized-padded> at [29,477] inline-block [0+2+7 12 7+2+0] [0+2+3 8 3+2+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [20,472] positioned [0+0+0 20 0+0+0] [0+0+0 18 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case.vertical> at [20,510] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline
+ InlineNode <span.host> at [20,510] [0+0+0 20 0+0+0] [0+0+0 10 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [29,515 0x0] baseline: 10
+ BlockContainer <span.atomic.baseline.border-only> at [29,515] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [20,510] positioned [0+0+0 20 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case.vertical> at [20,540] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline
+ InlineNode <span.host> at [20,540] [0+0+0 20 0+0+0] [0+0+0 10 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [30,545 0x0] baseline: 10.375
+ BlockContainer <span.atomic.middle.border-only> at [30,545] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [20,540] positioned [0+0+0 20 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case> at [20,570] [20+0+0 360 0+0+20] [20+0+0 20 0+0+20] children: inline
+ InlineNode <span.host> at [20,570] [0+0+0 10 0+0+0] [0+0+0 20 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [25,580 0x0] baseline: 10.375
+ BlockContainer <span.atomic.middle.border-only> at [25,580] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [20,570] positioned [0+0+0 10 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case> at [20,610] [20+0+0 360 0+0+20] [20+0+0 40 0+0+20] children: inline
+ InlineNode <span.zero-host> at [20,610] [0+0+0 68.5 0+0+0] [0+0+0 40 0+0+0]
+ frag 0 from TextNode start: 0, length: 5, rect: [20,610 45.046875x20] baseline: 16
"first"
- frag 0 from TextNode start: 0, length: 6, rect: [20,620 68.5x20] baseline: 16
+ frag 0 from TextNode start: 0, length: 6, rect: [20,630 68.5x20] baseline: 16
"second"
TextNode <#text> (not painted)
BreakNode <br> (not painted)
TextNode <#text> (not painted)
- BlockContainer <span.overlay> at [20,600] positioned [0+0+0 68.5 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case.sideways> at [20,660] [20+0+0 24 0+0+20] [20+0+0 24 0+0+20] [BFC] children: inline
- InlineNode <span.host> at [37,660] [0+0+0 0 0+0+0] [0+0+0 24 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [37,665 0x8] baseline: 7
- BlockContainer <span.atomic.asymmetric> at [37,665] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [37,660] positioned [0+0+0 0 0+0+0] [0+0+0 24 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case.sideways-lr> at [20,704] [20+0+0 24 0+0+20] [20+0+0 24 0+0+20] [BFC] children: inline
- InlineNode <span.host> at [37,704] [0+0+0 0 0+0+0] [0+0+0 24 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [37,709 0x8] baseline: 17
- BlockContainer <span.atomic.asymmetric> at [37,709] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [37,704] positioned [0+0+0 0 0+0+0] [0+0+0 24 0+0+0] [BFC] children: not-inline
- BlockContainer <div.case.sideways> at [20,748] [20+0+0 24 0+0+20] [20+0+0 24 0+0+20] [BFC] children: inline
- InlineNode <span.host.large-line-height> at [37,748] [0+0+0 0 0+0+0] [0+0+0 24 0+0+0]
- frag 0 from BlockContainer start: 0, length: 0, rect: [37,753 0x8] baseline: 7
- BlockContainer <span.atomic.asymmetric> at [37,753] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline
- BlockContainer <span.overlay> at [37,748] positioned [0+0+0 0 0+0+0] [0+0+0 24 0+0+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [20,610] positioned [0+0+0 68.5 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case.sideways> at [20,670] [20+0+0 24 0+0+20] [20+0+0 24 0+0+20] [BFC] children: inline
+ InlineNode <span.host> at [24,670] [0+0+0 20 0+0+0] [0+0+0 24 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [37,675 0x8] baseline: 7
+ BlockContainer <span.atomic.asymmetric> at [37,675] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [24,670] positioned [0+0+0 20 0+0+0] [0+0+0 24 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case.sideways-lr> at [20,714] [20+0+0 24 0+0+20] [20+0+0 24 0+0+20] [BFC] children: inline
+ InlineNode <span.host> at [20,714] [0+0+0 20 0+0+0] [0+0+0 24 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [37,719 0x8] baseline: 17
+ BlockContainer <span.atomic.asymmetric> at [37,719] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [20,714] positioned [0+0+0 20 0+0+0] [0+0+0 24 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.case.sideways> at [20,758] [20+0+0 30 0+0+20] [20+0+0 24 0+0+20] [BFC] children: inline
+ InlineNode <span.host.large-line-height> at [25,758] [0+0+0 20 0+0+0] [0+0+0 24 0+0+0]
+ frag 0 from BlockContainer start: 0, length: 0, rect: [43,763 0x8] baseline: 7
+ BlockContainer <span.atomic.asymmetric> at [43,763] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline
+ BlockContainer <span.overlay> at [25,758] positioned [0+0+0 20 0+0+0] [0+0+0 24 0+0+0] [BFC] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x0] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-first-last-line-rule.txt b/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-first-last-line-rule.txt
index 8e88bf5d41f..fe0459a8bc5 100644
--- a/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-first-last-line-rule.txt
+++ b/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-first-last-line-rule.txt
@@ -56,7 +56,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <span.cb> at [231.5625,194] positioned [0+0+0 44.71875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
TextNode <#text> (not painted)
BlockContainer <div.frame> at [8,220] [8+0+0 300 0+0+492] [8+0+0 60 0+0+8] children: inline
- InlineNode <span.rel> at [8,262] [0+0+0 46.875 0+0+0] [0+0+0 60 0+0+0]
+ InlineNode <span.rel> at [8,262] [0+0+0 46.875 0+0+0] [0+0+0 16 0+0+0]
frag 0 from TextNode start: 0, length: 1, rect: [8,262 9.703125x16] baseline: 13
"x"
frag 1 from BlockContainer start: 0, length: 0, rect: [17.703125,220 30x60] baseline: 60
@@ -65,7 +65,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
TextNode <#text> (not painted)
BlockContainer <span> at [17.703125,220] inline-block [0+0+0 30 0+0+0] [0+0+0 60 0+0+0] [BFC] children: not-inline
TextNode <#text> (not painted)
- BlockContainer <span.cb> at [8,262] positioned [0+0+0 46.875 0+0+0] [0+0+0 60 0+0+0] [BFC] children: not-inline
+ BlockContainer <span.cb> at [8,262] positioned [0+0+0 46.875 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
TextNode <#text> (not painted)
TableWrapper <(anonymous)> at [0,288] [0+0+0 204 0+0+596] [0+0+0 20 0+0+0] [BFC] children: not-inline
Box <table> at [0,288] table-box [0+0+0 204 0+0+0] [0+0+0 20 0+0+0] [TFC] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/abspos-static-position-containing-block-inline-situation.txt b/Tests/LibWeb/Layout/expected/abspos-static-position-containing-block-inline-situation.txt
index 9df315aa83d..f3676741dd9 100644
--- a/Tests/LibWeb/Layout/expected/abspos-static-position-containing-block-inline-situation.txt
+++ b/Tests/LibWeb/Layout/expected/abspos-static-position-containing-block-inline-situation.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 16 0+0+0] [BFC] children: inline
- InlineNode <body> at [8,13] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8]
+ InlineNode <body> at [8,0] [8+0+0 0 0+0+8] [8+0+0 16 0+0+8]
frag 0 from BlockContainer start: 0, length: 0, rect: [8,13 0x0] baseline: 0
BlockContainer <main> at [8,13] inline-block [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
BlockContainer <div> at [8,13] positioned [0+0+0 36.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-min-height-box-sizing.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-min-height-box-sizing.txt
index c8f409d78aa..09d0adfec5b 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/button-min-height-box-sizing.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-min-height-box-sizing.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 246 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 230 0+0+8] children: not-inline
BlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 50 0+0+0] children: inline
- InlineNode <span.inline> at [8,18] [0+0+0 26.0625 0+0+0] [0+0+0 30 0+0+0]
+ InlineNode <span.inline> at [8,23] [0+0+0 26.0625 0+0+0] [0+0+0 16 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [18,18 6.0625x30] baseline: 28
BlockContainer <button> at [18,18] inline-block [0+5+5 6.0625 5+5+0] [0+5+5 30 5+5+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [18,18] flex-container(column) [0+0+0 6.0625 0+0+0] [0+0+0 30 0+0+0] [FFC] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/inline-block-vertical-align-middle.txt b/Tests/LibWeb/Layout/expected/block-and-inline/inline-block-vertical-align-middle.txt
index 327275051e3..efdee832f89 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/inline-block-vertical-align-middle.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/inline-block-vertical-align-middle.txt
@@ -1,7 +1,7 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: inline
- InlineNode <span> at [8,49] [0+0+0 135.15625 0+0+0] [0+0+0 100 0+0+0]
+ InlineNode <span> at [8,49] [0+0+0 135.15625 0+0+0] [0+0+0 16 0+0+0]
frag 0 from TextNode start: 0, length: 4, rect: [8,49 35.15625x16] baseline: 13
"foo "
frag 1 from BlockContainer start: 0, length: 0, rect: [43.15625,8 100x100] baseline: 54.296875
diff --git a/Tests/LibWeb/Layout/expected/block-in-inline-in-floated-fieldset.txt b/Tests/LibWeb/Layout/expected/block-in-inline-in-floated-fieldset.txt
index 73bbe70a54a..20876f27a76 100644
--- a/Tests/LibWeb/Layout/expected/block-in-inline-in-floated-fieldset.txt
+++ b/Tests/LibWeb/Layout/expected/block-in-inline-in-floated-fieldset.txt
@@ -11,8 +11,8 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 0 from FieldSetBox start: 0, length: 0, rect: [730.5625,18 59.4375x20] baseline: 16
FieldSetBox <fieldset> at [730.5625,18] inline-block [0+2+0 59.4375 0+2+0] [0+2+0 20 0+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [730.5625,18] [0+0+0 59.4375 0+0+0] [0+0+0 20 0+0+0] children: inline
- InlineNode <p> at [730.5625,21] [0+0+0 59.4375 0+0+0] [0+0+0 16 0+0+0]
- InlineNode <span.actions> at [730.5625,21] [0+0+0 59.4375 0+0+0] [0+0+0 14 0+0+0]
+ InlineNode <p> at [730.5625,19] [0+0+0 59.4375 0+0+0] [0+0+0 16 0+0+0]
+ InlineNode <span.actions> at [730.5625,19] [0+0+0 59.4375 0+0+0] [0+0+0 16 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [739.5625,21 41.4375x14] baseline: 14
BlockContainer <input> at [739.5625,21] [0+2+7 41.4375 7+2+0] [0+2+1 14 1+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [739.5625,21] flex-container(column) [0+0+0 41.4375 0+0+0] [0+0+0 14 0+0+0] [FFC] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/content-image-simple.txt b/Tests/LibWeb/Layout/expected/content-image-simple.txt
index 974b3c9fa50..570e6df0497 100644
--- a/Tests/LibWeb/Layout/expected/content-image-simple.txt
+++ b/Tests/LibWeb/Layout/expected/content-image-simple.txt
@@ -3,7 +3,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 1206 0+0+8] children: not-inline
BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 1206 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,814 400x400] baseline: 400
- InlineNode <(anonymous)> at [8,395] [0+0+0 454.796875 0+0+0] [0+0+0 416 0+0+0]
+ InlineNode <(anonymous)> at [8,395] [0+0+0 454.796875 0+0+0] [0+0+0 419 0+0+0]
frag 0 from GeneratedTextNode start: 0, length: 3, rect: [8,395 27.15625x16] baseline: 13
"foo"
frag 1 from ImageBox start: 0, length: 0, rect: [35.15625,8 400x400] baseline: 400
diff --git a/Tests/LibWeb/Layout/expected/display-table-inline-children.txt b/Tests/LibWeb/Layout/expected/display-table-inline-children.txt
index 01411ef23c6..4f23842fb66 100644
--- a/Tests/LibWeb/Layout/expected/display-table-inline-children.txt
+++ b/Tests/LibWeb/Layout/expected/display-table-inline-children.txt
@@ -5,7 +5,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
Box <div.aligncenter.block-image> at [8,8] table-box [0+0+0 1200 0+0+0] [0+0+0 603 0+0+0] [TFC] children: not-inline
Box <(anonymous)> at [8,8] table-row [0+0+0 1200 0+0+0] [0+0+0 603 0+0+0] children: not-inline
BlockContainer <(anonymous)> at [8,8] table-cell [0+0+0 1200 0+0+0] [0+0+0 603 0+0+0] [BFC] children: inline
- InlineNode <a> at [8,8] [0+0+0 1200 0+0+0] [0+0+0 600 0+0+0]
+ InlineNode <a> at [8,595] [0+0+0 1200 0+0+0] [0+0+0 16 0+0+0]
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 1200x600] baseline: 600
TextNode <#text> (not painted)
ImageBox <img> at [8,8] [0+0+0 1200 0+0+0] [0+0+0 600 0+0+0] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/images-replaced-after-first-layout.txt b/Tests/LibWeb/Layout/expected/images-replaced-after-first-layout.txt
index bc2bf14aed6..2186d49cf6c 100644
--- a/Tests/LibWeb/Layout/expected/images-replaced-after-first-layout.txt
+++ b/Tests/LibWeb/Layout/expected/images-replaced-after-first-layout.txt
@@ -6,7 +6,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
ImageBox <img#image> at [8,8] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: not-inline
TextNode <#text> (not painted)
BlockContainer <div#generated.swapped> at [8,128] [0+0+0 784 0+0+0] [0+0+0 403 0+0+0] children: inline
- InlineNode <(anonymous)> at [8,408] [0+0+0 520 0+0+0] [0+0+0 400 0+0+0]
+ InlineNode <(anonymous)> at [8,515] [0+0+0 520 0+0+0] [0+0+0 16 0+0+0]
frag 0 from ImageBox start: 0, length: 0, rect: [8,408 120x120] baseline: 120
frag 1 from ImageBox start: 0, length: 0, rect: [128,128 400x400] baseline: 400
ImageBox <(anonymous)> at [8,408] [0+0+0 120 0+0+0] [0+0+0 120 0+0+0] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/inline-button-line-height.txt b/Tests/LibWeb/Layout/expected/inline-button-line-height.txt
index 9ae8635683f..6ddef72ddc8 100644
--- a/Tests/LibWeb/Layout/expected/inline-button-line-height.txt
+++ b/Tests/LibWeb/Layout/expected/inline-button-line-height.txt
@@ -32,7 +32,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
" "
frag 1 from TextNode start: 0, length: 1, rect: [128,315 20x20] baseline: 16
" "
- InlineNode <a> at [8,199] [0+0+0 171 0+0+0] [0+0+0 44 0+0+0]
+ InlineNode <a> at [8,209] [0+0+0 171 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [15,199 157x44] baseline: 28
BlockContainer <input.radios--input> at [15,199] inline-block [0+2+5 157 5+2+0] [0+2+0 44 0+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [15,199] flex-container(column) [0+0+0 157 0+0+0] [0+0+0 44 0+0+0] [FFC] children: not-inline
@@ -43,7 +43,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"100ml Limited Edition"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- InlineNode <a> at [8,247] [0+0+0 111 0+0+0] [0+0+0 44 0+0+0]
+ InlineNode <a> at [8,257] [0+0+0 111 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [15,247 97x44] baseline: 28
BlockContainer <input.radios--input> at [15,247] inline-block [0+2+5 97 5+2+0] [0+2+0 44 0+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [15,247] flex-container(column) [0+0+0 97 0+0+0] [0+0+0 44 0+0+0] [FFC] children: not-inline
@@ -54,7 +54,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"Coffret 30ml"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- InlineNode <a> at [139,247] [0+0+0 111 0+0+0] [0+0+0 44 0+0+0]
+ InlineNode <a> at [139,257] [0+0+0 111 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [146,247 97x44] baseline: 28
BlockContainer <input.radios--input> at [146,247] inline-block [0+2+5 97 5+2+0] [0+2+0 44 0+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [146,247] flex-container(column) [0+0+0 97 0+0+0] [0+0+0 44 0+0+0] [FFC] children: not-inline
@@ -65,7 +65,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"Coffret 50ml"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- InlineNode <a> at [8,305] [0+0+0 120 0+0+0] [0+0+0 44 0+0+0]
+ InlineNode <a> at [8,315] [0+0+0 120 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [15,305 106x44] baseline: 38
BlockContainer <input.radios--input> at [15,305] inline-block [0+2+5 106 5+2+0] [10+2+0 44 0+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [15,305] flex-container(column) [0+0+0 106 0+0+0] [0+0+0 44 0+0+0] [FFC] children: not-inline
@@ -76,7 +76,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"Coffret 100ml"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
- InlineNode <a> at [148,305] [0+0+0 149 0+0+0] [0+0+0 44 0+0+0]
+ InlineNode <a> at [148,315] [0+0+0 149 0+0+0] [0+0+0 20 0+0+0]
frag 0 from BlockContainer start: 0, length: 0, rect: [155,305 135x44] baseline: 38
BlockContainer <input.radios--input> at [155,305] inline-block [0+2+5 135 5+2+0] [10+2+0 44 0+2+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [155,305] flex-container(column) [0+0+0 135 0+0+0] [0+0+0 44 0+0+0] [FFC] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/inline-flex-baseline-with-wrapped-hidden-text.txt b/Tests/LibWeb/Layout/expected/inline-flex-baseline-with-wrapped-hidden-text.txt
index 54dbd72a6f3..72bf2a9d405 100644
--- a/Tests/LibWeb/Layout/expected/inline-flex-baseline-with-wrapped-hidden-text.txt
+++ b/Tests/LibWeb/Layout/expected/inline-flex-baseline-with-wrapped-hidden-text.txt
@@ -7,7 +7,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 1 from TextNode start: 0, length: 4, rect: [92.796875,16 38.53125x16] baseline: 13
" qux"
TextNode <#text> (not painted)
- InlineNode <a> at [43.15625,16] [0+0+0 49.640625 0+0+0] [0+0+0 18 0+0+0]
+ InlineNode <a> at [43.15625,16] [0+0+0 49.640625 0+0+0] [0+0+0 16 0+0+0]
frag 0 from TextNode start: 0, length: 3, rect: [43.15625,16 27.640625x16] baseline: 13
"bar"
frag 1 from Box start: 0, length: 0, rect: [74.796875,16 18x18] baseline: 13
diff --git a/Tests/LibWeb/Layout/expected/picture-source-media-query.txt b/Tests/LibWeb/Layout/expected/picture-source-media-query.txt
index db1c84353ed..a629d09cdc1 100644
--- a/Tests/LibWeb/Layout/expected/picture-source-media-query.txt
+++ b/Tests/LibWeb/Layout/expected/picture-source-media-query.txt
@@ -1,7 +1,7 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 419 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 403 0+0+8] children: inline
- InlineNode <picture> at [8,8] [0+0+0 400 0+0+0] [0+0+0 400 0+0+0]
+ InlineNode <picture> at [8,395] [0+0+0 400 0+0+0] [0+0+0 16 0+0+0]
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 400x400] baseline: 400
TextNode <#text> (not painted)
InlineNode <source> at [8,8] [0+0+0 0 0+0+0] [0+0+0 16 0+0+0]
diff --git a/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement-display-types.txt b/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement-display-types.txt
index 408f7c884c4..45c441a0c90 100644
--- a/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement-display-types.txt
+++ b/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement-display-types.txt
@@ -22,11 +22,11 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <div.contents> at [8,76] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline
frag 0 from TextNode start: 0, length: 8, rect: [18,76 70.25x16] baseline: 13
"contents"
- InlineNode <(anonymous)> at [8,79] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0]
+ InlineNode <(anonymous)> at [8,76] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0]
frag 0 from ImageBox start: 0, length: 0, rect: [8,79 10x10] baseline: 10
ImageBox <(anonymous)> at [8,79] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
TextNode <#text> (not painted)
- InlineNode <(anonymous)> at [88.25,79] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0]
+ InlineNode <(anonymous)> at [88.25,76] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0]
frag 0 from ImageBox start: 0, length: 0, rect: [88.25,79 10x10] baseline: 10
ImageBox <(anonymous)> at [88.25,79] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
BlockContainer <div.table> at [8,92] [0+0+0 784 0+0+0] [0+0+0 36 0+0+0] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement.txt b/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement.txt
index d7fe8d53585..d377a7b7d2d 100644
--- a/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement.txt
+++ b/Tests/LibWeb/Layout/expected/pseudo-element-content-replacement.txt
@@ -52,7 +52,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
ImageBox <(anonymous)> at [60.53125,299] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
GeneratedTextNode <(anonymous)> (not painted)
BlockContainer <div.multiple-images> at [8,312] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline
- InlineNode <(anonymous)> at [8,315] [0+0+0 20 0+0+0] [0+0+0 10 0+0+0]
+ InlineNode <(anonymous)> at [8,312] [0+0+0 20 0+0+0] [0+0+0 16 0+0+0]
frag 0 from ImageBox start: 0, length: 0, rect: [8,315 10x10] baseline: 10
frag 1 from ImageBox start: 0, length: 0, rect: [18,315 10x10] baseline: 10
ImageBox <(anonymous)> at [8,315] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/table/inline-table-respects-ancestor-max-width.txt b/Tests/LibWeb/Layout/expected/table/inline-table-respects-ancestor-max-width.txt
index d16f108a0cf..0203a78bc70 100644
--- a/Tests/LibWeb/Layout/expected/table/inline-table-respects-ancestor-max-width.txt
+++ b/Tests/LibWeb/Layout/expected/table/inline-table-respects-ancestor-max-width.txt
@@ -2,7 +2,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 80 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 64 0+0+8] children: not-inline
BlockContainer <div#wrapper> at [8,8] [0+0+0 140 0+0+644] [0+0+0 64 0+0+0] children: inline
- InlineNode <a> at [8,8] [0+0+0 140 0+0+0] [0+0+0 64 0+0+0]
+ InlineNode <a> at [8,8] [0+0+0 140 0+0+0] [0+0+0 16 0+0+0]
frag 0 from TableWrapper start: 0, length: 0, rect: [8,8 140x64] baseline: 13
TableWrapper <(anonymous)> at [8,8] inline-block [0+0+0 140 0+0+0] [0+0+0 64 0+0+0] [BFC] children: not-inline
Box <(anonymous)> at [8,8] inline-table table-box [0+0+0 140 0+0+0] [0+0+0 64 0+0+0] [TFC] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/vertical-align-line-relative-subtrees.txt b/Tests/LibWeb/Layout/expected/vertical-align-line-relative-subtrees.txt
index 06988509c5c..8663032e8b3 100644
--- a/Tests/LibWeb/Layout/expected/vertical-align-line-relative-subtrees.txt
+++ b/Tests/LibWeb/Layout/expected/vertical-align-line-relative-subtrees.txt
@@ -7,7 +7,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 1 from TextNode start: 0, length: 1, rect: [80,0 20x20] baseline: 16
"D"
TextNode <#text> (not painted)
- InlineNode <span.subtree> at [20,24] [0+0+0 60 0+0+0] [0+0+0 40 0+0+0]
+ InlineNode <span.subtree> at [20,24] [0+0+0 60 0+0+0] [0+0+0 20 0+0+0]
frag 0 from TextNode start: 0, length: 1, rect: [20,24 20x20] baseline: 16
"B"
frag 1 from BlockContainer start: 0, length: 0, rect: [40,0 20x40] baseline: 40
diff --git a/Tests/LibWeb/Layout/expected/vertical-align-middle.txt b/Tests/LibWeb/Layout/expected/vertical-align-middle.txt
index 3484016ab7c..c4621fa8629 100644
--- a/Tests/LibWeb/Layout/expected/vertical-align-middle.txt
+++ b/Tests/LibWeb/Layout/expected/vertical-align-middle.txt
@@ -1,7 +1,7 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 66 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 50 0+0+8] children: inline
- InlineNode <a> at [8,24] [0+0+0 91.296875 0+0+0] [0+0+0 50 0+0+0]
+ InlineNode <a> at [8,24] [0+0+0 91.296875 0+0+0] [0+0+0 16 0+0+0]
frag 0 from TextNode start: 0, length: 6, rect: [8,24 41.296875x16] baseline: 13
"inline"
frag 1 from BlockContainer start: 0, length: 0, rect: [49.296875,8 50x50] baseline: 29.296875
diff --git a/Tests/LibWeb/Text/expected/HTML/dimension-attributes.txt b/Tests/LibWeb/Text/expected/HTML/dimension-attributes.txt
index 0c9ae29704f..d7243653d2c 100644
--- a/Tests/LibWeb/Text/expected/HTML/dimension-attributes.txt
+++ b/Tests/LibWeb/Text/expected/HTML/dimension-attributes.txt
@@ -49,12 +49,12 @@ Test embed.vspace = "120." maps to marginTop: 120px
Test embed.vspace = "100" maps to marginBottom: 100px
Test embed.vspace = " 00110 " maps to marginBottom: 110px
Test embed.vspace = "120." maps to marginBottom: 120px
-Test embed.width = "100" maps to width: 0px
-Test embed.width = " 00110 " maps to width: 0px
-Test embed.width = "120." maps to width: 0px
-Test embed.height = "100" maps to height: 16px
-Test embed.height = " 00110 " maps to height: 16px
-Test embed.height = "120." maps to height: 16px
+Test embed.width = "100" maps to width: 100px
+Test embed.width = " 00110 " maps to width: 110px
+Test embed.width = "120." maps to width: 120px
+Test embed.height = "100" maps to height: 100px
+Test embed.height = " 00110 " maps to height: 110px
+Test embed.height = "120." maps to height: 120px
Test tr.height = "100" maps to height: 100px
Test tr.height = " 00110 " maps to height: 110px
Test tr.height = "120." maps to height: 120px
diff --git a/Tests/LibWeb/Text/expected/css/inline-link-image-containing-block.txt b/Tests/LibWeb/Text/expected/css/inline-link-image-containing-block.txt
new file mode 100644
index 00000000000..97c225638b7
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/css/inline-link-image-containing-block.txt
@@ -0,0 +1,8 @@
+inline auto: link=200x16; overlay=200x16, offset=0,0; computed=auto,auto
+image: rect=200x100; computed=200px,100px
+inline lengths: link=200x16; overlay=200x16, offset=0,0; computed=140px,80px
+image: rect=200x100; computed=200px,100px
+inline percentages: link=200x16; overlay=200x16, offset=0,0; computed=50%,50%
+image: rect=200x100; computed=200px,100px
+inline-block: link=200x100; overlay=200x100, offset=0,0; computed=200px,100px
+image: rect=200x100; computed=200px,100px
diff --git a/Tests/LibWeb/Text/expected/css/inline-parent-aligned-atomic-child-line-advance.txt b/Tests/LibWeb/Text/expected/css/inline-parent-aligned-atomic-child-line-advance.txt
new file mode 100644
index 00000000000..df691c2e26c
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/css/inline-parent-aligned-atomic-child-line-advance.txt
@@ -0,0 +1,8 @@
+100px parent top, child top: next=100, height=120
+100px parent top, child bottom: next=100, height=120
+100px parent bottom, child top: next=100, height=120
+100px parent bottom, child bottom: next=100, height=120
+20px parent top, child top: next=40, height=60
+20px parent top, child bottom: next=40, height=60
+20px parent bottom, child top: next=40, height=60
+20px parent bottom, child bottom: next=40, height=60
diff --git a/Tests/LibWeb/Text/expected/css/inline-parent-atomic-child-alignment.txt b/Tests/LibWeb/Text/expected/css/inline-parent-atomic-child-alignment.txt
new file mode 100644
index 00000000000..7dd421107ff
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/css/inline-parent-atomic-child-alignment.txt
@@ -0,0 +1,6 @@
+baseline: parent=120,0; child=80,40
+child raised: parent=140,0; child=80,40
+parent top: parent=120,0; child=80,40
+parent bottom: parent=120,0; child=80,40
+child top: parent=80,0; child=80,40
+child bottom: parent=120,0; child=80,40
diff --git a/Tests/LibWeb/Text/expected/css/inline-parent-atomic-child-geometry.txt b/Tests/LibWeb/Text/expected/css/inline-parent-atomic-child-geometry.txt
new file mode 100644
index 00000000000..872f2b3886b
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/css/inline-parent-atomic-child-geometry.txt
@@ -0,0 +1,8 @@
+static, nested=false, scroll=0: parent=120,0; child=80,40
+static, nested=false, scroll=150: parent=-30,0; child=-70,40
+static, nested=true, scroll=0: parent=120,0; child=80,40
+static, nested=true, scroll=150: parent=-30,0; child=-70,40
+sticky, nested=false, scroll=0: parent=120,0; child=80,40
+sticky, nested=false, scroll=150: parent=10,0; child=-30,40
+sticky, nested=true, scroll=0: parent=120,0; child=80,40
+sticky, nested=true, scroll=150: parent=10,0; child=-30,40
diff --git a/Tests/LibWeb/Text/expected/css/inline-parent-line-relative-child.txt b/Tests/LibWeb/Text/expected/css/inline-parent-line-relative-child.txt
new file mode 100644
index 00000000000..b258af335c8
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/css/inline-parent-line-relative-child.txt
@@ -0,0 +1,12 @@
+relative top 0: parent=0,20; overlay=0,20
+relative top 10: parent=0,20; overlay=0,20
+relative top -10: parent=10,20; overlay=10,20
+relative bottom 0: parent=20,20; overlay=20,20
+relative bottom 10: parent=10,20; overlay=10,20
+relative bottom -10: parent=20,20; overlay=20,20
+static top 0: parent=0,20; overlay=0,40
+static top 10: parent=0,20; overlay=0,40
+static top -10: parent=10,20; overlay=0,40
+static bottom 0: parent=20,20; overlay=0,40
+static bottom 10: parent=10,20; overlay=0,40
+static bottom -10: parent=20,20; overlay=0,40
diff --git a/Tests/LibWeb/Text/expected/css/media-flip-below-the-winner-against-a-cold-copy.txt b/Tests/LibWeb/Text/expected/css/media-flip-below-the-winner-against-a-cold-copy.txt
index 31d2f14d3f2..40308d1f987 100644
--- a/Tests/LibWeb/Text/expected/css/media-flip-below-the-winner-against-a-cold-copy.txt
+++ b/Tests/LibWeb/Text/expected/css/media-flip-below-the-winner-against-a-cold-copy.txt
@@ -28,9 +28,9 @@ logical-rtl, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0p
logical-writing-mode, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|0px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
all-loser, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-both, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
shorthand-loser, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-winner, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
@@ -97,10 +97,10 @@ logical-both, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0p
logical-rtl, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|0px|0px|none|1|none|0s|rtl|
logical-writing-mode, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
-all-loser, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-loser, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-both, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
shorthand-loser, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|2px|0px|none|1|none|0s|ltr|
shorthand-winner, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
@@ -168,9 +168,9 @@ logical-rtl, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|39
logical-writing-mode, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|0px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
all-loser, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-both, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
shorthand-loser, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-winner, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
@@ -297,7 +297,7 @@ revert-in-layer, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0
below-revert, dark without the winner: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
unlayered-winner, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-revert-display, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+revert-display, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert-substituted, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
invalid-at-computed-value, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
inherit, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
@@ -307,10 +307,10 @@ logical-both, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0
logical-rtl, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|0px|2px|0px|0px|none|1|none|0s|rtl|
logical-writing-mode, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|2px|0px|0px|0px|none|1|none|0s|ltr|
-all-loser, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-loser, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-winner, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-both, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|396px|0px|16px|400|2px|2px|2px|0px|none|1|none|0s|ltr|
shorthand-loser, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|396px|0px|16px|400|2px|2px|2px|0px|none|1|none|0s|ltr|
shorthand-winner, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|2px|0px|0px|0px|none|1|none|0s|ltr|
@@ -377,10 +377,10 @@ logical-both, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0
logical-rtl, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|0px|0px|none|1|none|0s|rtl|
logical-writing-mode, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
-all-loser, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-loser, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-both, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
shorthand-loser, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|2px|0px|none|1|none|0s|ltr|
shorthand-winner, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
@@ -517,10 +517,10 @@ logical-both, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0
logical-rtl, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|0px|0px|none|1|none|0s|rtl|
logical-writing-mode, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
-all-loser, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-loser, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-both, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
shorthand-loser, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|2px|0px|none|1|none|0s|ltr|
shorthand-winner, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
@@ -588,9 +588,9 @@ logical-rtl, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)
logical-writing-mode, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|0px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
all-loser, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-both, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
shorthand-loser, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-winner, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
@@ -657,10 +657,10 @@ logical-both, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0
logical-rtl, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|0px|0px|none|1|none|0s|rtl|
logical-writing-mode, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
-all-loser, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-loser, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-both, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
shorthand-loser, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|2px|0px|none|1|none|0s|ltr|
shorthand-winner, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
diff --git a/Tests/LibWeb/Text/expected/css/rule-below-the-winner-against-a-cold-copy.txt b/Tests/LibWeb/Text/expected/css/rule-below-the-winner-against-a-cold-copy.txt
index 40721dc5f98..0d718799659 100644
--- a/Tests/LibWeb/Text/expected/css/rule-below-the-winner-against-a-cold-copy.txt
+++ b/Tests/LibWeb/Text/expected/css/rule-below-the-winner-against-a-cold-copy.txt
@@ -159,12 +159,12 @@ revert, flipped off with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0,
revert, the winner leaving as the flip arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert, the winner arriving as the flip leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert-display, flipped on: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-revert-display, flipped on without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+revert-display, flipped on without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert-display, flipped on with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert-display, flipped off: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert-display, flipped off without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert-display, flipped off with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-revert-display, the winner leaving as the flip arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+revert-display, the winner leaving as the flip arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert-display, the winner arriving as the flip leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert-substituted, flipped on: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
revert-substituted, flipped on without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
@@ -238,22 +238,22 @@ between-logical, flipped off without the winner: as a cold copy, rgb(0, 0, 0)|rg
between-logical, flipped off with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, the winner leaving as the flip arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|2px|0px|0px|0px|none|1|none|0s|ltr|
between-logical, the winner arriving as the flip leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|
-all-loser, flipped on: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-loser, flipped on without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-loser, flipped on with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-loser, flipped on: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-loser, flipped on without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-loser, flipped on with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-loser, flipped off: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-loser, flipped off without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-loser, flipped off with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-loser, the winner leaving as the flip arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-loser, the winner leaving as the flip arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-loser, the winner arriving as the flip leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, flipped on: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, flipped on: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-winner, flipped on without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, flipped on with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, flipped off: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, flipped on with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, flipped off: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-winner, flipped off without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, flipped off with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, flipped off with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-winner, the winner leaving as the flip arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-winner, the winner arriving as the flip leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-winner, the winner arriving as the flip leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, flipped on: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, flipped on without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, flipped on with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
@@ -262,14 +262,14 @@ all-revert, flipped off without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0,
all-revert, flipped off with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, the winner leaving as the flip arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-revert, the winner arriving as the flip leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, flipped on: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, flipped on without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, flipped on with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, flipped off: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, flipped on: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, flipped on without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, flipped on with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, flipped off: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
all-both, flipped off without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, flipped off with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, the winner leaving as the flip arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
-all-both, the winner arriving as the flip leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, flipped off with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, the winner leaving as the flip arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
+all-both, the winner arriving as the flip leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|auto|auto|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|
shorthand-both, flipped on: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
shorthand-both, flipped on without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|396px|0px|16px|400|2px|2px|2px|0px|none|1|none|0s|ltr|
shorthand-both, flipped on with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|
diff --git a/Tests/LibWeb/Text/expected/css/style-engine/restyle-after-class-changes.txt b/Tests/LibWeb/Text/expected/css/style-engine/restyle-after-class-changes.txt
index 6515fdb78ba..845758272a2 100644
--- a/Tests/LibWeb/Text/expected/css/style-engine/restyle-after-class-changes.txt
+++ b/Tests/LibWeb/Text/expected/css/style-engine/restyle-after-class-changes.txt
@@ -1,74 +1,74 @@
add a
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 700 16px 16px block
- SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 700 16px 16px inline
+ SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 700 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px block
- SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px inline
+ SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 3px 16px block
::before rgb(1, 2, 3) normal
add on
DIV.item on: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 700 16px 16px block
- SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 700 16px 16px inline
+ SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 700 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 1px 400 16px 16px block
- SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px inline
+ SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 3px 16px block
::before rgb(1, 2, 3) normal
add before
DIV.item on before: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 700 16px 16px block
- SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 700 16px 16px inline
+ SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 700 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 1px 400 16px 16px block
- SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px inline
+ SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 3px 16px block
::before rgb(9, 8, 7) "x"
insert first
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 700 3px 16px block
DIV.item on before: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px block
- SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 16px 16px inline
+ SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 1px 400 16px 16px block
- SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px inline
+ SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 3px 16px block
::before rgb(1, 2, 3) normal
fill empty
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 700 3px 16px block
DIV.item on before: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px block
- SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 16px 16px inline
+ SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 1px 400 16px 16px block
- SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px inline
+ SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 0px 16px block
- I.: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px inline
+ I.: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 16px inline
::before rgb(1, 2, 3) normal
remove before
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 700 3px 16px block
DIV.item on: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px block
- SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 16px 16px inline
+ SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 1px 400 16px 16px block
- SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px inline
+ SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 16px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 0px 16px block
- I.: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 16px 16px inline
+ I.: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 16px inline
::before rgb(1, 2, 3) normal
inherit
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 700 3px 20px block
DIV.item on: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 20px 20px block
- SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 20px 20px inline
+ SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 auto 20px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 1px 400 20px 20px block
- SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 20px 20px inline
+ SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 20px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 0px 20px block
- I.: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 20px 20px inline
+ I.: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 20px inline
::before rgb(1, 2, 3) normal
hide
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 700 3px 20px block
DIV.item on: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 20px 20px block
- SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 20px 20px inline
+ SPAN.b: rgb(1, 2, 3) rgb(0, 100, 0) 0px 0px 400 auto 20px inline
DIV.item hidden: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 1px 400 auto 20px none
SPAN.c: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 3px 400 auto 20px inline
DIV.item: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 0px 20px block
- I.: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 20px 20px inline
+ I.: rgb(1, 2, 3) rgba(0, 0, 0, 0) 0px 0px 400 auto 20px inline
::before rgb(1, 2, 3) normal
remove a
DIV.item: rgb(0, 0, 0) rgba(0, 0, 0, 0) 0px 0px 700 3px 20px block
DIV.item on: rgb(0, 0, 0) rgba(0, 0, 0, 0) 0px 0px 400 20px 20px block
- SPAN.b: rgb(0, 0, 0) rgba(0, 0, 0, 0) 0px 0px 400 20px 20px inline
+ SPAN.b: rgb(0, 0, 0) rgba(0, 0, 0, 0) 0px 0px 400 auto 20px inline
DIV.item hidden: rgb(0, 0, 0) rgba(0, 0, 0, 0) 0px 1px 400 auto 20px none
SPAN.c: rgb(0, 0, 0) rgba(0, 0, 0, 0) 0px 3px 400 auto 20px inline
DIV.item: rgb(0, 0, 0) rgba(0, 0, 0, 0) 0px 0px 400 0px 20px block
- I.: rgb(0, 0, 0) rgba(0, 0, 0, 0) 0px 0px 400 20px 20px inline
+ I.: rgb(0, 0, 0) rgba(0, 0, 0, 0) 0px 0px 400 auto 20px inline
::before rgb(0, 0, 0) normal
diff --git a/Tests/LibWeb/Text/expected/css/style-engine/restyle-display-change.txt b/Tests/LibWeb/Text/expected/css/style-engine/restyle-display-change.txt
index 7319f992c8c..ff3fd2b2183 100644
--- a/Tests/LibWeb/Text/expected/css/style-engine/restyle-display-change.txt
+++ b/Tests/LibWeb/Text/expected/css/style-engine/restyle-display-change.txt
@@ -1,9 +1,9 @@
block: display=block box=200x16 first=0,3 second=20,3 after.top=16 container.height=21
-inline: display=inline box=40x10 first=0,3 second=20,3 after.top=16 container.height=21
+inline: display=inline box=40x16 first=0,3 second=20,3 after.top=16 container.height=21
none: display=none box=0x0 first=0,0 second=0,0 after.top=0 container.height=5
contents: display=contents box=0x0 first=0,3 second=20,3 after.top=16 container.height=21
block: display=block box=200x16 first=0,3 second=20,3 after.top=16 container.height=21
before appears: display=block box=200x16 first=30,3 second=50,3 after.top=16 container.height=21
-inline with before: display=inline box=70x12 first=30,3 second=50,3 after.top=16 container.height=21
-before goes: display=inline box=40x10 first=0,3 second=20,3 after.top=16 container.height=21
+inline with before: display=inline box=70x16 first=30,3 second=50,3 after.top=16 container.height=21
+before goes: display=inline box=40x16 first=0,3 second=20,3 after.top=16 container.height=21
block again: display=block box=200x16 first=0,3 second=20,3 after.top=16 container.height=21
diff --git a/Tests/LibWeb/Text/expected/css/style-engine/restyle-first-letter.txt b/Tests/LibWeb/Text/expected/css/style-engine/restyle-first-letter.txt
index 3f905a9fe70..10c1cc3b6e1 100644
--- a/Tests/LibWeb/Text/expected/css/style-engine/restyle-first-letter.txt
+++ b/Tests/LibWeb/Text/expected/css/style-engine/restyle-first-letter.txt
@@ -1,4 +1,4 @@
initial: color=rgb(0, 0, 0) font-size=16px width=auto box.height=20 text.left=45
-styled: color=rgb(255, 0, 0) font-size=40px width=23.25px box.height=27 text.left=59
-green: color=rgb(0, 128, 0) font-size=40px width=23.25px box.height=27 text.left=59
+styled: color=rgb(255, 0, 0) font-size=40px width=auto box.height=27 text.left=59
+green: color=rgb(0, 128, 0) font-size=40px width=auto box.height=27 text.left=59
unstyled: color=rgb(0, 0, 0) font-size=16px width=auto box.height=20 text.left=45
diff --git a/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt b/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt
index b7e218678e6..563380f08e9 100644
--- a/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt
+++ b/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt
@@ -7,7 +7,7 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[8,8 300x300] color=rgb(211, 211, 211)
-FillRect@s1/e0 rect=[8,8 100x100] color=rgb(173, 216, 230)
+FillRect@s1/e0 rect=[8,8 100x16] color=rgb(173, 216, 230)
FillRect@s1/e0 rect=[13,13 100x100] color=rgb(255, 127, 80)
DrawGlyphRun@s1/e0 rect=[13,13 65x16] translation=[13,26] color=rgb(0, 0, 0)
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt
index 2c63fc5ad91..6142825db3d 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 354 tests
-350 Pass
-4 Fail
+354 Pass
Pass accent-color
Pass border-collapse
Pass border-spacing
@@ -124,7 +123,7 @@ Pass background-repeat
Pass background-size
Pass baseline-shift
Pass baseline-source
-Fail block-size
+Pass block-size
Pass border-block-end-color
Pass border-block-end-style
Pass border-block-end-width
@@ -215,8 +214,8 @@ Pass grid-row-start
Pass grid-template-areas
Pass grid-template-columns
Pass grid-template-rows
-Fail height
-Fail inline-size
+Pass height
+Pass inline-size
Pass inset-block-end
Pass inset-block-start
Pass inset-inline-end
@@ -352,9 +351,9 @@ Pass view-timeline-inset
Pass view-timeline-name
Pass view-transition-name
Pass white-space-trim
-Fail width
+Pass width
Pass will-change
Pass x
Pass y
Pass z-index
-Pass zoom
\ No newline at end of file
+Pass zoom
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-inline-atomic-child.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-inline-atomic-child.txt
new file mode 100644
index 00000000000..89772ba71e1
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-inline-atomic-child.txt
@@ -0,0 +1,8 @@
+Harness status: OK
+
+Found 3 tests
+
+3 Pass
+Pass getClientRects-inline-atomic-child
+Pass getClientRects-inline-atomic-child 1
+Pass getClientRects-inline-atomic-child 2
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-resolved-min-max-clamping.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-resolved-min-max-clamping.txt
new file mode 100644
index 00000000000..7ee3d952334
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-resolved-min-max-clamping.txt
@@ -0,0 +1,6 @@
+Harness status: OK
+
+Found 1 tests
+
+1 Pass
+Pass Resolved value of width / height when there's no used value isn't clamped by min/max properties
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/picture-aspect-ratio.txt b/Tests/LibWeb/Text/expected/wpt-import/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/picture-aspect-ratio.txt
index 2d52514415a..3380f3a7446 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/picture-aspect-ratio.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/picture-aspect-ratio.txt
@@ -2,11 +2,10 @@ Harness status: OK
Found 15 tests
-13 Pass
-2 Fail
+15 Pass
Pass source width and height attributes are used to infer aspect-ratio in <picture>
-Fail Computed style for width/height/aspect-ratio
-Fail Source width/height should take precedence over img attributes.
+Pass Computed style for width/height/aspect-ratio
+Pass Source width/height should take precedence over img attributes.
Pass Make sure style gets invalidated correctly when the source gets removed.
Pass If the <source> has only one of width/height, we don't get an aspect ratio, even if the <img> has both.
Pass If we don't have width/height on the source, we fall back to width/height on the <img>.
@@ -18,4 +17,4 @@ Pass Percentages on source should be ignored for aspect-ratio but used for width
Pass Trailing garbage should be ignored but not make the attribute invalid
Pass Loaded picture test: Both <source> and <img> are without width and height attributes
Pass Loaded picture test: <source> with width and height attributes, <img> without width and height attributes
-Pass Loaded picture test: Both <source> and <img> are with width and height attributes
\ No newline at end of file
+Pass Loaded picture test: Both <source> and <img> are with width and height attributes
diff --git a/Tests/LibWeb/Text/expected/wpt-import/svg/types/scripted/SVGLength-px.txt b/Tests/LibWeb/Text/expected/wpt-import/svg/types/scripted/SVGLength-px.txt
index b02b42ec186..ddffe8e2b8a 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/svg/types/scripted/SVGLength-px.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/svg/types/scripted/SVGLength-px.txt
@@ -2,15 +2,15 @@ Harness status: OK
Found 10 tests
-7 Pass
-3 Fail
+8 Pass
+2 Fail
Pass SVGLength, converting from 'px' to other units (detached), unitless
Pass SVGLength, converting from 'px' to other units (detached), percentage
Fail SVGLength, converting from 'px' to other units (detached), ems
Fail SVGLength, converting from 'px' to other units (detached), exs
Pass SVGLength, converting from 'px' to other units (detached), cm
Pass SVGLength, converting from 'px' to other units (detached), mm
-Fail SVGLength, converting from 'px' to other units (detached), q
+Pass SVGLength, converting from 'px' to other units (detached), q
Pass SVGLength, converting from 'px' to other units (detached), in
Pass SVGLength, converting from 'px' to other units (detached), pt
-Pass SVGLength, converting from 'px' to other units (detached), pc
\ No newline at end of file
+Pass SVGLength, converting from 'px' to other units (detached), pc
diff --git a/Tests/LibWeb/Text/input/css/inline-link-image-containing-block.html b/Tests/LibWeb/Text/input/css/inline-link-image-containing-block.html
new file mode 100644
index 00000000000..a1cbc09515f
--- /dev/null
+++ b/Tests/LibWeb/Text/input/css/inline-link-image-containing-block.html
@@ -0,0 +1,35 @@
+<!doctype html>
+<style>
+ @font-face { font-family: Ahem; src: url("../../../Ref/data/fonts/Ahem.ttf"); }
+ body { font: 16px/20px Ahem; }
+ .container { width: 400px; height: 300px; }
+ a { position: relative; }
+ img { width: 200px; height: 100px; background: teal; }
+ .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgb(255 0 0 / .5); }
+</style>
+<script src="../include.js"></script>
+<script>
+ promiseTest(async () => {
+ await document.fonts.load("16px Ahem");
+ for (const [label, style] of [
+ ["inline auto", ""],
+ ["inline lengths", "width:140px;height:80px"],
+ ["inline percentages", "width:50%;height:50%"],
+ ["inline-block", "display:inline-block;font-size:0;line-height:0"],
+ ]) {
+ const container = document.body.appendChild(document.createElement("div"));
+ container.className = "container";
+ container.innerHTML = `<a href="#" style="${style}"><img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100'/%3E"><span class="overlay"></span></a>`;
+ const link = container.querySelector("a");
+ const img = container.querySelector("img");
+ const overlay = container.querySelector(".overlay");
+ await img.decode();
+ const linkRect = link.getBoundingClientRect();
+ const overlayRect = overlay.getBoundingClientRect();
+ const computed = getComputedStyle(link);
+ println(`${label}: link=${linkRect.width}x${linkRect.height}; overlay=${overlayRect.width}x${overlayRect.height}, offset=${overlayRect.left - linkRect.left},${overlayRect.top - linkRect.top}; computed=${computed.width},${computed.height}`);
+ println(`image: rect=${img.getBoundingClientRect().width}x${img.getBoundingClientRect().height}; computed=${getComputedStyle(img).width},${getComputedStyle(img).height}`);
+ container.remove();
+ }
+ });
+</script>
diff --git a/Tests/LibWeb/Text/input/css/inline-parent-aligned-atomic-child-line-advance.html b/Tests/LibWeb/Text/input/css/inline-parent-aligned-atomic-child-line-advance.html
new file mode 100644
index 00000000000..ad9642f0acd
--- /dev/null
+++ b/Tests/LibWeb/Text/input/css/inline-parent-aligned-atomic-child-line-advance.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<script src="../include.js"></script>
+<style>
+ @font-face { font-family: Ahem; src: url("../../../Ref/data/fonts/Ahem.ttf"); }
+ .container { font: 20px / 20px Ahem; width: 300px; }
+ .child { display: inline-block; width: 40px; height: 40px; }
+ .next { display: inline-block; width: 20px; height: 20px; vertical-align: top; }
+</style>
+<script>
+ promiseTest(async () => {
+ await document.fonts.load("20px Ahem");
+ for (const parentHeight of [100, 20]) {
+ for (const parentAlignment of ["top", "bottom"]) {
+ for (const childAlignment of ["top", "bottom"]) {
+ const container = document.body.appendChild(document.createElement("div"));
+ container.className = "container";
+ container.innerHTML = `<span style="line-height: ${parentHeight}px; vertical-align: ${parentAlignment}"><span class="child" style="vertical-align: ${childAlignment}"></span></span><br><span class="next"></span>`;
+ const rect = container.getBoundingClientRect();
+ const next = container.querySelector(".next").getBoundingClientRect();
+ println(`${parentHeight}px parent ${parentAlignment}, child ${childAlignment}: next=${next.top - rect.top}, height=${rect.height}`);
+ container.remove();
+ }
+ }
+ }
+ });
+</script>
diff --git a/Tests/LibWeb/Text/input/css/inline-parent-atomic-child-alignment.html b/Tests/LibWeb/Text/input/css/inline-parent-atomic-child-alignment.html
new file mode 100644
index 00000000000..5beb89dc418
--- /dev/null
+++ b/Tests/LibWeb/Text/input/css/inline-parent-atomic-child-alignment.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<style>
+ .scroller { width: 360px; height: 200px; overflow: auto; border: 2px solid; font-size: 0; line-height: 0; }
+ .before { height: 80px; }
+ .holder { height: 500px; }
+ .sticky { position: sticky; top: 10px; }
+ .child { display: inline-block; width: 100px; height: 40px; background: teal; }
+ .after { height: 460px; }
+</style>
+<script src="../include.js"></script>
+<script>
+ test(() => {
+ for (const [label, parentStyle, childStyle] of [
+ ["baseline", "", ""],
+ ["child raised", "", "vertical-align:20px"],
+ ["parent top", "vertical-align:top", ""],
+ ["parent bottom", "vertical-align:bottom", ""],
+ ["child top", "", "vertical-align:top"],
+ ["child bottom", "", "vertical-align:bottom"],
+ ]) {
+ const scroller = document.body.appendChild(document.createElement("div"));
+ scroller.className = "scroller";
+ scroller.innerHTML = '<div class="before"></div><div class="holder">' +
+ `<span class="parent" style="${parentStyle}"><span class="child" style="${childStyle}"></span></span>` +
+ '<div class="after"></div></div>';
+ const origin = scroller.getBoundingClientRect().top + scroller.clientTop;
+ const parentRect = scroller.querySelector(".parent").getBoundingClientRect();
+ const childRect = scroller.querySelector(".child").getBoundingClientRect();
+ println(`${label}: parent=${parentRect.top - origin},${parentRect.height}; child=${childRect.top - origin},${childRect.height}`);
+ scroller.remove();
+ }
+ });
+</script>
diff --git a/Tests/LibWeb/Text/input/css/inline-parent-atomic-child-geometry.html b/Tests/LibWeb/Text/input/css/inline-parent-atomic-child-geometry.html
new file mode 100644
index 00000000000..f3d1093a673
--- /dev/null
+++ b/Tests/LibWeb/Text/input/css/inline-parent-atomic-child-geometry.html
@@ -0,0 +1,32 @@
+<!doctype html>
+<style>
+ .scroller { width: 360px; height: 200px; overflow: auto; border: 2px solid; font-size: 0; line-height: 0; }
+ .before { height: 80px; }
+ .holder { height: 500px; }
+ .sticky { position: sticky; top: 10px; }
+ .child { display: inline-block; width: 100px; height: 40px; background: teal; }
+ .after { height: 460px; }
+</style>
+<script src="../include.js"></script>
+<script>
+ test(() => {
+ for (const position of ["static", "sticky"]) {
+ for (const nested of [false, true]) {
+ const scroller = document.body.appendChild(document.createElement("div"));
+ scroller.className = "scroller";
+ const child = '<span class="child"></span>';
+ scroller.innerHTML = '<div class="before"></div><div class="holder">' +
+ `<span class="parent ${position}">${nested ? `<span>${child}</span>` : child}</span>` +
+ '<div class="after"></div></div>';
+ for (const scrollTop of [0, 150]) {
+ scroller.scrollTop = scrollTop;
+ const origin = scroller.getBoundingClientRect().top + scroller.clientTop;
+ const parentRect = scroller.querySelector(".parent").getBoundingClientRect();
+ const childRect = scroller.querySelector(".child").getBoundingClientRect();
+ println(`${position}, nested=${nested}, scroll=${scrollTop}: parent=${parentRect.top - origin},${parentRect.height}; child=${childRect.top - origin},${childRect.height}`);
+ }
+ scroller.remove();
+ }
+ }
+ });
+</script>
diff --git a/Tests/LibWeb/Text/input/css/inline-parent-line-relative-child.html b/Tests/LibWeb/Text/input/css/inline-parent-line-relative-child.html
new file mode 100644
index 00000000000..7d91a1baacb
--- /dev/null
+++ b/Tests/LibWeb/Text/input/css/inline-parent-line-relative-child.html
@@ -0,0 +1,30 @@
+<!doctype html>
+<style>
+ @font-face { font-family: Ahem; src: url("../../../Ref/data/fonts/Ahem.ttf"); }
+ .case { position: relative; font: 20px/20px Ahem; width: 200px; }
+ .child { display: inline-block; width: 30px; height: 40px; }
+ .overlay { position: absolute; inset: 0; }
+</style>
+<script src="../include.js"></script>
+<script>
+ promiseTest(async () => {
+ await document.fonts.load("20px Ahem");
+ for (const positioned of [true, false]) {
+ for (const alignment of ["top", "bottom"]) {
+ for (const shift of [0, 10, -10]) {
+ const container = document.body.appendChild(document.createElement("div"));
+ container.className = "case";
+ const position = positioned ? "relative" : "static";
+ container.innerHTML = `X<span class="parent" style="vertical-align:${shift}px;position:${position}"><span class="child" style="vertical-align:${alignment}"></span><span class="overlay"></span></span>`;
+ const origin = container.getBoundingClientRect().top;
+ const rect = selector => {
+ const r = container.querySelector(selector).getBoundingClientRect();
+ return `${r.top - origin},${r.height}`;
+ };
+ println(`${position} ${alignment} ${shift}: parent=${rect(".parent")}; overlay=${rect(".overlay")}`);
+ container.remove();
+ }
+ }
+ }
+ });
+</script>
diff --git a/Tests/LibWeb/Text/input/hit_testing/pointer-events.html b/Tests/LibWeb/Text/input/hit_testing/pointer-events.html
index 5916450b5f7..ce97dd47047 100644
--- a/Tests/LibWeb/Text/input/hit_testing/pointer-events.html
+++ b/Tests/LibWeb/Text/input/hit_testing/pointer-events.html
@@ -46,7 +46,7 @@
printHit(c2, 50, 50);
printHit(d4, 10, 8);
printHit(e1, 50, 50);
- printHit(f1, 15, 15);
+ printHit(f1, 15, 5);
printHit(g1, 5, 5);
});
</script>
diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-inline-atomic-child.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-inline-atomic-child.html
new file mode 100644
index 00000000000..974de8c590a
--- /dev/null
+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-inline-atomic-child.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>
+inline-block {
+ display: inline-block;
+ height: 100px;
+}
+</style>
+<body>
+ <div>
+ <span class="target">
+ <inline-block></inline-block>
+ </span>
+ </div>
+ <div>
+ <span class="target">
+ <span>
+ <inline-block></inline-block>
+ </span>
+ </span>
+ </div>
+ <div>
+ <span class="target">
+ <span>
+ <span>
+ <inline-block></inline-block>
+ </span>
+ </span>
+ </span>
+ </div>
+<script>
+for (let element of document.getElementsByClassName('target')) {
+ let rects = element.getClientRects();
+ test(() => {
+ assert_equals(rects.length, 1);
+ for (let rect of rects)
+ assert_not_equals(rect.height, 100);
+ });
+}
+</script>
+</body>
diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom/getComputedStyle-resolved-min-max-clamping.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom/getComputedStyle-resolved-min-max-clamping.html
new file mode 100644
index 00000000000..ae095bb6214
--- /dev/null
+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom/getComputedStyle-resolved-min-max-clamping.html
@@ -0,0 +1,38 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>CSSOM: resolved values of the width and height when the element generates no box or are a non-replaced inline aren't clamped by min-width / max-width</title>
+<link rel="help" href="https://drafts.csswg.org/cssom/#resolved-value">
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:[email protected]">
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<script src=../../resources/testharness.js></script>
+<script src=../../resources/testharnessreport.js></script>
+<span id="non-replaced-inline"></span>
+<div id="display-none" style="display: none"></div>
+<div id="display-contents" style="display: contents"></div>
+<script>
+test(function() {
+ for (const e of document.querySelectorAll("[id]")) {
+ const cs = getComputedStyle(e);
+ for (const prop of ["width", "height"]) {
+ e.style.setProperty("min-" + prop, "10px");
+ e.style.setProperty("max-" + prop, "50px");
+
+ e.style.setProperty(prop, "10%");
+ assert_equals(cs[prop], "10%", `${e.id}: ${prop} with percentages returns percentages`);
+
+ e.style.setProperty(prop, "15px");
+ assert_equals(cs[prop], "15px", `${e.id}: ${prop} with value in range returns computed value`);
+
+ e.style.setProperty(prop, "1px");
+ assert_equals(cs[prop], "1px", `${e.id}: ${prop} with value out of range isn't clamped by min-${prop}`);
+
+ e.style.setProperty(prop, "60px");
+ assert_equals(cs[prop], "60px", `${e.id}: ${prop} with value out of range isn't clamped by max-${prop}`);
+
+ e.style.removeProperty(prop);
+ e.style.removeProperty("min-" + prop);
+ e.style.removeProperty("max-" + prop);
+ }
+ }
+}, "Resolved value of width / height when there's no used value isn't clamped by min/max properties");
+</script>