Skip to content

Truly independent web browser

LibWeb: Stop recording hit-test items

Aliaksandr Kalenik7c8ba756cf39
diff --git a/Libraries/LibWeb/Rust/src/painting/ffi/main_thread_entries.rs b/Libraries/LibWeb/Rust/src/painting/ffi/main_thread_entries.rs
index 8db89708e46..5bdc9a89764 100644
--- a/Libraries/LibWeb/Rust/src/painting/ffi/main_thread_entries.rs
+++ b/Libraries/LibWeb/Rust/src/painting/ffi/main_thread_entries.rs
@@ -681,9 +681,8 @@ fn take_recorder_for_recording(
recording.take_recorder()
}
-/// What freezing the frame of `host`'s document's `viewport` for a recording with `inputs` reads.
+/// What freezing the frame of a document's `viewport` for a recording with `inputs` reads.
fn frame_inputs(
- host: &crate::render_state::DocumentHost,
viewport: NodeSlotId,
inputs: &crate::painting::host::FfiRecordingInputs,
recorder: &crate::painting::record::recorder_state::RecorderState,
@@ -696,7 +695,6 @@ fn frame_inputs(
.published_recording
.as_ref()
.map(|recording| recording.root_background_canvas_rect),
- hit_test_item_capacity_hint: host.recording().hit_test_item_capacity_hint(),
}
}
@@ -715,7 +713,7 @@ pub unsafe extern "C" fn render_state_record_display_list(
inputs: crate::painting::host::FfiRecordingInputs,
) -> FfiRecordingStart {
let recorder = take_recorder_for_recording(host, read);
- let frame_inputs = frame_inputs(host, viewport, &inputs, &recorder);
+ let frame_inputs = frame_inputs(viewport, &inputs, &recorder);
// SAFETY: The host lends the input arrays and buffers for this call, and the inputs copy what they read of them.
let inputs = unsafe { inputs.recording_inputs() };
let Some(frame) = read_arena(
@@ -791,7 +789,7 @@ pub unsafe extern "C" fn render_state_commit_recorded_frame(
) {
let recorder = take_recorder_for_recording(host, read);
let content = crate::render_state::CommittedContent::Recording {
- frame_inputs: frame_inputs(host, viewport, &inputs, &recorder),
+ frame_inputs: frame_inputs(viewport, &inputs, &recorder),
// SAFETY: The host lends the input arrays and buffers for this call, and the inputs copy what they read of them.
inputs: unsafe { inputs.recording_inputs() },
};
@@ -891,8 +889,8 @@ pub unsafe extern "C" fn render_state_take_finished_recording_in(
let landing = host.recording().take_finished_recording_in(
&boundary,
|rows_version| landed_recording_stands(host, rows_version),
- &mut |output, hit_test_list_changed, publishes_recording| {
- take_in_presented_recording(host, output, hit_test_list_changed, publishes_recording);
+ &mut |output, publishes_recording| {
+ take_in_presented_recording(host, output, publishes_recording);
},
);
recording_landing(landing, presented_other_scroll_offsets)
@@ -907,8 +905,8 @@ pub extern "C" fn render_state_join_recording_in_flight(
) -> FfiRecordingLanding {
let landing = host.recording().join_recording_in_flight(
|rows_version| landed_recording_stands(host, rows_version),
- &mut |output, hit_test_list_changed, publishes_recording| {
- take_in_presented_recording(host, output, hit_test_list_changed, publishes_recording);
+ &mut |output, publishes_recording| {
+ take_in_presented_recording(host, output, publishes_recording);
},
);
recording_landing(landing, presented_other_scroll_offsets)
@@ -918,13 +916,11 @@ pub extern "C" fn render_state_join_recording_in_flight(
fn take_in_presented_recording(
host: &crate::render_state::DocumentHost,
output: std::sync::Arc<crate::painting::record::RecordingOutput>,
- hit_test_list_changed: bool,
publishes_recording: bool,
) {
host.queue_change(crate::render_state::ArenaChange::Paint(
crate::painting::paint_changes::PaintChange::TakeInRecording {
output,
- hit_test_list_changed,
publishes_recording,
},
));
@@ -970,8 +966,8 @@ fn give_back(
given_back.is_some_and(|presentation| presentation.presented_other_scroll_offsets());
}
-/// Whether the rows of `host`'s document are still at `version`, so that the hit-test list of a recording that landed
-/// with a frame frozen there still stands for it. The recording dropped its frame and the lease it held, so the style
+/// Whether the rows of `host`'s document are still at `version`, so that a recording that landed with a frame frozen
+/// there shows what a hit test of the rows finds. The recording dropped its frame and the lease it held, so the style
/// engine frees what it kept for that lease here too, however idle the document stays.
fn landed_recording_stands(host: &crate::render_state::DocumentHost, version: crate::layout::RowsVersion) -> bool {
// A frame in flight, or a round that flew and is not paid yet, writes the rows, which then stand for no recording
@@ -1054,8 +1050,7 @@ fn tree_as_the_query_reads_it<'tree>(
#[unsafe(no_mangle)]
pub extern "C" fn layout_hit_test_list_generation(host: &crate::render_state::DocumentHost) -> u64 {
- let mut recording = host.recording();
- recording.hit_test_list().as_ref().map_or(0, |list| list.generation)
+ host.recording().hit_test_items_generation()
}
/// The DOM node a hit on the paintable dispatches events to.
diff --git a/Libraries/LibWeb/Rust/src/painting/hit_test/mod.rs b/Libraries/LibWeb/Rust/src/painting/hit_test/mod.rs
index 7814294952c..9a304e31750 100644
--- a/Libraries/LibWeb/Rust/src/painting/hit_test/mod.rs
+++ b/Libraries/LibWeb/Rust/src/painting/hit_test/mod.rs
@@ -119,13 +119,10 @@ pub fn spatial_index_cell_key(x: i32, y: i32) -> u64 {
((x as u32 as u64) << 32) | (y as u32 as u64)
}
+/// Every hit-test item of a document in paint order, walked from its rows, with spatial indexes for point queries.
#[derive(Default)]
pub struct HitTestList {
- pub generation: u64,
- /// The structural epoch of the visual context tree the items were recorded against, whose nodes they name.
- pub recorded_structural_epoch: u64,
pub items: Arc<Vec<HitTestItem>>,
- pub item_capacity_hint_from_previous_list: usize,
/// Point queries read only the spatial indexes, which are built on first use.
pub spatial_indexes_built: bool,
pub spatial_indexes_by_context: Vec<(ContextRef, SpatialIndex)>,
@@ -133,33 +130,6 @@ pub struct HitTestList {
}
impl HitTestList {
- pub fn append(&mut self, item: HitTestItem) {
- assert!(
- !self.spatial_indexes_built,
- "hit-test item appended after the spatial indexes were built"
- );
- let items = Arc::make_mut(&mut self.items);
- if items.capacity() == 0 {
- items.reserve(self.item_capacity_hint_from_previous_list);
- }
- items.push(item);
- }
-
- pub(crate) fn append_copies_of(&mut self, source: &[HitTestItem]) {
- assert!(
- !self.spatial_indexes_built,
- "hit-test item appended after the spatial indexes were built"
- );
- if source.is_empty() {
- return;
- }
- let items = Arc::make_mut(&mut self.items);
- if items.capacity() == 0 {
- items.reserve(self.item_capacity_hint_from_previous_list.max(source.len()));
- }
- items.extend_from_slice(source);
- }
-
pub(crate) fn build_spatial_indexes_if_needed(&mut self) {
if self.spatial_indexes_built {
return;
diff --git a/Libraries/LibWeb/Rust/src/painting/ink_overflow.rs b/Libraries/LibWeb/Rust/src/painting/ink_overflow.rs
index 59b55a9c55e..831f04df3d7 100644
--- a/Libraries/LibWeb/Rust/src/painting/ink_overflow.rs
+++ b/Libraries/LibWeb/Rust/src/painting/ink_overflow.rs
@@ -593,7 +593,7 @@ impl crate::layout::LayoutNodeArena {
return;
}
let start = verification.report.then(std::time::Instant::now);
- let state = PublishedPaintState::new(self.paint_state(), 0);
+ let state = PublishedPaintState::new(self.paint_state());
let recalculated = self.recalculate_requested_ink_overflow(&state);
if !verification.enabled {
return;
diff --git a/Libraries/LibWeb/Rust/src/painting/paint_changes.rs b/Libraries/LibWeb/Rust/src/painting/paint_changes.rs
index e2e7b595a14..f2375843eb7 100644
--- a/Libraries/LibWeb/Rust/src/painting/paint_changes.rs
+++ b/Libraries/LibWeb/Rust/src/painting/paint_changes.rs
@@ -124,7 +124,6 @@ pub(crate) enum PaintChange {
/// The host published the recording `output` and takes it in as the document's last.
TakeInRecording {
output: Arc<super::record::RecordingOutput>,
- hit_test_list_changed: bool,
publishes_recording: bool,
},
}
@@ -244,10 +243,9 @@ impl PaintChange {
}
Self::TakeInRecording {
output,
- hit_test_list_changed,
publishes_recording,
} => {
- super::record::publish::take_in_recording(arena, output, hit_test_list_changed, publishes_recording);
+ super::record::publish::take_in_recording(arena, output, publishes_recording);
}
}
}
diff --git a/Libraries/LibWeb/Rust/src/painting/paint_state.rs b/Libraries/LibWeb/Rust/src/painting/paint_state.rs
index 11c64152cef..cfd3d72eecd 100644
--- a/Libraries/LibWeb/Rust/src/painting/paint_state.rs
+++ b/Libraries/LibWeb/Rust/src/painting/paint_state.rs
@@ -32,7 +32,6 @@ pub struct PaintState {
pub(crate) trace_recordings: bool,
pub(crate) visual_context: crate::painting::visual_context::VisualContextState,
pub(crate) root_background_source: Option<crate::painting::host::RootBackgroundSource>,
- pub(crate) hit_test_list_generation: u64,
pub(crate) last_recording: Option<Arc<crate::painting::record::RecordingOutput>>,
/// The selection, shared with the frames published while it holds.
pub(crate) selection: Option<Arc<SelectionRange>>,
diff --git a/Libraries/LibWeb/Rust/src/painting/published_frame.rs b/Libraries/LibWeb/Rust/src/painting/published_frame.rs
index 41fad2429b8..9da5af1a56f 100644
--- a/Libraries/LibWeb/Rust/src/painting/published_frame.rs
+++ b/Libraries/LibWeb/Rust/src/painting/published_frame.rs
@@ -174,9 +174,6 @@ pub(crate) struct PublishedPaintState {
pub(crate) spelling_error_pseudo_styles: Arc<SelectionPseudoStyles>,
pub(crate) custom_highlights: Arc<CustomHighlights>,
pub(crate) custom_highlight_pseudo_styles: Arc<CustomHighlightPseudoStyles>,
- pub(crate) hit_test_list_generation: u64,
- /// How many items the document's hit-test list held, which the recording's list reserves.
- pub(crate) hit_test_item_capacity_hint: usize,
}
impl PublishedPaintState {
@@ -200,7 +197,7 @@ impl PublishedPaintState {
}
}
- pub(crate) fn new(paint_state: &PaintState, hit_test_item_capacity_hint: usize) -> Self {
+ pub(crate) fn new(paint_state: &PaintState) -> Self {
let visual_context = &paint_state.visual_context;
Self {
visual_context_tree: visual_context.tree.clone(),
@@ -218,8 +215,6 @@ impl PublishedPaintState {
spelling_error_pseudo_styles: paint_state.spelling_error_pseudo_styles.clone(),
custom_highlights: paint_state.custom_highlights.clone(),
custom_highlight_pseudo_styles: paint_state.custom_highlight_pseudo_styles.clone(),
- hit_test_list_generation: paint_state.hit_test_list_generation,
- hit_test_item_capacity_hint,
}
}
@@ -257,15 +252,14 @@ const _: () = {
};
impl LayoutNodeArena {
- /// What the next recording reads of the document, as it is now. The host says how many items
- /// the recording's hit-test list may hold.
- pub(crate) fn freeze_frame(&mut self, hit_test_item_capacity_hint: usize) -> PublishedFrame {
+ /// What the next recording reads of the document, as it is now.
+ pub(crate) fn freeze_frame(&mut self) -> PublishedFrame {
self.settle_ink_overflow();
let rows = self.publish_rows();
PublishedFrame {
rows,
damage: self.paint_damage_for_frame(),
- paint_state: PublishedPaintState::new(self.paint_state(), hit_test_item_capacity_hint),
+ paint_state: PublishedPaintState::new(self.paint_state()),
_style_records: self.with_style_store(|engine| engine.lease_style_records()),
}
}
@@ -377,7 +371,7 @@ mod tests {
arena.set_node_flag(slots[3], NodeFlag::Anonymous, true);
arena.write_shape(slots[4]).set_generated_for(1);
- let frame = arena.freeze_frame(0);
+ let frame = arena.freeze_frame();
let absolute_rects = RefCell::new(AbsoluteRectMemo::default());
let source = PaintSource::new(&frame, &absolute_rects);
for &node in &slots {
diff --git a/Libraries/LibWeb/Rust/src/painting/record/assemble.rs b/Libraries/LibWeb/Rust/src/painting/record/assemble.rs
index 01daf73fade..c9f02b6dcc3 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/assemble.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/assemble.rs
@@ -28,24 +28,23 @@ pub(crate) struct ScopePlan {
pub items: SmallVec<[PaintOrderItem; 16]>,
}
-/// A box phase in paint order is up to three producers: its hit-test items, the scroll
-/// metadata recorded with the background, and its commands. An SVG root paints its
-/// background, border and then all of its content as one producer.
-pub(crate) fn producer_kinds(producer: PaintProducer) -> SmallVec<[ProducerKind; 5]> {
+/// A box phase in paint order is up to two producers: the scroll metadata recorded with the
+/// background, and its commands. An SVG root paints its background, border and then all of its
+/// content as one producer. What a hit test finds where a box paints nothing is no producer: hit
+/// testing walks the rows.
+pub(crate) fn producer_kinds(producer: PaintProducer) -> SmallVec<[ProducerKind; 4]> {
use ProducerKind::*;
match producer {
- PaintProducer::BoxPhase(PaintPhase::Background) => {
- smallvec::smallvec![HitBackground, ScrollMetadata, DrawBackground]
- }
+ PaintProducer::BoxPhase(PaintPhase::Background) => smallvec::smallvec![ScrollMetadata, DrawBackground],
PaintProducer::BoxPhase(PaintPhase::Border) => smallvec::smallvec![DrawBorder],
PaintProducer::BoxPhase(PaintPhase::TableCollapsedBorder) => smallvec::smallvec![DrawTableCollapsedBorder],
- PaintProducer::BoxPhase(PaintPhase::Foreground) => smallvec::smallvec![HitForeground, DrawForeground],
+ PaintProducer::BoxPhase(PaintPhase::Foreground) => smallvec::smallvec![DrawForeground],
PaintProducer::BoxPhase(PaintPhase::Outline) => smallvec::smallvec![DrawOutline],
- PaintProducer::BoxPhase(PaintPhase::Overlay) => smallvec::smallvec![HitOverlay, DrawOverlay],
- PaintProducer::SvgRoot => smallvec::smallvec![HitBackground, ScrollMetadata, DrawBackground, DrawBorder, Svg],
+ PaintProducer::BoxPhase(PaintPhase::Overlay) => smallvec::smallvec![DrawOverlay],
+ PaintProducer::SvgRoot => smallvec::smallvec![ScrollMetadata, DrawBackground, DrawBorder, Svg],
PaintProducer::SvgBoxForeground => smallvec::smallvec![Svg],
PaintProducer::ScopePreamble => smallvec::smallvec![ScopePreamble],
- PaintProducer::ForegroundHitTest => smallvec::smallvec![HitForeground],
+ PaintProducer::ForegroundHitTest => SmallVec::new(),
PaintProducer::ForegroundCommands => smallvec::smallvec![DrawForeground],
PaintProducer::InlinePiece(index) => smallvec::smallvec![InlinePiece(index)],
PaintProducer::TextFragment(index) => smallvec::smallvec![TextFragment(index)],
@@ -80,12 +79,10 @@ pub(crate) enum AssemblyEvent {
ProducerCopied(NodeSlotId, ProducerKind),
}
-/// The end of the output being assembled: command bytes, hit-test items and blocking wheel
-/// regions so far.
+/// The end of the output being assembled: command bytes and blocking wheel regions so far.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
pub(crate) struct OutputPosition {
pub bytes: u32,
- pub hits: u32,
pub blocking_wheel_event_regions: u32,
}
@@ -98,8 +95,8 @@ pub(crate) trait AssemblyHost {
fn output_position(&self) -> OutputPosition;
- /// Appends the published recording's command bytes and hit-test items in the given ranges.
- fn copy_published(&mut self, bytes: Range<u32>, hits: Range<u32>, blocking_wheel_event_regions: u32);
+ /// Appends the published recording's command bytes in the given range.
+ fn copy_published(&mut self, bytes: Range<u32>, blocking_wheel_event_regions: u32);
/// Every damaged row, including the rows of subtrees whose root moved.
fn damaged_rows(&mut self) -> Vec<NodeSlotId>;
@@ -115,17 +112,15 @@ pub(crate) trait AssemblyHost {
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
struct SourceCursor {
bytes: u32,
- hits: u32,
}
impl SourceCursor {
fn advance(&mut self, output: OutputSize) {
self.bytes += output.bytes;
- self.hits += output.hits;
}
}
-// Consecutive clean children are copied with one range append each for commands and items.
+// Consecutive clean children are copied with one range append.
#[derive(Clone, Copy)]
struct PendingCopy {
start: SourceCursor,
@@ -197,10 +192,7 @@ impl<'a, H: AssemblyHost> Assembler<'a, H> {
Some(prologue_bytes)
if !published_root.is_none() && self.tree.read().scope_of(published_root) == root_scope =>
{
- let cursor = SourceCursor {
- bytes: prologue_bytes,
- hits: 0,
- };
+ let cursor = SourceCursor { bytes: prologue_bytes };
let entry = self.assemble_scope(published_root, cursor);
self.flush_pending_copy();
if let Some(tree) = self.tree.rewrites() {
@@ -474,7 +466,6 @@ impl<'a, H: AssemblyHost> Assembler<'a, H> {
let after = self.host.output_position();
let output = OutputSize {
bytes: after.bytes - before.bytes,
- hits: after.hits - before.hits,
blocking_wheel_event_regions: after.blocking_wheel_event_regions - before.blocking_wheel_event_regions,
live: outcome.live,
reads_window_focus: outcome.reads_window_focus,
@@ -511,7 +502,6 @@ impl<'a, H: AssemblyHost> Assembler<'a, H> {
};
self.host.copy_published(
pending.start.bytes..pending.end.bytes,
- pending.start.hits..pending.end.hits,
pending.blocking_wheel_event_regions,
);
}
@@ -520,13 +510,9 @@ impl<'a, H: AssemblyHost> Assembler<'a, H> {
#[cfg(test)]
mod tests {
use super::*;
- use crate::css::css_pixels::CssPixelRect;
- use crate::painting::border_radii::BorderRadii;
use crate::painting::display_list::builder::RecordedDisplayList;
- use crate::painting::display_list::commands::ContextRef;
use crate::painting::display_list::recorder::DisplayListRecorder;
use crate::painting::force_dark::ForceDarkRole;
- use crate::painting::hit_test::{HitTestItem, HitTestItemKind, HitTestList};
use crate::painting::paint_order_plan::StackingContextPaintPhase;
use libgfx_rust::{Color, IntRect};
use std::collections::{HashMap, HashSet};
@@ -561,16 +547,14 @@ mod tests {
#[derive(Clone, Copy)]
struct Content {
rects: u32,
- hits: u32,
version: u8,
live: bool,
blocking: u32,
}
- fn content(rects: u32, hits: u32) -> Content {
+ fn content(rects: u32) -> Content {
Content {
rects,
- hits,
version: 1,
live: false,
blocking: 0,
@@ -579,21 +563,18 @@ mod tests {
struct Frame {
display_list: RecordedDisplayList,
- hit_test_items: Vec<HitTestItem>,
prologue_bytes: u32,
root_output: OutputSize,
}
struct Output {
recorder: DisplayListRecorder,
- hit_test_list: HitTestList,
blocking_wheel_event_region_count: u32,
}
fn new_output() -> Output {
Output {
recorder: DisplayListRecorder::new(None),
- hit_test_list: HitTestList::default(),
blocking_wheel_event_region_count: 0,
}
}
@@ -651,14 +632,6 @@ mod tests {
self.recorded.clear();
self.events.clear();
}
-
- fn recorded_kinds_of(&self, owner: NodeSlotId) -> Vec<ProducerKind> {
- self.recorded
- .iter()
- .filter(|(recorded_owner, _)| *recorded_owner == owner)
- .map(|(_, kind)| *kind)
- .collect()
- }
}
impl AssemblyHost for TestHost {
@@ -684,22 +657,6 @@ mod tests {
ForceDarkRole::Background,
);
}
- for index in 0..content.hits {
- output.hit_test_list.append(HitTestItem {
- kind: HitTestItemKind::Box,
- paintable: owner,
- hit_node: owner,
- chrome_widget_kind: 0,
- text_fragment_index: Some(index + u32::from(content.version) * 100),
- rect: CssPixelRect::default(),
- context: ContextRef::default(),
- border_radii: BorderRadii::default(),
- path: None,
- winding_rule: libgfx_rust::WindingRule::Nonzero,
- svg_hit_areas: 0,
- svg_stroke: None,
- });
- }
output.blocking_wheel_event_region_count += content.blocking;
ProducerOutcome {
live: content.live,
@@ -710,19 +667,13 @@ mod tests {
fn output_position(&self) -> OutputPosition {
OutputPosition {
bytes: self.output.recorder.byte_size() as u32,
- hits: self.output.hit_test_list.items.len() as u32,
blocking_wheel_event_regions: self.output.blocking_wheel_event_region_count,
}
}
- fn copy_published(&mut self, bytes: Range<u32>, hits: Range<u32>, blocking_wheel_event_regions: u32) {
+ fn copy_published(&mut self, bytes: Range<u32>, blocking_wheel_event_regions: u32) {
let source = self.source.as_ref().expect("a published recording to copy from");
self.output.recorder.append_cached_commands(&source.display_list, bytes);
- if !hits.is_empty() {
- self.output
- .hit_test_list
- .append_copies_of(&source.hit_test_items[hits.start as usize..hits.end as usize]);
- }
self.output.blocking_wheel_event_region_count += blocking_wheel_event_regions;
}
@@ -779,10 +730,8 @@ mod tests {
let root_output =
Assembler::new(host, access, &mut marks, source_prologue_bytes, false).assemble_root(context(row(0)));
let output = std::mem::replace(&mut host.output, new_output());
- let hit_test_items = std::sync::Arc::try_unwrap(output.hit_test_list.items).expect("items are unshared");
Frame {
display_list: output.recorder.into_builder().finish(),
- hit_test_items,
prologue_bytes,
root_output,
}
@@ -793,7 +742,6 @@ mod tests {
let frame = record_frame(host, tree);
let previous = host.source.replace(Frame {
display_list: frame.display_list.clone(),
- hit_test_items: frame.hit_test_items.clone(),
prologue_bytes: frame.prologue_bytes,
root_output: frame.root_output,
});
@@ -815,22 +763,11 @@ mod tests {
"command bytes differ"
);
assert_eq!(assembled.display_list.command_runs, fresh.display_list.command_runs);
- // Comparing whole items would compare their paths through the host's path equality.
- let item_identities = |items: &[HitTestItem]| -> Vec<(NodeSlotId, Option<u32>)> {
- items
- .iter()
- .map(|item| (item.paintable, item.text_fragment_index))
- .collect()
- };
- assert_eq!(
- item_identities(&assembled.hit_test_items),
- item_identities(&fresh.hit_test_items)
- );
assert_eq!(assembled.root_output, fresh.root_output);
}
// A viewport context (row 0) with a background and a foreground scope listing three
- // card scopes (rows 1..=3) that each draw a background and a foreground with hit items.
+ // card scopes (rows 1..=3) that each draw a background and a foreground.
fn cards_host() -> TestHost {
let mut host = TestHost::default();
host.plan(
@@ -838,7 +775,7 @@ mod tests {
true,
&[phase(PaintPhase::Background), child(foreground(row(0)))],
);
- host.produce(row(0), ProducerKind::DrawBackground, content(1, 0));
+ host.produce(row(0), ProducerKind::DrawBackground, content(1));
host.plan(
foreground(row(0)),
true,
@@ -854,9 +791,8 @@ mod tests {
true,
&[phase(PaintPhase::Background), phase(PaintPhase::Foreground)],
);
- host.produce(row(card), ProducerKind::DrawBackground, content(1, 0));
- host.produce(row(card), ProducerKind::HitForeground, content(0, 2));
- host.produce(row(card), ProducerKind::DrawForeground, content(card, 0));
+ host.produce(row(card), ProducerKind::DrawBackground, content(1));
+ host.produce(row(card), ProducerKind::DrawForeground, content(card));
}
host
}
@@ -869,9 +805,7 @@ mod tests {
let frame = record_frame(&mut host, &mut tree);
- assert_eq!(host.recorded.len(), 1 + 3 * 3);
- assert_eq!(frame.root_output.hits, 6);
- assert_eq!(frame.hit_test_items.len(), 6);
+ assert_eq!(host.recorded.len(), 1 + 3 * 2);
assert_eq!(
frame.root_output.bytes as usize,
frame.display_list.bytes.len() - frame.prologue_bytes as usize
@@ -888,7 +822,7 @@ mod tests {
host.source = Some(first);
host.clear_damage();
- host.produce(row(2), ProducerKind::DrawForeground, content(2, 0));
+ host.produce(row(2), ProducerKind::DrawForeground, content(2));
host.contents
.get_mut(&(row(2), ProducerKind::DrawForeground))
.unwrap()
@@ -916,21 +850,15 @@ mod tests {
host.source = Some(first);
host.clear_damage();
- host.produce(row(1), ProducerKind::DrawForeground, content(5, 0));
- host.produce(row(1), ProducerKind::HitForeground, content(0, 4));
- host.push(row(1), PaintDamage::DRAW_FOREGROUND | PaintDamage::HIT_FOREGROUND);
+ host.produce(row(1), ProducerKind::DrawForeground, content(5));
+ host.push(row(1), PaintDamage::DRAW_FOREGROUND);
host.push(row(0), PaintDamage::DESCENDANT_READERS);
let grown = record_next_frame(&mut host, &mut tree);
- assert_eq!(
- host.recorded_kinds_of(row(1)),
- vec![ProducerKind::HitForeground, ProducerKind::DrawForeground]
- );
- assert_eq!(host.recorded.len(), 2);
- assert_eq!(grown.hit_test_items.len(), 8);
+ assert_eq!(host.recorded, vec![(row(1), ProducerKind::DrawForeground)]);
assert_matches_from_scratch(&mut host, &grown);
host.clear_damage();
- host.produce(row(1), ProducerKind::DrawForeground, content(0, 0));
+ host.produce(row(1), ProducerKind::DrawForeground, content(0));
host.push(row(1), PaintDamage::DRAW_FOREGROUND);
host.push(row(0), PaintDamage::DESCENDANT_READERS);
let shrunk = record_next_frame(&mut host, &mut tree);
@@ -962,7 +890,6 @@ mod tests {
assert!(host.recorded.is_empty());
assert_matches_from_scratch(&mut host, &second);
- assert_eq!(second.hit_test_items.len(), 4);
let parent = tree.published_scope(foreground(row(0)), tree.root()).unwrap();
assert_eq!(tree.children(parent).len(), 2);
assert_eq!(tree.published_scope(foreground(row(2)), parent), None);
@@ -993,8 +920,8 @@ mod tests {
true,
&[phase(PaintPhase::Background), phase(PaintPhase::Foreground)],
);
- host.produce(row(4), ProducerKind::DrawBackground, content(2, 0));
- host.produce(row(4), ProducerKind::HitForeground, content(0, 1));
+ host.produce(row(4), ProducerKind::DrawBackground, content(2));
+ host.produce(row(4), ProducerKind::DrawForeground, content(1));
host.push(row(4), PaintDamage::ORDER | PaintDamage::ALL_PRODUCERS);
host.push(row(0), PaintDamage::ORDER | PaintDamage::DESCENDANT_READERS);
let second = record_next_frame(&mut host, &mut tree);
@@ -1003,7 +930,7 @@ mod tests {
host.recorded,
vec![
(row(4), ProducerKind::DrawBackground),
- (row(4), ProducerKind::HitForeground)
+ (row(4), ProducerKind::DrawForeground)
]
);
assert_matches_from_scratch(&mut host, &second);
@@ -1020,7 +947,7 @@ mod tests {
let published_structure = tree.structure();
let published_root_entry = tree.root_entry();
- host.produce(row(2), ProducerKind::DrawForeground, content(3, 0));
+ host.produce(row(2), ProducerKind::DrawForeground, content(3));
host.push(row(2), PaintDamage::DRAW_FOREGROUND);
let unpublished = record_frame_rewriting_tree(&mut host, &mut tree, false);
@@ -1062,8 +989,8 @@ mod tests {
true,
&[phase(PaintPhase::Background), phase(PaintPhase::Foreground)],
);
- host.produce(row(4), ProducerKind::DrawBackground, content(2, 0));
- host.produce(row(4), ProducerKind::HitForeground, content(0, 1));
+ host.produce(row(4), ProducerKind::DrawBackground, content(2));
+ host.produce(row(4), ProducerKind::DrawForeground, content(1));
host.push(row(4), PaintDamage::ORDER | PaintDamage::ALL_PRODUCERS);
host.push(row(0), PaintDamage::ORDER | PaintDamage::DESCENDANT_READERS);
let unpublished = record_frame_rewriting_tree(&mut host, &mut tree, false);
@@ -1072,7 +999,7 @@ mod tests {
host.recorded,
vec![
(row(4), ProducerKind::DrawBackground),
- (row(4), ProducerKind::HitForeground)
+ (row(4), ProducerKind::DrawForeground)
]
);
assert_matches_from_scratch(&mut host, &unpublished);
@@ -1109,7 +1036,7 @@ mod tests {
],
);
host.plan(foreground(row(5)), true, &[phase(PaintPhase::Foreground)]);
- host.produce(row(5), ProducerKind::DrawForeground, content(3, 0));
+ host.produce(row(5), ProducerKind::DrawForeground, content(3));
let mut tree = PaintOrderTree::default();
let first = record_frame(&mut host, &mut tree);
host.source = Some(first);
@@ -1151,7 +1078,7 @@ mod tests {
&[phase(PaintPhase::Background), child(foreground(row(5)))],
);
host.plan(foreground(row(5)), true, &[phase(PaintPhase::Foreground)]);
- host.produce(row(5), ProducerKind::DrawForeground, content(2, 0));
+ host.produce(row(5), ProducerKind::DrawForeground, content(2));
let mut tree = PaintOrderTree::default();
let first = record_frame(&mut host, &mut tree);
host.source = Some(first);
@@ -1175,10 +1102,10 @@ mod tests {
fn descendant_readers_record_when_something_below_them_changed() {
let mut host = cards_host();
host.plan(foreground(row(3)), true, &[svg(), child(foreground(row(5)))]);
- host.produce(row(3), ProducerKind::Svg, content(1, 1));
+ host.produce(row(3), ProducerKind::Svg, content(1));
host.descendant_readers.insert((row(3), ProducerKind::Svg));
host.plan(foreground(row(5)), true, &[phase(PaintPhase::Foreground)]);
- host.produce(row(5), ProducerKind::DrawForeground, content(1, 0));
+ host.produce(row(5), ProducerKind::DrawForeground, content(1));
let mut tree = PaintOrderTree::default();
let first = record_frame(&mut host, &mut tree);
host.source = Some(first);
@@ -1204,7 +1131,7 @@ mod tests {
ProducerKind::DrawBackground,
Content {
live: true,
- ..content(1, 0)
+ ..content(1)
},
);
let mut tree = PaintOrderTree::default();
@@ -1245,10 +1172,10 @@ mod tests {
let mut host = cards_host();
host.produce(
row(1),
- ProducerKind::HitForeground,
+ ProducerKind::DrawForeground,
Content {
blocking: 1,
- ..content(0, 2)
+ ..content(1)
},
);
let mut tree = PaintOrderTree::default();
@@ -1324,7 +1251,7 @@ mod tests {
true,
&[phase(PaintPhase::Background), child(foreground(row(0)))],
);
- host.produce(row(0), ProducerKind::DrawBackground, content(1, 0));
+ host.produce(row(0), ProducerKind::DrawBackground, content(1));
let cards: Vec<PaintOrderItem> = CARD_ROWS.iter().map(|card| child(context(row(*card)))).collect();
host.plan(foreground(row(0)), true, &cards);
for card in CARD_ROWS {
@@ -1333,17 +1260,16 @@ mod tests {
true,
&[phase(PaintPhase::Background), child(foreground(row(card)))],
);
- host.produce(row(card), ProducerKind::DrawBackground, content(1, 0));
- host.produce(row(card), ProducerKind::HitForeground, content(0, 2));
- host.produce(row(card), ProducerKind::DrawForeground, content(card, 0));
+ host.produce(row(card), ProducerKind::DrawBackground, content(1));
+ host.produce(row(card), ProducerKind::DrawForeground, content(card));
let mut foreground_items = vec![phase(PaintPhase::Foreground)];
match nested_row(card) {
Some(nested) if card == 3 => {
foreground_items = vec![svg(), child(foreground(row(nested)))];
- host.produce(row(card), ProducerKind::Svg, content(1, 1));
+ host.produce(row(card), ProducerKind::Svg, content(1));
host.descendant_readers.insert((row(card), ProducerKind::Svg));
host.plan(foreground(row(nested)), true, &[phase(PaintPhase::Foreground)]);
- host.produce(row(nested), ProducerKind::DrawForeground, content(1, 0));
+ host.produce(row(nested), ProducerKind::DrawForeground, content(1));
}
Some(nested) => {
foreground_items.push(child(context(row(nested))));
@@ -1352,8 +1278,8 @@ mod tests {
true,
&[phase(PaintPhase::Background), phase(PaintPhase::Foreground)],
);
- host.produce(row(nested), ProducerKind::DrawBackground, content(2, 1));
- host.produce(row(nested), ProducerKind::DrawForeground, content(1, 0));
+ host.produce(row(nested), ProducerKind::DrawBackground, content(2));
+ host.produce(row(nested), ProducerKind::DrawForeground, content(1));
}
None => {}
}
@@ -1370,13 +1296,6 @@ mod tests {
let content = host.contents.get_mut(&(row(row_index), kind)).unwrap();
match random.next(3) {
0 => content.version = content.version.wrapping_add(1).max(1),
- 1 if matches!(
- kind,
- ProducerKind::HitBackground | ProducerKind::HitForeground | ProducerKind::HitOverlay
- ) =>
- {
- content.hits = random.next(4);
- }
_ => content.rects = random.next(4),
}
push_with_hints(host, row_index, kind.damage());
@@ -1479,7 +1398,7 @@ mod tests {
for step in 0..400 {
changes.apply(&mut host);
- // Hit tests between two published frames record frames that publish nothing.
+ // Frames that publish nothing are recorded between two published frames.
let published_structure = tree.structure();
for _ in 0..step % 3 {
let unpublished = record_frame_rewriting_tree(&mut host, &mut tree, false);
diff --git a/Libraries/LibWeb/Rust/src/painting/record/hit_test_items.rs b/Libraries/LibWeb/Rust/src/painting/record/hit_test_items.rs
index 5458a728091..ceabd35ed3c 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/hit_test_items.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/hit_test_items.rs
@@ -4,30 +4,4 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-use super::{PaintPhase, PaintRecorder};
-use crate::layout::node_data::NodeSlotId;
-use crate::painting::hit_test::HitTestItem;
pub(crate) use crate::painting::hit_test::items::{HitTestFacts, hit_test_facts};
-use crate::painting::hit_test::items::{HitTestItemSink, hit_test_items_of_phase};
-use crate::painting::record::trace::Observer;
-
-impl<O: Observer> HitTestItemSink for PaintRecorder<'_, O> {
- fn hit_test_facts(&mut self, paintable: NodeSlotId) -> HitTestFacts {
- self.paintable_facts(paintable)
- }
-
- fn own_accumulated_2d_scale(&self, paintable: NodeSlotId) -> libgfx_rust::FloatSize {
- PaintRecorder::own_accumulated_2d_scale(self, paintable)
- }
-
- fn append(&mut self, item: HitTestItem) {
- self.list.append(item);
- }
-}
-
-impl<O: Observer> PaintRecorder<'_, O> {
- pub(crate) fn record_hit_test_items(&mut self, paintable: NodeSlotId, phase: PaintPhase) {
- let rows = self.source;
- hit_test_items_of_phase(rows, self, paintable, phase);
- }
-}
diff --git a/Libraries/LibWeb/Rust/src/painting/record/ink_bounds.rs b/Libraries/LibWeb/Rust/src/painting/record/ink_bounds.rs
index dfa6a5293a9..c711ea104cc 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/ink_bounds.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/ink_bounds.rs
@@ -402,18 +402,17 @@ impl<O: Observer> PaintRecorder<'_, O> {
})
}
- /// Requires every command and hit-test item the producer just recorded to lie inside the bound of each scope it
- /// was recorded in: a walk that skipped one of those scopes because its bound missed a region or a point would
- /// otherwise have dropped something that draws or can be hit there.
+ /// Requires every command the producer just recorded to lie inside the bound of each scope it was recorded in: a
+ /// walk that skipped one of those scopes because its bound missed a region would otherwise have dropped something
+ /// that draws there.
pub(super) fn verify_producer_against_open_scopes(
&mut self,
owner: NodeSlotId,
kind: ProducerKind,
bytes: Range<usize>,
- hit_test_items: Range<usize>,
) {
if self.ink_bounds_audit.open_scopes_with_a_bound == 0
- || (bytes.is_empty() && hit_test_items.is_empty())
+ || bytes.is_empty()
|| kind == ProducerKind::ScopePreamble
|| self.background_placed_in_another_space(owner, kind).is_some()
{
@@ -470,11 +469,6 @@ impl<O: Observer> PaintRecorder<'_, O> {
runs[run_index].context,
);
});
- for item in &self.list.items[hit_test_items] {
- if !item.rect.is_empty() {
- require_inside_open_scopes(&item.kind, converter.enclosing_device_rect(item.rect), item.context);
- }
- }
if checked {
self.ink_bounds_audit.count(Count::CheckedAgainstScopes);
}
diff --git a/Libraries/LibWeb/Rust/src/painting/record/mod.rs b/Libraries/LibWeb/Rust/src/painting/record/mod.rs
index 4e4d8b51e1b..aceb617a164 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/mod.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/mod.rs
@@ -35,8 +35,6 @@ use crate::painting::display_list::builder::{PendingInlineClip, RecordedDisplayL
use crate::painting::display_list::commands::{ContextRef, SpatialNodeIndex};
use crate::painting::display_list::device_pixels::DevicePixelConverter;
use crate::painting::display_list::recorder::DisplayListRecorder;
-use crate::painting::hit_test::HitTestItem;
-use crate::painting::hit_test::HitTestList;
use crate::painting::paintable_data::{InlineBoxPieceRecord, PaintableData};
use crate::painting::record::frame_inputs::FrameInputs;
use crate::painting::record::svg_resources::SvgResourceWalk;
@@ -57,7 +55,9 @@ pub struct RecordingOutput {
// The bytes before the viewport's scope: the canvas, recorded outside the tree.
pub(crate) prologue_bytes: u32,
pub root_group_color: libgfx_rust::Color,
- pub hit_test_list: HitTestList,
+ /// The rows' hit-test items stamp of the frame the recording recorded: hit testing walks its rows, which place
+ /// other items in a frame with another stamp or another visual context tree.
+ pub hit_test_items_stamp: u64,
pub display_list: Arc<RecordedDisplayList>,
pub has_blocking_wheel_event_listeners: bool,
pub wheel_event_listener_state_generation: u64,
@@ -83,15 +83,9 @@ pub(crate) struct RecordingResult {
pub(crate) resources: resources::RecordingResourceManifest,
}
-/// The hit-test items of the published recording, which the next recording copies clean output from.
-pub struct PublishedHitTestItems {
- pub items: Arc<Vec<HitTestItem>>,
-}
-
-// What a recording shares with hit testing and with later recordings.
+// What a recording shares with later recordings.
const _: () = {
const fn assert_send_and_sync<T: Send + Sync>() {}
- assert_send_and_sync::<PublishedHitTestItems>();
assert_send_and_sync::<paint::text::SelectionStyleAnswer>();
};
@@ -124,7 +118,6 @@ pub struct PaintRecorder<'a, O: Observer> {
ink_bounds_audit: ink_bounds::InkBoundsAudit,
// The published recording whose clean output this recording copies, when its inputs match.
pub(crate) source_recording: Option<Arc<RecordingOutput>>,
- pub(crate) source_items: Option<Arc<PublishedHitTestItems>>,
// Set while a producer records output that must record again every frame.
live_producer: bool,
// Set while a producer records output that depends on whether the window is focused.
@@ -134,7 +127,6 @@ pub struct PaintRecorder<'a, O: Observer> {
pub(crate) blocking_wheel_event_region_count: u32,
pub(crate) records_per_box_wheel_hit_test_targets: bool,
pub(crate) observer: O,
- list: HitTestList,
pub(crate) scratch: &'a mut scratch::RecordingScratch,
pub(crate) resources: resources::RecordingResourceManifest,
line_root_positions: Option<(NodeSlotId, crate::painting::paintable_geometry::LineRootPositions)>,
diff --git a/Libraries/LibWeb/Rust/src/painting/record/order_tree.rs b/Libraries/LibWeb/Rust/src/painting/record/order_tree.rs
index 30f34fc6ed9..3bdfc14c4cd 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/order_tree.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/order_tree.rs
@@ -69,8 +69,8 @@ impl std::fmt::Debug for ScopeId {
}
}
-/// One unit of recorded output owned by a row. The order of the draw and hit-test phases
-/// mirrors `PaintPhase`, and every kind has the damage bit that makes it record again.
+/// One unit of recorded output owned by a row. The order of the draw phases mirrors `PaintPhase`,
+/// and every kind has the damage bit that makes it record again.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
#[repr(u8)]
pub(crate) enum ProducerKind {
@@ -80,9 +80,6 @@ pub(crate) enum ProducerKind {
DrawForeground,
DrawOutline,
DrawOverlay,
- HitBackground,
- HitForeground,
- HitOverlay,
ScrollMetadata,
ScopePreamble,
Svg,
@@ -91,16 +88,13 @@ pub(crate) enum ProducerKind {
}
impl ProducerKind {
- const ALL: [Self; 12] = [
+ const ALL: [Self; 9] = [
Self::DrawBackground,
Self::DrawBorder,
Self::DrawTableCollapsedBorder,
Self::DrawForeground,
Self::DrawOutline,
Self::DrawOverlay,
- Self::HitBackground,
- Self::HitForeground,
- Self::HitOverlay,
Self::ScrollMetadata,
Self::ScopePreamble,
Self::Svg,
@@ -114,9 +108,6 @@ impl ProducerKind {
Self::DrawForeground => PaintDamage::DRAW_FOREGROUND,
Self::DrawOutline => PaintDamage::DRAW_OUTLINE,
Self::DrawOverlay => PaintDamage::DRAW_OVERLAY,
- Self::HitBackground => PaintDamage::HIT_BACKGROUND,
- Self::HitForeground => PaintDamage::HIT_FOREGROUND,
- Self::HitOverlay => PaintDamage::HIT_OVERLAY,
Self::ScrollMetadata => PaintDamage::SCROLL_METADATA,
Self::ScopePreamble => PaintDamage::SCOPE_PREAMBLE,
Self::Svg => PaintDamage::SVG,
@@ -150,7 +141,6 @@ impl ProducerKind {
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
pub(crate) struct OutputSize {
pub bytes: u32,
- pub hits: u32,
pub blocking_wheel_event_regions: u32,
// Recorded again every frame: scroll-offset-dependent content and resources without
// retained output. A scope is live when any child is.
@@ -163,7 +153,6 @@ pub(crate) struct OutputSize {
impl OutputSize {
pub(crate) fn add(&mut self, other: OutputSize) {
self.bytes += other.bytes;
- self.hits += other.hits;
self.blocking_wheel_event_regions += other.blocking_wheel_event_regions;
self.live |= other.live;
self.reads_window_focus |= other.reads_window_focus;
@@ -181,11 +170,10 @@ pub(crate) enum ChildKey {
pub(crate) struct ChildEntry {
key: u32,
bytes: u32,
- hits: u32,
meta: u32,
}
-const _: () = assert!(std::mem::size_of::<ChildEntry>() == 16);
+const _: () = assert!(std::mem::size_of::<ChildEntry>() == 12);
const SCOPE_KEY_BIT: u32 = 1 << 31;
const META_LIVE: u32 = 1;
@@ -213,7 +201,6 @@ impl ChildEntry {
Self {
key,
bytes: output.bytes,
- hits: output.hits,
meta,
}
}
@@ -229,7 +216,6 @@ impl ChildEntry {
pub(crate) fn output(&self) -> OutputSize {
OutputSize {
bytes: self.bytes,
- hits: self.hits,
blocking_wheel_event_regions: self.meta >> META_BLOCKING_REGIONS_SHIFT,
live: self.meta & META_LIVE != 0,
reads_window_focus: self.reads_window_focus(),
@@ -635,10 +621,9 @@ mod tests {
NodeSlotId::new(index, 1)
}
- fn output(bytes: u32, hits: u32) -> OutputSize {
+ fn output(bytes: u32) -> OutputSize {
OutputSize {
bytes,
- hits,
..OutputSize::default()
}
}
@@ -664,19 +649,19 @@ mod tests {
let mut foreground_output = OutputSize::default();
for index in 0..leaf_count {
let leaf = tree.allocate_scope(foreground_scope(row(1 + index)), foreground);
- let leaf_output = output(16, 1);
+ let leaf_output = output(16);
tree.set_children(leaf, &[ChildEntry::producer(ProducerKind::DrawForeground, leaf_output)]);
foreground_children.push(ChildEntry::scope(leaf, leaf_output));
foreground_output.add(leaf_output);
leaves.push(leaf);
}
tree.set_children(foreground, &foreground_children);
- let mut root_output = output(32, 0);
+ let mut root_output = output(32);
root_output.add(foreground_output);
tree.set_children(
root,
&[
- ChildEntry::producer(ProducerKind::DrawBackground, output(32, 0)),
+ ChildEntry::producer(ProducerKind::DrawBackground, output(32)),
ChildEntry::scope(foreground, foreground_output),
],
);
@@ -690,7 +675,7 @@ mod tests {
let (root, foreground, leaves) = record_first_frame(&mut tree, 3);
assert_eq!(tree.root(), root);
- assert_eq!(tree.root_entry().output(), output(32 + 3 * 16, 3));
+ assert_eq!(tree.root_entry().output(), output(32 + 3 * 16));
assert_eq!(tree.published_scope(foreground_scope(row(0)), root), Some(foreground));
assert_eq!(
tree.published_scope(foreground_scope(row(2)), foreground),
@@ -728,22 +713,19 @@ mod tests {
let (root, foreground, leaves) = record_first_frame(&mut tree, 2);
let added = tree.allocate_scope(foreground_scope(row(9)), foreground);
- tree.set_children(
- added,
- &[ChildEntry::producer(ProducerKind::DrawForeground, output(8, 0))],
- );
+ tree.set_children(added, &[ChildEntry::producer(ProducerKind::DrawForeground, output(8))]);
let children = [
- ChildEntry::scope(leaves[1], output(16, 1)),
- ChildEntry::scope(added, output(8, 0)),
+ ChildEntry::scope(leaves[1], output(16)),
+ ChildEntry::scope(added, output(8)),
];
tree.set_children(foreground, &children);
tree.detach_scope(leaves[0]);
assert_eq!(tree.published_scope(foreground_scope(row(1)), foreground), None);
assert_eq!(tree.scope_count(), 4);
- tree.finish_recording(root, ChildEntry::scope(root, output(32 + 16 + 8, 1)));
+ tree.finish_recording(root, ChildEntry::scope(root, output(32 + 16 + 8)));
assert_eq!(tree.children(foreground), &children);
- assert_eq!(tree.root_entry().output(), output(56, 1));
+ assert_eq!(tree.root_entry().output(), output(56));
assert_eq!(tree.published_scope(foreground_scope(row(9)), foreground), Some(added));
// The retired slot is reused with a new generation, so the old id can never match.
@@ -783,14 +765,11 @@ mod tests {
}
}
let added = tree.allocate_scope(foreground_scope(row(100 + round)), foreground);
- tree.set_children(
- added,
- &[ChildEntry::producer(ProducerKind::DrawForeground, output(8, 0))],
- );
- let entry = ChildEntry::scope(added, output(8, 0));
+ tree.set_children(added, &[ChildEntry::producer(ProducerKind::DrawForeground, output(8))]);
+ let entry = ChildEntry::scope(added, output(8));
assert_eq!(entry.key(), ChildKey::Scope(added));
tree.set_children(foreground, &[entry]);
- tree.finish_recording(root, ChildEntry::scope(root, output(40, 0)));
+ tree.finish_recording(root, ChildEntry::scope(root, output(40)));
assert_eq!(
tree.published_scope(foreground_scope(row(100 + round)), foreground),
Some(added)
@@ -805,14 +784,14 @@ mod tests {
let (root, foreground, leaves) = record_first_frame(&mut tree, 2);
let capacity = tree.child_entry_capacity();
- let grown = output(24, 1);
+ let grown = output(24);
tree.set_children(leaves[0], &[ChildEntry::producer(ProducerKind::DrawForeground, grown)]);
let children = [
ChildEntry::scope(leaves[0], grown),
- ChildEntry::scope(leaves[1], output(16, 1)),
+ ChildEntry::scope(leaves[1], output(16)),
];
tree.set_children(foreground, &children);
- tree.finish_recording(root, ChildEntry::scope(root, output(32 + 24 + 16, 2)));
+ tree.finish_recording(root, ChildEntry::scope(root, output(32 + 24 + 16)));
assert_eq!(tree.children(foreground), &children);
assert_eq!(tree.child_entry_capacity(), capacity);
@@ -825,13 +804,13 @@ mod tests {
let mut peak = 0;
for round in 0..4000u32 {
let leaf = leaves[(round % 8) as usize];
- let leaf_output = output(16 + round % 3, 1);
+ let leaf_output = output(16 + round % 3);
// Every other round the leaf gains or loses a producer, so its list changes length.
let leaf_children: Vec<ChildEntry> = if round % 2 == 0 {
vec![ChildEntry::producer(ProducerKind::DrawForeground, leaf_output)]
} else {
vec![
- ChildEntry::producer(ProducerKind::DrawBackground, output(0, 0)),
+ ChildEntry::producer(ProducerKind::DrawBackground, output(0)),
ChildEntry::producer(ProducerKind::DrawForeground, leaf_output),
]
};
@@ -845,13 +824,13 @@ mod tests {
})
.collect();
tree.set_children(foreground, &children);
- let mut total = output(32, 0);
+ let mut total = output(32);
for entry in &children {
total.add(entry.output());
}
tree.finish_recording(root, ChildEntry::scope(root, total));
peak = peak.max(tree.child_entry_capacity());
- assert_eq!(tree.root_entry().output().hits, 8);
+ assert_eq!(tree.root_entry().output(), total);
}
let live = 2 + 8 + 2 * 8;
assert!(
diff --git a/Libraries/LibWeb/Rust/src/painting/record/producers.rs b/Libraries/LibWeb/Rust/src/painting/record/producers.rs
index 89cda58cad6..1cb51696736 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/producers.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/producers.rs
@@ -5,9 +5,8 @@
*/
//! The producers of a frame: each records one kind of output for one row under the contexts it
-//! needs, starting and ending at a closed group boundary with no ambient state, so its bytes and
-//! hit-test items can be copied verbatim by a later frame. The recorder implements the assembly
-//! host with them.
+//! needs, starting and ending at a closed group boundary with no ambient state, so its bytes can
+//! be copied verbatim by a later frame. The recorder implements the assembly host with them.
use super::assemble::{AssemblyEvent, AssemblyHost, OutputPosition, ProducerOutcome, ScopeAction, ScopePlan};
use super::order_tree::ProducerKind;
@@ -48,15 +47,6 @@ fn draw_kind(phase: PaintPhase) -> ProducerKind {
}
}
-pub(crate) fn hit_phase(kind: ProducerKind) -> Option<PaintPhase> {
- match kind {
- ProducerKind::HitBackground => Some(PaintPhase::Background),
- ProducerKind::HitForeground => Some(PaintPhase::Foreground),
- ProducerKind::HitOverlay => Some(PaintPhase::Overlay),
- _ => None,
- }
-}
-
impl<O: Observer> PaintRecorder<'_, O> {
pub(crate) fn record_canvas(&mut self) -> Color {
let mut root_group_color = Color::TRANSPARENT;
@@ -111,13 +101,6 @@ impl<O: Observer> PaintRecorder<'_, O> {
self.recorder.set_accumulated_visual_context(ContextRef::default());
}
- fn record_hit_test_phase(&mut self, owner: NodeSlotId, phase: PaintPhase) {
- let context = self.context_for_phase(owner, phase);
- self.recorder.set_accumulated_visual_context(context);
- self.record_hit_test_items(owner, phase);
- self.recorder.set_accumulated_visual_context(ContextRef::default());
- }
-
fn record_scroll_metadata(&mut self, owner: NodeSlotId) {
let context = self.own_context(owner);
self.recorder.set_accumulated_visual_context(context);
@@ -211,9 +194,7 @@ impl<O: Observer> AssemblyHost for PaintRecorder<'_, O> {
}
}
_ => {
- if let Some(phase) = hit_phase(kind) {
- self.record_hit_test_phase(owner, phase);
- } else if let Some(phase) = draw_phase(kind) {
+ if let Some(phase) = draw_phase(kind) {
self.record_box_commands(owner, phase);
}
}
@@ -221,15 +202,9 @@ impl<O: Observer> AssemblyHost for PaintRecorder<'_, O> {
let end = self.output_position();
if self.ink_bounds_audit.enabled {
self.verify_producer_ink(owner, kind, start.bytes as usize..end.bytes as usize);
- self.verify_producer_against_open_scopes(
- owner,
- kind,
- start.bytes as usize..end.bytes as usize,
- start.hits as usize..end.hits as usize,
- );
+ self.verify_producer_against_open_scopes(owner, kind, start.bytes as usize..end.bytes as usize);
}
- self.observer
- .observe(|log| log.end(end.bytes == start.bytes && end.hits == start.hits));
+ self.observer.observe(|log| log.end(end.bytes == start.bytes));
debug_assert!(
self.recorder.is_producer_boundary(),
"a producer ends at a closed group boundary without ambient state"
@@ -243,25 +218,16 @@ impl<O: Observer> AssemblyHost for PaintRecorder<'_, O> {
fn output_position(&self) -> OutputPosition {
OutputPosition {
bytes: u32::try_from(self.recorder.byte_size()).expect("display list exceeds u32"),
- hits: u32::try_from(self.list.items.len()).expect("hit-test list exceeds u32"),
blocking_wheel_event_regions: self.blocking_wheel_event_region_count,
}
}
- fn copy_published(&mut self, bytes: Range<u32>, hits: Range<u32>, blocking_wheel_event_regions: u32) {
+ fn copy_published(&mut self, bytes: Range<u32>, blocking_wheel_event_regions: u32) {
let frame = self
.source_recording
.as_ref()
.expect("clean output is copied from a published recording");
- let items = self
- .source_items
- .as_ref()
- .expect("clean output is copied from a published recording");
self.recorder.append_cached_commands(&frame.display_list, bytes);
- if !hits.is_empty() {
- self.list
- .append_copies_of(&items.items[hits.start as usize..hits.end as usize]);
- }
self.blocking_wheel_event_region_count += blocking_wheel_event_regions;
}
diff --git a/Libraries/LibWeb/Rust/src/painting/record/publish.rs b/Libraries/LibWeb/Rust/src/painting/record/publish.rs
index 6e512949fe6..8f411a8a99a 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/publish.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/publish.rs
@@ -7,7 +7,6 @@
use crate::layout::LayoutNodeArena;
use crate::painting::display_list::commands::{DisplayListCommandType, DisplayListResourceId, PaintVectorImage};
use crate::painting::display_list_resources::{DisplayListResources, summary_of};
-use crate::painting::hit_test::HitTestList;
use crate::painting::host::FfiRecordingPublishCallbacks;
use crate::painting::paint_state::PendingRecording;
use crate::painting::record::recorder_state::RecorderState;
@@ -95,28 +94,27 @@ pub(crate) fn publish_recording(
pending,
behind_rows,
recorder,
- hit_test_list,
+ hit_test_items_on_screen,
} = publication;
let publishes_recording = pending.publishes_recording;
let output = publish_to_host(pending, recorder, main_thread, publish);
- take_in_published_output(
+ take_in_presented_output(
recorder,
- hit_test_list,
- output,
+ hit_test_items_on_screen,
+ Arc::new(output),
publishes_recording,
- |output, hit_test_list_changed| {
+ |output| {
host.queue_change(crate::render_state::ArenaChange::Paint(
crate::painting::paint_changes::PaintChange::TakeInRecording {
output,
- hit_test_list_changed: hit_test_list_changed || behind_rows,
publishes_recording,
},
));
},
);
- // A recording that landed behind the rows keeps no hit-test list, as the boxes it names may be gone.
+ // A recording that landed behind the rows leaves nothing hit testing reads, as the boxes it shows may be gone.
if behind_rows {
- *hit_test_list = None;
+ hit_test_items_on_screen.forget();
}
}
@@ -258,17 +256,13 @@ fn publish_resources(
let published = recorder.published_recording.as_deref().filter(|_| publishes_recording);
output.vector_image_ids_by_request =
drawn_vector_image_ids(&output, &vector_image_render_requests, &resolved_ids, published);
- output.is_identical_to_published_recording = recorder
- .published_recording
- .as_ref()
- .zip(recorder.published_hit_test_items.as_ref())
- .is_some_and(|(source, item_source)| {
- std::sync::Arc::ptr_eq(&output.display_list, &source.display_list)
- && std::sync::Arc::ptr_eq(&output.hit_test_list.items, &item_source.items)
- && output.recorded_structural_epoch == source.recorded_structural_epoch
- && output.wheel_event_listener_state_generation == source.wheel_event_listener_state_generation
- && output.has_blocking_wheel_event_listeners == source.has_blocking_wheel_event_listeners
- });
+ output.is_identical_to_published_recording = recorder.published_recording.as_ref().is_some_and(|source| {
+ Arc::ptr_eq(&output.display_list, &source.display_list)
+ && output.hit_test_items_stamp == source.hit_test_items_stamp
+ && output.recorded_structural_epoch == source.recorded_structural_epoch
+ && output.wheel_event_listener_state_generation == source.wheel_event_listener_state_generation
+ && output.has_blocking_wheel_event_listeners == source.has_blocking_wheel_event_listeners
+ });
// A recording that repeats the one published last publishes its display list again, under its id.
output.display_list_id = match recorder.published_recording.as_deref() {
Some(source) if output.is_identical_to_published_recording => source.display_list_id,
@@ -277,106 +271,61 @@ fn publish_resources(
output
}
-/// The output of a recording that presented itself, shared, and its hit-test list apart: the clock lane of the frame it
-/// presented starts from the same output the host takes in.
-pub(crate) struct PresentedOutput {
- pub(crate) output: std::sync::Arc<RecordingOutput>,
- pub(crate) hit_test_list: HitTestList,
+/// What the hit-test items of the frame a document presented last are as of. Hit testing walks the rows, which place
+/// other items once their hit-test items stamp or the visual context tree changes, and the host tells by a generation
+/// whether the frame it hit tests is still the one on screen.
+#[derive(Default)]
+pub(crate) struct HitTestItemsOnScreen {
+ /// The rows' hit-test items stamp and the tree's structural epoch of the frame, while one stands.
+ as_of: Option<(u64, u64)>,
+ generation: u64,
}
-impl PresentedOutput {
- pub(crate) fn of(mut output: RecordingOutput) -> Self {
- let hit_test_list = std::mem::take(&mut output.hit_test_list);
- Self {
- output: std::sync::Arc::new(output),
- hit_test_list,
+impl HitTestItemsOnScreen {
+ /// Takes in the frame `output` presented: the generation moves on where it places other items than the frame
+ /// before it.
+ pub(crate) fn take_in(&mut self, output: &RecordingOutput) {
+ let as_of = Some((output.hit_test_items_stamp, output.recorded_structural_epoch));
+ if self.as_of != as_of {
+ self.as_of = as_of;
+ self.generation += 1;
}
}
- /// The hit-test items the output published, as a recording that publishes it leaves them for the next one.
- pub(crate) fn published_hit_test_items(&self) -> std::sync::Arc<crate::painting::record::PublishedHitTestItems> {
- std::sync::Arc::new(crate::painting::record::PublishedHitTestItems {
- items: self.hit_test_list.items.clone(),
- })
+ /// Forgets the frame on screen, whose boxes may be gone.
+ pub(crate) fn forget(&mut self) {
+ self.as_of = None;
}
-}
-/// Takes a published recording's output in: its hit-test list, and for a recording that publishes,
-/// the source the next recording copies from and the damage it consumed. Resource callbacks and
-/// verification have finished, so the new recording may become the source. Returns the generation
-/// of the document's hit-test list.
-pub(crate) fn take_in_published_output(
- recorder: &mut RecorderState,
- hit_test_list: &mut Option<HitTestList>,
- output: RecordingOutput,
- publishes_recording: bool,
- take_in: impl FnOnce(std::sync::Arc<RecordingOutput>, bool),
-) {
- take_in_presented_output(
- recorder,
- hit_test_list,
- PresentedOutput::of(output),
- publishes_recording,
- take_in,
- );
+ /// The generation of the frame on screen, or zero where none stands.
+ pub(crate) fn generation(&self) -> u64 {
+ match self.as_of {
+ Some(_) => self.generation,
+ None => 0,
+ }
+ }
}
-/// Takes the output of a recording that presented itself in, as [`take_in_published_output`] does.
+/// Takes the output of a recording that presented itself in: what hit testing reads of the frame on screen, and for a
+/// recording that publishes, the source the next recording copies from. Resource callbacks and verification have
+/// finished, so the new recording may become the source.
pub(crate) fn take_in_presented_output(
recorder: &mut RecorderState,
- hit_test_list: &mut Option<HitTestList>,
- presented: PresentedOutput,
+ hit_test_items_on_screen: &mut HitTestItemsOnScreen,
+ output: Arc<RecordingOutput>,
publishes_recording: bool,
- take_in: impl FnOnce(std::sync::Arc<RecordingOutput>, bool),
+ take_in: impl FnOnce(Arc<RecordingOutput>),
) {
- let PresentedOutput {
- output,
- hit_test_list: list,
- } = presented;
- let previous_list_is_the_source = hit_test_list
- .as_ref()
- .zip(recorder.published_hit_test_items.as_ref())
- .is_some_and(|(list, source)| std::sync::Arc::ptr_eq(&list.items, &source.items));
- // A recording that paints otherwise may still place the same items in the same contexts: the list kept stands,
- // with the indexes built on it.
- let items_stand = hit_test_list.as_ref().is_some_and(|previous| {
- (output.is_identical_to_published_recording && previous_list_is_the_source)
- || (previous.recorded_structural_epoch == output.recorded_structural_epoch
- && previous.items.len() == list.items.len()
- && *previous.items == *list.items)
- });
- let hit_test_list_changed = !items_stand;
- if hit_test_list_changed {
- *hit_test_list = Some(list);
- }
+ hit_test_items_on_screen.take_in(&output);
if publishes_recording {
- // A later recording copies its clean output from the published recording, with the published items: those of
- // the list that stands with it.
- let kept = hit_test_list.as_ref().expect("a list stands or was taken");
- let published_items_stand = recorder
- .published_hit_test_items
- .as_ref()
- .is_some_and(|source| std::sync::Arc::ptr_eq(&source.items, &kept.items));
- if !published_items_stand {
- recorder.published_hit_test_items =
- Some(std::sync::Arc::new(crate::painting::record::PublishedHitTestItems {
- items: kept.items.clone(),
- }));
- }
- recorder.published_recording = Some(output.clone());
+ recorder.published_recording = Some(Arc::clone(&output));
}
- take_in(output, hit_test_list_changed);
+ take_in(output);
}
/// Takes the recording `output` the host published in as the document's last, where `arena` is the document's arena:
-/// the hit-test list generation moves on where the list changed, and a recording that publishes consumes the damage it
-/// painted. Answers the hit-test list generation.
-pub(crate) fn take_in_recording(
- arena: &mut LayoutNodeArena,
- output: std::sync::Arc<RecordingOutput>,
- hit_test_list_changed: bool,
- publishes_recording: bool,
-) -> u64 {
+/// a recording that publishes consumes the damage it painted.
+pub(crate) fn take_in_recording(arena: &mut LayoutNodeArena, output: Arc<RecordingOutput>, publishes_recording: bool) {
// Read-only recordings publish nothing and must not consume the damage.
if publishes_recording {
arena.clear_paint_damage_consumed_by_published_recording();
@@ -384,14 +333,10 @@ pub(crate) fn take_in_recording(
arena.forget_paint_damage_rows_gone();
}
let paint_state = arena.paint_state_mut();
- if hit_test_list_changed {
- paint_state.hit_test_list_generation += 1;
- }
if publishes_recording {
paint_state.visual_context.quarantined_slots_are_releasable = true;
}
paint_state.last_recording = Some(output);
- paint_state.hit_test_list_generation
}
#[cfg(test)]
@@ -404,42 +349,30 @@ mod tests {
fn read_only_publication_keeps_the_source_recording_and_the_pending_damage() {
let mut arena = LayoutNodeArena::new();
let mut recorder = RecorderState::default();
- let mut hit_test_list = None;
+ let mut hit_test_items_on_screen = HitTestItemsOnScreen::default();
let row = arena.allocate_for_test().slot;
arena.populate_paintable_row(row);
let mut original_source = None;
// Publish a source, a read-only recording, and then the pending repaint.
- for (hit_test_generation, read_write) in [(1, true), (2, false), (3, true)] {
+ for (structural_epoch, read_write) in [(1, true), (2, false), (3, true)] {
if read_write {
arena.note_publishing_paint_recording_started();
}
- // Each recording is of another tree, so that it takes a new list.
+ // Each recording is of another tree, so that it places other hit-test items.
let output = RecordingOutput {
- recorded_structural_epoch: hit_test_generation,
- hit_test_list: HitTestList {
- generation: hit_test_generation,
- recorded_structural_epoch: hit_test_generation,
- ..Default::default()
- },
+ recorded_structural_epoch: structural_epoch,
..Default::default()
};
- let mut generation = 0;
- take_in_published_output(
+ take_in_presented_output(
&mut recorder,
- &mut hit_test_list,
- output,
+ &mut hit_test_items_on_screen,
+ Arc::new(output),
read_write,
- |output, changed| {
- generation = take_in_recording(&mut arena, output, changed, read_write);
- },
- );
- assert_eq!(generation, hit_test_generation);
- assert_eq!(
- hit_test_list.as_ref().map_or(0, |list| list.generation),
- hit_test_generation
+ |output| take_in_recording(&mut arena, output, read_write),
);
+ assert_eq!(hit_test_items_on_screen.generation(), structural_epoch);
let source = recorder.published_recording.clone().unwrap();
- match hit_test_generation {
+ match structural_epoch {
1 => {
original_source = Some(source);
arena.push_paint_damage(row, PaintDamage::DRAW_FOREGROUND);
@@ -470,7 +403,7 @@ mod tests {
arena.note_publishing_paint_recording_started();
arena.push_paint_damage(kept, PaintDamage::DRAW_FOREGROUND);
let take_in = |arena: &mut LayoutNodeArena, publishes_recording| {
- take_in_recording(arena, Arc::new(RecordingOutput::default()), true, publishes_recording);
+ take_in_recording(arena, Arc::new(RecordingOutput::default()), publishes_recording);
};
// The published frame consumes what it recorded, and what was pushed as it recorded stays.
@@ -503,33 +436,24 @@ mod tests {
}
#[test]
- fn a_recording_that_emits_the_same_items_at_the_same_epoch_keeps_the_list() {
- let mut arena = LayoutNodeArena::new();
- let mut recorder = RecorderState::default();
- let mut hit_test_list = None;
- let mut first_items = None;
- // Two recordings of one tree emit the same items: the first list stands, and the published items with it.
- // A recording of another tree takes a new list.
- for (structural_epoch, expected_generation) in [(7, 1), (7, 1), (8, 2)] {
- arena.note_publishing_paint_recording_started();
- let output = RecordingOutput {
- recorded_structural_epoch: structural_epoch,
- hit_test_list: HitTestList {
- recorded_structural_epoch: structural_epoch,
- ..Default::default()
- },
- ..Default::default()
- };
- let mut generation = 0;
- take_in_published_output(&mut recorder, &mut hit_test_list, output, true, |output, changed| {
- generation = take_in_recording(&mut arena, output, changed, true);
- });
- assert_eq!(generation, expected_generation);
- let items = &hit_test_list.as_ref().unwrap().items;
- let first_items = first_items.get_or_insert_with(|| items.clone());
- assert_eq!(Arc::ptr_eq(first_items, items), structural_epoch == 7);
- let published = recorder.published_hit_test_items.as_ref().unwrap();
- assert!(Arc::ptr_eq(&published.items, items));
+ fn a_frame_of_the_same_hit_test_items_keeps_the_generation_of_the_frame_on_screen() {
+ let mut hit_test_items_on_screen = HitTestItemsOnScreen::default();
+ assert_eq!(hit_test_items_on_screen.generation(), 0);
+ let frame = |hit_test_items_stamp, recorded_structural_epoch| RecordingOutput {
+ hit_test_items_stamp,
+ recorded_structural_epoch,
+ ..Default::default()
+ };
+ // Frames of rows that place the same items in one tree keep the generation, and another stamp or another
+ // tree moves it on.
+ for (stamp, structural_epoch, expected_generation) in [(4, 7, 1), (4, 7, 1), (5, 7, 2), (5, 8, 3)] {
+ hit_test_items_on_screen.take_in(&frame(stamp, structural_epoch));
+ assert_eq!(hit_test_items_on_screen.generation(), expected_generation);
}
+ // A frame behind the rows leaves none, and the same frame after it is another.
+ hit_test_items_on_screen.forget();
+ assert_eq!(hit_test_items_on_screen.generation(), 0);
+ hit_test_items_on_screen.take_in(&frame(5, 8));
+ assert_eq!(hit_test_items_on_screen.generation(), 4);
}
}
diff --git a/Libraries/LibWeb/Rust/src/painting/record/recorder_state.rs b/Libraries/LibWeb/Rust/src/painting/record/recorder_state.rs
index 9c14cc8ded1..172b5b63264 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/recorder_state.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/recorder_state.rs
@@ -6,10 +6,10 @@
use crate::css::css_pixels::CssPixelRect;
use crate::layout::node_data::NodeSlotId;
+use crate::painting::record::RecordingOutput;
use crate::painting::record::inputs::RecordingInputs;
use crate::painting::record::order_tree::{PaintOrderTree, PaintOrderTreeAccess};
use crate::painting::record::scratch::RecordingScratch;
-use crate::painting::record::{PublishedHitTestItems, RecordingOutput};
use std::cell::RefCell;
use std::sync::{Arc, Mutex, MutexGuard, PoisonError};
@@ -76,7 +76,6 @@ impl PaintOrderTreeHandle {
pub(crate) struct RecorderState {
/// The last recording that published, which the next one copies clean output from.
pub(crate) published_recording: Option<Arc<RecordingOutput>>,
- pub(crate) published_hit_test_items: Option<Arc<PublishedHitTestItems>>,
/// The paint-order tree describing the published recording; a recording that publishes
/// appends to it and publication or discarding decides what stays.
pub(crate) paint_order_tree: PaintOrderTreeHandle,
@@ -95,7 +94,6 @@ impl RecorderState {
pub(crate) fn fork(&self) -> Self {
Self {
published_recording: self.published_recording.clone(),
- published_hit_test_items: self.published_hit_test_items.clone(),
paint_order_tree: self.paint_order_tree.reader(),
scratch: Default::default(),
absolute_rects: Default::default(),
@@ -136,7 +134,6 @@ impl RecorderState {
/// copies nothing from it and records from scratch into a tree of its own.
pub(crate) fn forget_published_recording(&mut self) {
self.published_recording = None;
- self.published_hit_test_items = None;
self.paint_order_tree = Default::default();
}
}
diff --git a/Libraries/LibWeb/Rust/src/painting/record/trace.rs b/Libraries/LibWeb/Rust/src/painting/record/trace.rs
index b2dc1ca1a29..89f619c7dd8 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/trace.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/trace.rs
@@ -192,9 +192,6 @@ fn producer_name(kind: ProducerKind) -> &'static str {
ProducerKind::DrawForeground => "foreground",
ProducerKind::DrawOutline => "outline",
ProducerKind::DrawOverlay => "overlay",
- ProducerKind::HitBackground => "background/hit-test",
- ProducerKind::HitForeground => "foreground/hit-test",
- ProducerKind::HitOverlay => "overlay/hit-test",
ProducerKind::ScrollMetadata => "scroll-metadata",
ProducerKind::ScopePreamble => "preamble",
ProducerKind::Svg => "svg",
diff --git a/Libraries/LibWeb/Rust/src/painting/record/traversal.rs b/Libraries/LibWeb/Rust/src/painting/record/traversal.rs
index cd80d1bda23..5314c95d9ca 100644
--- a/Libraries/LibWeb/Rust/src/painting/record/traversal.rs
+++ b/Libraries/LibWeb/Rust/src/painting/record/traversal.rs
@@ -12,7 +12,6 @@ use crate::layout::node_data::NodeSlotId;
use crate::painting::display_list::commands::ContextRef;
use crate::painting::display_list::device_pixels::DevicePixelConverter;
use crate::painting::display_list::recorder::DisplayListRecorder;
-use crate::painting::hit_test::HitTestList;
use crate::painting::node_painting;
use crate::painting::paint_order_plan::PaintScope;
use crate::painting::paint_read::{GeometryRead, PaintSource};
@@ -25,10 +24,9 @@ use crate::painting::record::resources::RecordingResourceManifest;
use crate::painting::record::scratch::RecordingScratch;
use crate::painting::record::svg_resources::MaskLayerSet;
use crate::painting::record::trace::{Action, Operation};
-use crate::painting::record::{PublishedHitTestItems, RecordingOutput, RecordingResult};
+use crate::painting::record::{RecordingOutput, RecordingResult};
use std::sync::Arc;
-#[allow(clippy::too_many_arguments)]
pub(crate) fn record_display_list(
source: &PaintSource<'_>,
scratch: &mut RecordingScratch,
@@ -36,21 +34,12 @@ pub(crate) fn record_display_list(
viewport: NodeSlotId,
inputs: &RecordingInputs,
source_recording: Option<Arc<RecordingOutput>>,
- source_items: Option<Arc<PublishedHitTestItems>>,
trace: bool,
) -> RecordingResult {
scratch.begin_recording(source.frame().paintable_row_capacity());
macro_rules! record {
($observer:ty) => {
- record_display_list_impl::<$observer>(
- source,
- scratch,
- tree,
- viewport,
- inputs,
- source_recording,
- source_items,
- )
+ record_display_list_impl::<$observer>(source, scratch, tree, viewport, inputs, source_recording)
};
}
let result = if trace {
@@ -62,7 +51,6 @@ pub(crate) fn record_display_list(
result
}
-#[allow(clippy::too_many_arguments)]
fn record_display_list_impl<O: Observer>(
source: &PaintSource<'_>,
scratch: &mut RecordingScratch,
@@ -70,7 +58,6 @@ fn record_display_list_impl<O: Observer>(
viewport: NodeSlotId,
inputs: &RecordingInputs,
source_recording: Option<Arc<RecordingOutput>>,
- source_items: Option<Arc<PublishedHitTestItems>>,
) -> RecordingResult {
let paint_state = source.frame().paint_state();
let structural_epoch = paint_state.structural_epoch();
@@ -85,14 +72,9 @@ fn record_display_list_impl<O: Observer>(
let source_is_usable = source_recording
.as_ref()
.is_some_and(|frame| frame.frame_inputs == frame_inputs)
- && source_items.is_some()
&& !source.frame().damage().covers_everything()
&& !source.frame().damage().scroll_metadata_everywhere();
- let (source_recording, source_items) = if source_is_usable {
- (source_recording, source_items)
- } else {
- (None, None)
- };
+ let source_recording = source_recording.filter(|_| source_is_usable);
let window_focus_changed = source_recording
.as_ref()
.is_some_and(|frame| frame.window_is_focused != inputs.window_is_focused);
@@ -107,7 +89,6 @@ fn record_display_list_impl<O: Observer>(
viewport,
ink_bounds_audit: super::ink_bounds::InkBoundsAudit::new(),
source_recording,
- source_items,
live_producer: false,
producer_reads_window_focus: std::cell::Cell::new(false),
line_root_positions: None,
@@ -115,10 +96,6 @@ fn record_display_list_impl<O: Observer>(
blocking_wheel_event_region_count: 0,
records_per_box_wheel_hit_test_targets: frame_inputs.records_per_box_wheel_hit_test_targets(),
observer: O::default(),
- list: HitTestList {
- item_capacity_hint_from_previous_list: paint_state.hit_test_item_capacity_hint,
- ..HitTestList::default()
- },
scratch,
resources: RecordingResourceManifest::default(),
};
@@ -132,25 +109,23 @@ fn record_display_list_impl<O: Observer>(
|| !inputs.flex_overlays.is_empty()
|| inputs.caret_debug_rect.is_some();
let root_scope = PaintScope::stacking_context(viewport);
- // Nothing was pushed and nothing records every frame: the published tape and items are
- // this frame, which lets the compositor skip its update as well.
+ // Nothing was pushed and nothing records every frame: the published tape is this frame,
+ // which lets the compositor skip its update as well.
let unchanged_frame = recorder
.source_recording
.as_ref()
- .zip(recorder.source_items.as_ref())
- .filter(|(frame, _)| {
+ .filter(|frame| {
frame_is_unchanged(tree.read(), !source.frame().damage().is_empty(), window_focus_changed)
&& !has_inspector_overlays
&& frame.prologue_bytes == prologue_bytes
&& recorder.recorder.bytes() == &frame.display_list.bytes[..prologue_bytes as usize]
})
- .map(|(frame, items)| (frame.display_list.clone(), items.items.clone()));
+ .map(|frame| frame.display_list.clone());
let display_list = match unchanged_frame {
- Some((display_list, items)) => {
+ Some(display_list) => {
recorder
.observer
.observe(|log| log.leaf(Operation::Scope(root_scope), Action::Copy, false));
- recorder.list.items = items;
recorder.blocking_wheel_event_region_count = tree.read().root_entry().output().blocking_wheel_event_regions;
display_list
}
@@ -182,9 +157,6 @@ fn record_display_list_impl<O: Observer>(
}
};
recorder.ink_bounds_audit.report();
- let mut hit_test_list = recorder.list;
- hit_test_list.generation = paint_state.hit_test_list_generation + 1;
- hit_test_list.recorded_structural_epoch = structural_epoch;
let output = RecordingOutput {
recorded_structural_epoch: structural_epoch,
visual_context_tree: paint_state.visual_context_tree.clone(),
@@ -192,7 +164,7 @@ fn record_display_list_impl<O: Observer>(
root_background_canvas_rect,
prologue_bytes,
root_group_color,
- hit_test_list,
+ hit_test_items_stamp: source.hit_test_items_stamp(),
display_list,
has_blocking_wheel_event_listeners: recorder.blocking_wheel_event_region_count > 0,
wheel_event_listener_state_generation: inputs.wheel_event_listener_state_generation,
@@ -236,15 +208,6 @@ impl<O: Observer> PaintRecorder<'_, O> {
if self.declare_mask_contents(svg_box, MaskLayerSet::SvgOnly) {
return;
}
- let before = self.list.items.len();
- self.record_hit_test_items(svg_box, PaintPhase::Foreground);
- self.observer.observe(|log| {
- log.leaf(
- Operation::Producer(svg_box, ProducerKind::HitForeground),
- Action::Record,
- self.list.items.len() == before,
- );
- });
self.trace_paint(Operation::Producer(svg_box, ProducerKind::DrawForeground), |this| {
crate::painting::record::paint::paint(this, svg_box, PaintPhase::Foreground);
});
diff --git a/Libraries/LibWeb/Rust/src/painting/recording_slot.rs b/Libraries/LibWeb/Rust/src/painting/recording_slot.rs
index 5b6ba0d686f..9046f937582 100644
--- a/Libraries/LibWeb/Rust/src/painting/recording_slot.rs
+++ b/Libraries/LibWeb/Rust/src/painting/recording_slot.rs
@@ -20,12 +20,11 @@ use crate::layout::node_data::NodeSlotId;
use crate::layout::{LayoutNodeArena, RowsVersion};
use crate::paint_stage::Presenting;
use crate::painting::ffi::FfiFlightBlocker;
-use crate::painting::hit_test::HitTestList;
use crate::painting::paint_read::PaintSource;
use crate::painting::paint_state::{PendingRecording, PendingRecordingTrace};
use crate::painting::presentation::Presentation;
use crate::painting::published_frame::PublishedFrame;
-use crate::painting::record::publish::PresentedOutput;
+use crate::painting::record::publish::HitTestItemsOnScreen;
use crate::painting::record::recorder_state::RecorderState;
use crate::painting::record::vector_images::VectorImageRenderRequest;
use crate::painting::record::{RecordingInputs, RecordingOutput};
@@ -67,7 +66,7 @@ enum Recorded {
Nothing,
Pending(PendingRecording),
Presented {
- output: PresentedOutput,
+ output: Arc<RecordingOutput>,
publishes_recording: bool,
},
PresentedUnrecorded,
@@ -200,11 +199,10 @@ impl RecordingAnswer {
/// the frame, and the recording the lane's fork of the render state takes in, if one published. None where the
/// frame presented nothing a lane starts from.
pub(crate) fn clock_lane_recorder(&self) -> Option<(RecorderState, Presentation, Option<Arc<RecordingOutput>>)> {
- let fork_after = |published: Option<&PresentedOutput>| {
+ let fork_after = |published: Option<&Arc<RecordingOutput>>| {
let mut recorder = self.recorder.fork();
if let Some(published) = published {
- recorder.published_hit_test_items = Some(published.published_hit_test_items());
- recorder.published_recording = Some(published.output.clone());
+ recorder.published_recording = Some(Arc::clone(published));
}
recorder
};
@@ -213,7 +211,7 @@ impl RecordingAnswer {
Recorded::Presented {
output,
publishes_recording: true,
- } => (fork_after(Some(output)), Some(output.output.clone())),
+ } => (fork_after(Some(output)), Some(Arc::clone(output))),
_ => return None,
};
Some((recorder, self.presentation.as_ref()?.for_clock_lane()?, output))
@@ -476,7 +474,6 @@ pub(crate) fn record_frame(
) -> (PendingRecording, Option<PendingRecordingTrace>) {
let RecorderState {
published_recording,
- published_hit_test_items,
paint_order_tree,
scratch,
absolute_rects,
@@ -491,7 +488,6 @@ pub(crate) fn record_frame(
viewport,
&inputs,
published_recording.clone(),
- published_hit_test_items.clone(),
trace_recordings,
)
});
@@ -527,11 +523,11 @@ pub(crate) fn present(
pending: PendingRecording,
recorder: &RecorderState,
presenting: &mut Presenting,
-) -> PresentedOutput {
- let output = PresentedOutput::of(crate::painting::record::publish::publish_to_presenter(
+) -> Arc<RecordingOutput> {
+ let output = Arc::new(crate::painting::record::publish::publish_to_presenter(
pending, recorder,
));
- presentation.present(&output.output, presenting);
+ presentation.present(&output, presenting);
output
}
@@ -543,13 +539,13 @@ pub(crate) fn present_with_vector_images(
recorder: &RecorderState,
presenting: &mut Presenting,
vector_images: &[Arc<VectorImageRecords>],
-) -> PresentedOutput {
- let output = PresentedOutput::of(crate::painting::record::publish::publish_with_vector_images(
+) -> Arc<RecordingOutput> {
+ let output = Arc::new(crate::painting::record::publish::publish_with_vector_images(
pending,
recorder,
vector_images,
));
- presentation.present(&output.output, presenting);
+ presentation.present(&output, presenting);
output
}
@@ -560,7 +556,6 @@ pub(crate) struct FrameInputs {
pub(crate) publishes_recording: bool,
/// The canvas rect the root background painted in the recording published last, if any.
pub(crate) published_root_background_canvas_rect: Option<crate::css::css_pixels::CssPixelRect>,
- pub(crate) hit_test_item_capacity_hint: usize,
}
/// A document's frame, frozen for a recording, with what the recording reads beside it, and the rows version it was
@@ -603,7 +598,7 @@ pub(crate) fn freeze_recording_frame(arena: &mut LayoutNodeArena, inputs: FrameI
arena.note_publishing_paint_recording_started();
}
// The recording reads the document as it is now: what the host writes after this goes to the next frame.
- let frame = arena.freeze_frame(inputs.hit_test_item_capacity_hint);
+ let frame = arena.freeze_frame();
let rows_version = arena.rows_version();
let paint_state = arena.paint_state();
Some(FrozenFrame {
@@ -676,23 +671,22 @@ pub(crate) enum RecordingLanding {
/// [`RecordingSlot::take_vector_image_frame`]); it keeps the presentation.
NeedsVectorImages,
/// The recording landed after the host wrote the document's rows. What it recorded stands as
- /// the compositor's frame, whether it presented it or the host does, but not its hit-test list,
- /// which names boxes that may be gone: the document keeps none.
+ /// the compositor's frame, whether it presented it or the host does, but not what hit testing reads of
+ /// it, as the boxes it shows may be gone.
LandedBehindRows(Option<Presentation>),
}
-/// What takes in a recording that presented itself: its output, whether the document's hit-test list
-/// changed, and whether the recording publishes.
-pub(crate) type TakeInPresented<'a> = &'a mut dyn FnMut(Arc<RecordingOutput>, bool, bool);
+/// What takes in a recording that presented itself: its output, and whether the recording publishes.
+pub(crate) type TakeInPresented<'a> = &'a mut dyn FnMut(Arc<RecordingOutput>, bool);
/// A recording the host publishes, with what its publication writes of the document's recordings.
pub(crate) struct Publication<'a> {
pub(crate) pending: PendingRecording,
- /// Whether the recording landed after the host wrote the document's rows, so that the hit-test
- /// list it made names boxes that may be gone.
+ /// Whether the recording landed after the host wrote the document's rows, so that the boxes the
+ /// frame shows may be gone.
pub(crate) behind_rows: bool,
pub(crate) recorder: &'a mut RecorderState,
- pub(crate) hit_test_list: &'a mut Option<HitTestList>,
+ pub(crate) hit_test_items_on_screen: &'a mut HitTestItemsOnScreen,
}
/// A recording that landed for the host to publish, and whether it landed behind the rows.
@@ -702,8 +696,8 @@ struct PendingPublication {
}
/// What a document keeps of its recordings: the recording its host is to publish, the trace that
-/// recording left, the recorder state the next recording records with, and the hit-test list of the
-/// last recording published, which hit testing reads.
+/// recording left, the recorder state the next recording records with, and what the hit-test items of
+/// the frame on screen are as of.
#[derive(Default)]
pub(crate) struct RecordingSlot {
pending_recording: Option<PendingPublication>,
@@ -711,7 +705,7 @@ pub(crate) struct RecordingSlot {
vector_image_frame: Option<SampledFrame<VectorImageFrame>>,
pending_recording_trace: Option<PendingRecordingTrace>,
recorder: Recorder,
- hit_test_list: Option<HitTestList>,
+ hit_test_items_on_screen: HitTestItemsOnScreen,
}
impl RecordingSlot {
@@ -720,7 +714,7 @@ impl RecordingSlot {
}
/// The pending recording, for the host to publish, with the recorder state it recorded with and
- /// the hit-test list it replaces. A recording is pending only once it has landed.
+ /// what the frame it replaces on screen placed. A recording is pending only once it has landed.
pub(crate) fn take_publication(&mut self) -> Option<Publication<'_>> {
let Recorder::Here(recorder) = &mut self.recorder else {
return None;
@@ -730,7 +724,7 @@ impl RecordingSlot {
pending,
behind_rows,
recorder,
- hit_test_list: &mut self.hit_test_list,
+ hit_test_items_on_screen: &mut self.hit_test_items_on_screen,
})
}
@@ -753,14 +747,10 @@ impl RecordingSlot {
matches!(self.recorder, Recorder::InFlight(_))
}
- /// The hit-test list of the last recording published, if any was.
- pub(crate) fn hit_test_list(&mut self) -> &mut Option<HitTestList> {
- &mut self.hit_test_list
- }
-
- /// How many items the next recording's hit-test list may hold, going by the last one's.
- pub(crate) fn hit_test_item_capacity_hint(&self) -> usize {
- self.hit_test_list.as_ref().map_or(0, |list| list.items.len())
+ /// The generation of the hit-test items of the frame on screen, which moves on whenever a frame places other
+ /// items, or zero where no frame stands.
+ pub(crate) fn hit_test_items_generation(&self) -> u64 {
+ self.hit_test_items_on_screen.generation()
}
/// The recorder state, for a recording to take until it answers. The host takes a recording in
@@ -803,17 +793,15 @@ impl RecordingSlot {
publishes_recording,
} => crate::painting::record::publish::take_in_presented_output(
&mut recorder,
- &mut self.hit_test_list,
+ &mut self.hit_test_items_on_screen,
output,
publishes_recording,
- |output, hit_test_list_changed| {
- take_in(output, hit_test_list_changed || behind_rows, publishes_recording);
- },
+ |output| take_in(output, publishes_recording),
),
}
self.recorder = Recorder::Here(recorder);
if behind_rows {
- self.hit_test_list = None;
+ self.hit_test_items_on_screen.forget();
}
presentation
}
@@ -821,7 +809,7 @@ impl RecordingSlot {
/// Takes in what a recording the host waited for answered, leaving it pending for the host to
/// publish.
pub(crate) fn accept_recording_answer(&mut self, answer: RecordingAnswer) {
- let presentation = self.land(answer, false, &mut |_, _, _| {
+ let presentation = self.land(answer, false, &mut |_, _| {
unreachable!("a recording the host waits for presents nothing itself")
});
debug_assert!(
@@ -973,7 +961,7 @@ mod tests {
recorder_of(&mut slot).unwrap().published_recording = Some(published.clone());
let job = RecordingJob {
- frame: arena.freeze_frame(0),
+ frame: arena.freeze_frame(),
rows_version: RowsVersion::default(),
recorder: slot.take_recorder(),
viewport: NodeSlotId::INVALID,
@@ -1012,7 +1000,7 @@ mod tests {
crate::paint_stage::paint_thread().submit(move |_| answer(recorder, recorded))
}
- fn take_in_nothing(_: Arc<RecordingOutput>, _: bool, _: bool) {
+ fn take_in_nothing(_: Arc<RecordingOutput>, _: bool) {
panic!("the recording presented nothing itself");
}
@@ -1048,7 +1036,7 @@ mod tests {
let flight = flight_of(
&mut slot,
Recorded::Presented {
- output: PresentedOutput::of(RecordingOutput::default()),
+ output: Arc::new(RecordingOutput::default()),
publishes_recording: true,
},
);
@@ -1058,7 +1046,7 @@ mod tests {
match slot.take_finished_recording_in(
&TaskBoundary::for_test(),
|_| true,
- &mut |output, _, publishes_recording| {
+ &mut |output, publishes_recording| {
taken_in = Some((output, publishes_recording));
},
) {
@@ -1074,28 +1062,23 @@ mod tests {
recorder_of(&mut slot).unwrap().published_recording.as_ref().unwrap(),
&output
));
- assert!(slot.hit_test_list().is_some());
+ assert_ne!(slot.hit_test_items_generation(), 0);
}
#[test]
- fn a_recording_that_lands_behind_the_rows_keeps_no_hit_test_list() {
+ fn a_recording_that_lands_behind_the_rows_leaves_no_hit_test_items_on_screen() {
let mut slot = RecordingSlot::default();
let flight = flight_of(
&mut slot,
Recorded::Presented {
- output: PresentedOutput::of(RecordingOutput::default()),
+ output: Arc::new(RecordingOutput::default()),
publishes_recording: false,
},
);
slot.fly(flight);
- let mut hit_test_list_changed = false;
- let landing = slot.join_recording_in_flight(|_| false, &mut |_, changed, _| hit_test_list_changed = changed);
+ let landing = slot.join_recording_in_flight(|_| false, &mut |_, _| {});
assert!(matches!(landing, RecordingLanding::LandedBehindRows(None)));
- assert!(
- hit_test_list_changed,
- "the hit-test list the document read is no longer current"
- );
- assert!(slot.hit_test_list().is_none());
+ assert_eq!(slot.hit_test_items_generation(), 0);
let flight = flight_of(&mut slot, Recorded::Pending(pending(false)));
slot.fly(flight);
diff --git a/Libraries/LibWeb/Rust/src/render_state/clock.rs b/Libraries/LibWeb/Rust/src/render_state/clock.rs
index d6e8b7ee512..3af8509e679 100644
--- a/Libraries/LibWeb/Rust/src/render_state/clock.rs
+++ b/Libraries/LibWeb/Rust/src/render_state/clock.rs
@@ -465,7 +465,6 @@ pub(crate) enum TickPresented {
/// The frame, which the fork takes in as its last recording.
Frame {
output: Arc<RecordingOutput>,
- hit_test_list_changed: bool,
publishes: bool,
},
/// Nothing: the frame renders an SVG image the recording published last did not draw, which only the host renders,
@@ -1781,13 +1780,7 @@ fn freeze_tick_frame(
} = clock_recorder;
match std::mem::replace(presented, TickPresented::Nothing) {
TickPresented::Nothing => {}
- TickPresented::Frame {
- output,
- hit_test_list_changed,
- publishes,
- } => {
- take_in_recording(arena, output, hit_test_list_changed, publishes);
- }
+ TickPresented::Frame { output, publishes } => take_in_recording(arena, output, publishes),
TickPresented::LeftToHost => return Err(Park("the host presents the frame")),
}
let viewport = arena.layout_root();
@@ -1814,10 +1807,6 @@ fn freeze_tick_frame(
.published_recording
.as_ref()
.map(|recording| recording.root_background_canvas_rect),
- hit_test_item_capacity_hint: recorder
- .published_hit_test_items
- .as_ref()
- .map_or(0, |published| published.items.len()),
};
let Some(frozen) = freeze_recording_frame(arena, frame_inputs) else {
recorder.published_inputs = Some(inputs);
@@ -1866,10 +1855,9 @@ impl ClockRecorder {
),
None => present(&mut self.presentation, pending, &self.recorder, presenting),
};
- self.structural_epoch_on_screen = Some(output.output.recorded_structural_epoch);
+ self.structural_epoch_on_screen = Some(output.recorded_structural_epoch);
self.presented = TickPresented::Frame {
- output: output.output,
- hit_test_list_changed: true,
+ output,
publishes: false,
};
self
@@ -1877,7 +1865,6 @@ impl ClockRecorder {
/// Leaves the frame to the host, whose frame on screen a lane that presents no other frame cannot hit test.
fn leave_frame_to_host(&mut self) {
- self.recorder.published_hit_test_items = None;
self.structural_epoch_on_screen = None;
self.presented = TickPresented::LeftToHost;
}
diff --git a/Libraries/LibWeb/Rust/src/render_state/clock/lane.rs b/Libraries/LibWeb/Rust/src/render_state/clock/lane.rs
index ce2d4acb49f..4100b01ebdb 100644
--- a/Libraries/LibWeb/Rust/src/render_state/clock/lane.rs
+++ b/Libraries/LibWeb/Rust/src/render_state/clock/lane.rs
@@ -167,10 +167,8 @@ impl LaneDelivery {
return;
};
let presented = match output {
- // NB: The fork took no recording in since the frame was sampled, so the hit-test list moved on.
Some(output) => TickPresented::Frame {
output,
- hit_test_list_changed: true,
publishes: true,
},
None => TickPresented::Nothing,
diff --git a/Tests/LibWeb/Text/expected/hit_testing/empty-editable-caret-after-abspos-child-change.txt b/Tests/LibWeb/Text/expected/hit_testing/empty-editable-caret-after-abspos-child-change.txt
index bf757d9c7e3..d4b85923c5d 100644
--- a/Tests/LibWeb/Text/expected/hit_testing/empty-editable-caret-after-abspos-child-change.txt
+++ b/Tests/LibWeb/Text/expected/hit_testing/empty-editable-caret-after-abspos-child-change.txt
@@ -2,11 +2,9 @@ empty editor, cached: editor @0
empty editor, quiet: editor @0
empty editor, fresh: editor @0
child is non-editable: true
-after insertion, editor hit test updated: true
after insertion, cached: child @0
after insertion, quiet: child @0
after insertion, fresh: child @0
-after removal, editor hit test updated: true
after removal, cached: editor @0
after removal, quiet: editor @0
after removal, fresh: editor @0
diff --git a/Tests/LibWeb/Text/input/display_list/clean-scope-hit-geometry.html b/Tests/LibWeb/Text/input/display_list/clean-scope-hit-geometry.html
index 91e046b03ae..d1393e9d7f4 100644
--- a/Tests/LibWeb/Text/input/display_list/clean-scope-hit-geometry.html
+++ b/Tests/LibWeb/Text/input/display_list/clean-scope-hit-geometry.html
@@ -26,45 +26,35 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#external/descendants(background-and-borders) COPY
BlockContainer<DIV>#other/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#other/background/hit-test RECORD
BlockContainer<DIV>#other/scroll-metadata RECORD (empty)
BlockContainer<DIV>#other/background SKIP
BlockContainer<DIV>#other/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#external/descendants(foreground) COPY
BlockContainer<DIV>#other/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#other/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#other/foreground RECORD (empty)
BlockContainer<DIV>#other/outline SKIP
- BlockContainer<DIV>#other/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#other/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<DIV>#external COPY
BlockContainer<DIV>#scope COPY
@@ -81,50 +71,40 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#external/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIV>#other/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#external/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#other/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#external ASSEMBLE
- BlockContainer<DIV>#external/background/hit-test RECORD
BlockContainer<DIV>#external/scroll-metadata RECORD (empty)
BlockContainer<DIV>#external/background SKIP
BlockContainer<DIV>#external/border SKIP
BlockContainer<DIV>#scope/descendants(background-and-borders) COPY
BlockContainer<DIV>#scope/descendants(floats) COPY
BlockContainer<DIV>#scope/descendants(inline-background-and-borders) COPY
- BlockContainer<DIV>#external/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#external/foreground RECORD (empty)
BlockContainer<DIV>#scope/descendants(foreground) COPY
BlockContainer<DIV>#external/outline SKIP
- BlockContainer<DIV>#external/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#external/overlay SKIP
BlockContainer<DIV>#scope COPY
BlockContainer<HTML>#html/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-cache-abspos-child-insertion.html b/Tests/LibWeb/Text/input/display_list/paint-cache-abspos-child-insertion.html
index 9df8c13f7eb..9a77a674714 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-cache-abspos-child-insertion.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-cache-abspos-child-insertion.html
@@ -38,39 +38,31 @@ const insertionStep = {
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#container/descendants(background-and-borders) REPLAN
BlockContainer<DIV>#sibling/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#container/descendants(foreground) REPLAN
BlockContainer<DIV>#sibling/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#container REPLAN
- BlockContainer<DIV>#container/background/hit-test COPY
BlockContainer<DIV>#container/scroll-metadata COPY
BlockContainer<DIV>#container/background COPY
BlockContainer<DIV>#container/border COPY
@@ -80,23 +72,18 @@ const insertionStep = {
BlockContainer<DIV>#inserted/descendants(floats) RECORD
BlockContainer<DIV>#existing/descendants(inline-background-and-borders) COPY
BlockContainer<DIV>#inserted/descendants(inline-background-and-borders) RECORD
- BlockContainer<DIV>#container/foreground/hit-test COPY
BlockContainer<DIV>#container/foreground COPY
BlockContainer<DIV>#existing/descendants(foreground) COPY
BlockContainer<DIV>#inserted/descendants(foreground) RECORD
BlockContainer<DIV>#container/outline COPY
- BlockContainer<DIV>#container/overlay/hit-test COPY
BlockContainer<DIV>#container/overlay COPY
BlockContainer<DIV>#existing COPY
BlockContainer<DIV>#inserted RECORD
- BlockContainer<DIV>#inserted/background/hit-test RECORD
BlockContainer<DIV>#inserted/scroll-metadata RECORD (empty)
BlockContainer<DIV>#inserted/background RECORD
BlockContainer<DIV>#inserted/border SKIP
- BlockContainer<DIV>#inserted/foreground/hit-test RECORD
BlockContainer<DIV>#inserted/foreground RECORD
BlockContainer<DIV>#inserted/outline SKIP
- BlockContainer<DIV>#inserted/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#inserted/overlay SKIP
BlockContainer<DIV>#sibling COPY
BlockContainer<HTML>#html/outline COPY
@@ -136,50 +123,40 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#container/descendants(background-and-borders) REPLAN
BlockContainer<DIV>#sibling/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#container/descendants(foreground) REPLAN
BlockContainer<DIV>#sibling/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#container REPLAN
- BlockContainer<DIV>#container/background/hit-test COPY
BlockContainer<DIV>#container/scroll-metadata COPY
BlockContainer<DIV>#container/background COPY
BlockContainer<DIV>#container/border COPY
BlockContainer<DIV>#existing/descendants(background-and-borders) COPY
BlockContainer<DIV>#existing/descendants(floats) COPY
BlockContainer<DIV>#existing/descendants(inline-background-and-borders) COPY
- BlockContainer<DIV>#container/foreground/hit-test COPY
BlockContainer<DIV>#container/foreground COPY
BlockContainer<DIV>#existing/descendants(foreground) COPY
BlockContainer<DIV>#container/outline COPY
- BlockContainer<DIV>#container/overlay/hit-test COPY
BlockContainer<DIV>#container/overlay COPY
BlockContainer<DIV>#existing COPY
BlockContainer<DIV>#sibling COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-cache-first-recording-and-relayout.html b/Tests/LibWeb/Text/input/display_list/paint-cache-first-recording-and-relayout.html
index d4fd80362bd..1a84b81c96f 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-cache-first-recording-and-relayout.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-cache-first-recording-and-relayout.html
@@ -29,65 +29,49 @@ displayListTest({
@canvas RECORD (empty)
@viewport RECORD
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test RECORD
@viewport/scroll-metadata RECORD (empty)
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>#html/descendants(background-and-borders) RECORD
- @viewport/foreground/hit-test RECORD (empty)
@viewport/foreground RECORD (empty)
BlockContainer<HTML>#html/descendants(foreground) RECORD
BlockContainer<HTML>#html RECORD
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) RECORD
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#root/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#root/background/hit-test RECORD
BlockContainer<DIV>#root/scroll-metadata RECORD (empty)
BlockContainer<DIV>#root/background SKIP
BlockContainer<DIV>#root/border SKIP
BlockContainer<DIV>#card0.card/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#card0.card/background/hit-test RECORD
BlockContainer<DIV>#card0.card/scroll-metadata RECORD (empty)
BlockContainer<DIV>#card0.card/background SKIP
BlockContainer<DIV>#card0.card/border RECORD
BlockContainer<DIV>#card1.card/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#card1.card/background/hit-test RECORD
BlockContainer<DIV>#card1.card/scroll-metadata RECORD (empty)
BlockContainer<DIV>#card1.card/background SKIP
BlockContainer<DIV>#card1.card/border RECORD
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) RECORD
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#root/descendants(foreground) RECORD
- BlockContainer<DIV>#root/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#root/foreground RECORD (empty)
BlockContainer<DIV>#card0.card/descendants(foreground) RECORD
- BlockContainer<DIV>#card0.card/foreground/hit-test RECORD
BlockContainer<DIV>#card0.card/foreground RECORD
BlockContainer<DIV>#card0.card/outline SKIP
- BlockContainer<DIV>#card0.card/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#card0.card/overlay SKIP
BlockContainer<DIV>#card1.card/descendants(foreground) RECORD
- BlockContainer<DIV>#card1.card/foreground/hit-test RECORD
BlockContainer<DIV>#card1.card/foreground RECORD
BlockContainer<DIV>#card1.card/outline SKIP
- BlockContainer<DIV>#card1.card/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#card1.card/overlay SKIP
BlockContainer<DIV>#root/outline SKIP
- BlockContainer<DIV>#root/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#root/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
@viewport/outline SKIP
@@ -101,56 +85,43 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#root/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#root/background/hit-test COPY
BlockContainer<DIV>#root/scroll-metadata COPY
BlockContainer<DIV>#root/background COPY
BlockContainer<DIV>#root/border COPY
BlockContainer<DIV>#card0.card/descendants(background-and-borders) COPY
BlockContainer<DIV>#card1.card/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#card1.card/background/hit-test RECORD
BlockContainer<DIV>#card1.card/scroll-metadata RECORD (empty)
BlockContainer<DIV>#card1.card/background SKIP
BlockContainer<DIV>#card1.card/border RECORD
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#root/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#root/foreground/hit-test COPY
BlockContainer<DIV>#root/foreground COPY
BlockContainer<DIV>#card0.card/descendants(foreground) COPY
BlockContainer<DIV>#card1.card/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#card1.card/foreground/hit-test RECORD
BlockContainer<DIV>#card1.card/foreground RECORD
BlockContainer<DIV>#card1.card/outline SKIP
- BlockContainer<DIV>#card1.card/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#card1.card/overlay SKIP
BlockContainer<DIV>#root/outline COPY
- BlockContainer<DIV>#root/overlay/hit-test COPY
BlockContainer<DIV>#root/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-cache-interior-change-after-quiet-frame.html b/Tests/LibWeb/Text/input/display_list/paint-cache-interior-change-after-quiet-frame.html
index f3b4f568625..b79c19e561d 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-cache-interior-change-after-quiet-frame.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-cache-interior-change-after-quiet-frame.html
@@ -30,56 +30,43 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#container/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#container/background/hit-test COPY
BlockContainer<DIV>#container/scroll-metadata COPY
BlockContainer<DIV>#container/background COPY
BlockContainer<DIV>#container/border COPY
BlockContainer<DIV>#card0.card/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#card0.card/background/hit-test COPY
BlockContainer<DIV>#card0.card/scroll-metadata COPY
BlockContainer<DIV>#card0.card/background SKIP
BlockContainer<DIV>#card0.card/border RECORD
BlockContainer<DIV>#card1.card/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#container/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#container/foreground/hit-test COPY
BlockContainer<DIV>#container/foreground COPY
BlockContainer<DIV>#card0.card/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#card0.card/foreground/hit-test COPY
BlockContainer<DIV>#card0.card/foreground RECORD
BlockContainer<DIV>#card0.card/outline SKIP
- BlockContainer<DIV>#card0.card/overlay/hit-test COPY
BlockContainer<DIV>#card0.card/overlay SKIP
BlockContainer<DIV>#card1.card/descendants(foreground) COPY
BlockContainer<DIV>#container/outline COPY
- BlockContainer<DIV>#container/overlay/hit-test COPY
BlockContainer<DIV>#container/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
@@ -101,56 +88,43 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#container/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#container/background/hit-test COPY
BlockContainer<DIV>#container/scroll-metadata COPY
BlockContainer<DIV>#container/background COPY
BlockContainer<DIV>#container/border COPY
BlockContainer<DIV>#card0.card/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#card0.card/background/hit-test COPY
BlockContainer<DIV>#card0.card/scroll-metadata COPY
BlockContainer<DIV>#card0.card/background SKIP
BlockContainer<DIV>#card0.card/border RECORD
BlockContainer<DIV>#card1.card/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#container/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#container/foreground/hit-test COPY
BlockContainer<DIV>#container/foreground COPY
BlockContainer<DIV>#card0.card/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#card0.card/foreground/hit-test COPY
BlockContainer<DIV>#card0.card/foreground RECORD
BlockContainer<DIV>#card0.card/outline SKIP
- BlockContainer<DIV>#card0.card/overlay/hit-test COPY
BlockContainer<DIV>#card0.card/overlay SKIP
BlockContainer<DIV>#card1.card/descendants(foreground) COPY
BlockContainer<DIV>#container/outline COPY
- BlockContainer<DIV>#container/overlay/hit-test COPY
BlockContainer<DIV>#container/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-cache-relayout-paint-inputs.html b/Tests/LibWeb/Text/input/display_list/paint-cache-relayout-paint-inputs.html
index a1af76480df..2aeb9d4ed65 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-cache-relayout-paint-inputs.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-cache-relayout-paint-inputs.html
@@ -47,27 +47,22 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#target/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#target/background/hit-test RECORD
BlockContainer<DIV>#target/scroll-metadata RECORD (empty)
BlockContainer<DIV>#target/background RECORD
BlockContainer<DIV>#target/border SKIP
@@ -77,33 +72,25 @@ displayListTest({
BlockContainer<DIV>#target/descendants(inline-background-and-borders) ASSEMBLE
InlineNode<SPAN>#inline/descendants(inline-background-and-borders) ASSEMBLE
CanvasBox<CANVAS>#trigger/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#target/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#target/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#target/foreground RECORD (empty)
InlineNode<SPAN>#inline/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#target/outline SKIP
- BlockContainer<DIV>#target/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#target/overlay SKIP
CanvasBox<CANVAS>#trigger/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
InlineNode<SPAN>#inline ASSEMBLE
- InlineNode<SPAN>#inline/background/hit-test RECORD
InlineNode<SPAN>#inline/scroll-metadata RECORD (empty)
InlineNode<SPAN>#inline/background SKIP
InlineNode<SPAN>#inline/border SKIP
- InlineNode<SPAN>#inline/foreground/hit-test RECORD
InlineNode<SPAN>#inline/inline-piece RECORD (empty)
InlineNode<SPAN>#inline/text-fragment RECORD
InlineNode<SPAN>#inline/foreground RECORD (empty)
InlineNode<SPAN>#inline/outline SKIP
- InlineNode<SPAN>#inline/overlay/hit-test RECORD (empty)
InlineNode<SPAN>#inline/overlay SKIP
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
@@ -131,27 +118,22 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#target/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#target/background/hit-test COPY
BlockContainer<DIV>#target/scroll-metadata COPY
BlockContainer<DIV>#target/background RECORD
BlockContainer<DIV>#target/border SKIP
@@ -161,33 +143,25 @@ displayListTest({
BlockContainer<DIV>#target/descendants(inline-background-and-borders) ASSEMBLE
InlineNode<SPAN>#inline/descendants(inline-background-and-borders) ASSEMBLE
CanvasBox<CANVAS>#trigger/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#target/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#target/foreground/hit-test COPY
BlockContainer<DIV>#target/foreground RECORD (empty)
InlineNode<SPAN>#inline/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#target/outline SKIP
- BlockContainer<DIV>#target/overlay/hit-test COPY
BlockContainer<DIV>#target/overlay SKIP
CanvasBox<CANVAS>#trigger/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
InlineNode<SPAN>#inline ASSEMBLE
- InlineNode<SPAN>#inline/background/hit-test COPY
InlineNode<SPAN>#inline/scroll-metadata COPY
InlineNode<SPAN>#inline/background SKIP
InlineNode<SPAN>#inline/border SKIP
- InlineNode<SPAN>#inline/foreground/hit-test COPY
InlineNode<SPAN>#inline/inline-piece RECORD (empty)
InlineNode<SPAN>#inline/text-fragment RECORD
InlineNode<SPAN>#inline/foreground RECORD (empty)
InlineNode<SPAN>#inline/outline SKIP
- InlineNode<SPAN>#inline/overlay/hit-test COPY
InlineNode<SPAN>#inline/overlay SKIP
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-cache-scrollability-flip-scope.html b/Tests/LibWeb/Text/input/display_list/paint-cache-scrollability-flip-scope.html
index 3b5d96e679b..4dc32738d26 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-cache-scrollability-flip-scope.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-cache-scrollability-flip-scope.html
@@ -53,27 +53,22 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
Box<DIV>#row.row/descendants(background-and-borders) ASSEMBLE
- Box<DIV>#row.row/background/hit-test COPY
Box<DIV>#row.row/scroll-metadata COPY
Box<DIV>#row.row/background COPY
Box<DIV>#row.row/border COPY
@@ -81,35 +76,27 @@ displayListTest({
BlockContainer<DIV>#outer.box/descendants(background-and-borders) COPY
BlockContainer<DIV>#row-2.box/descendants(background-and-borders) ASSEMBLE
Box<DIV>#second-row.row/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
Box<DIV>#row.row/descendants(foreground) ASSEMBLE
- Box<DIV>#row.row/foreground/hit-test COPY
Box<DIV>#row.row/foreground COPY
BlockContainer<DIV>#row-0.box/descendants(foreground) COPY
BlockContainer<DIV>#outer.box/descendants(foreground) COPY
BlockContainer<DIV>#row-2.box/descendants(foreground) ASSEMBLE
Box<DIV>#row.row/outline COPY
- Box<DIV>#row.row/overlay/hit-test COPY
Box<DIV>#row.row/overlay COPY
Box<DIV>#second-row.row/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#row-0.box COPY
BlockContainer<DIV>#outer.box COPY
BlockContainer<DIV>#row-2.box ASSEMBLE
- BlockContainer<DIV>#row-2.box/background/hit-test COPY
BlockContainer<DIV>#row-2.box/scroll-metadata COPY
BlockContainer<DIV>#row-2.box/background SKIP
BlockContainer<DIV>#row-2.box/border RECORD
- BlockContainer<DIV>#row-2.box/foreground/hit-test COPY
BlockContainer<DIV>#row-2.box/foreground RECORD
BlockContainer<DIV>#row-2.box/outline SKIP
- BlockContainer<DIV>#row-2.box/overlay/hit-test COPY
BlockContainer<DIV>#row-2.box/overlay SKIP
BlockContainer<DIV>#second-row-0.box COPY
BlockContainer<DIV>#second-row-1.box COPY
@@ -127,27 +114,22 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
Box<DIV>#row.row/descendants(background-and-borders) ASSEMBLE
- Box<DIV>#row.row/background/hit-test COPY
Box<DIV>#row.row/scroll-metadata COPY
Box<DIV>#row.row/background COPY
Box<DIV>#row.row/border COPY
@@ -155,42 +137,33 @@ displayListTest({
BlockContainer<DIV>#outer.box/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIV>#row-2.box/descendants(background-and-borders) COPY
Box<DIV>#second-row.row/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
Box<DIV>#row.row/descendants(foreground) ASSEMBLE
- Box<DIV>#row.row/foreground/hit-test COPY
Box<DIV>#row.row/foreground COPY
BlockContainer<DIV>#row-0.box/descendants(foreground) COPY
BlockContainer<DIV>#outer.box/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#row-2.box/descendants(foreground) COPY
Box<DIV>#row.row/outline COPY
- Box<DIV>#row.row/overlay/hit-test COPY
Box<DIV>#row.row/overlay COPY
Box<DIV>#second-row.row/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#row-0.box COPY
BlockContainer<DIV>#outer.box ASSEMBLE
- BlockContainer<DIV>#outer.box/background/hit-test RECORD
BlockContainer<DIV>#outer.box/scroll-metadata RECORD
BlockContainer<DIV>#outer.box/background SKIP
BlockContainer<DIV>#outer.box/border RECORD
BlockContainer<DIV>#inner/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#inner/background/hit-test RECORD
BlockContainer<DIV>#inner/scroll-metadata RECORD
BlockContainer<DIV>#inner/background SKIP
BlockContainer<DIV>#inner/border SKIP
BlockContainer<DIV>#inner-content.tall/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#inner-content.tall/background/hit-test COPY
BlockContainer<DIV>#inner-content.tall/scroll-metadata RECORD
BlockContainer<DIV>#inner-content.tall/background COPY
BlockContainer<DIV>#inner-content.tall/border COPY
BlockContainer<DIV>#filler.tall/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#filler.tall/background/hit-test RECORD
BlockContainer<DIV>#filler.tall/scroll-metadata RECORD
BlockContainer<DIV>#filler.tall/background SKIP
BlockContainer<DIV>#filler.tall/border SKIP
@@ -200,28 +173,20 @@ displayListTest({
BlockContainer<DIV>#inner/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#inner-content.tall/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#filler.tall/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<DIV>#outer.box/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#outer.box/foreground RECORD (empty)
BlockContainer<DIV>#inner/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#inner/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#inner/foreground RECORD (empty)
BlockContainer<DIV>#inner-content.tall/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#inner-content.tall/foreground/hit-test COPY
BlockContainer<DIV>#inner-content.tall/foreground COPY
BlockContainer<DIV>#inner-content.tall/outline COPY
- BlockContainer<DIV>#inner-content.tall/overlay/hit-test COPY
BlockContainer<DIV>#inner-content.tall/overlay COPY
BlockContainer<DIV>#inner/outline SKIP
- BlockContainer<DIV>#inner/overlay/hit-test RECORD
BlockContainer<DIV>#inner/overlay RECORD
BlockContainer<DIV>#filler.tall/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#filler.tall/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#filler.tall/foreground RECORD (empty)
BlockContainer<DIV>#filler.tall/outline SKIP
- BlockContainer<DIV>#filler.tall/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#filler.tall/overlay SKIP
BlockContainer<DIV>#outer.box/outline SKIP
- BlockContainer<DIV>#outer.box/overlay/hit-test RECORD
BlockContainer<DIV>#outer.box/overlay RECORD
BlockContainer<DIV>#row-2.box COPY
BlockContainer<DIV>#second-row-0.box COPY
@@ -239,28 +204,23 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
Box<DIV>#row.row/descendants(background-and-borders) COPY
Box<DIV>#second-row.row/descendants(background-and-borders) REPLAN
- Box<DIV>#second-row.row/background/hit-test COPY
Box<DIV>#second-row.row/scroll-metadata COPY
Box<DIV>#second-row.row/background COPY
Box<DIV>#second-row.row/border COPY
@@ -268,24 +228,19 @@ displayListTest({
BlockContainer<DIV>#second-row-1.box/descendants(background-and-borders) COPY
BlockContainer<DIV>#inserted.box/descendants(background-and-borders) RECORD
BlockContainer<DIV>#second-row-2.box/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
Box<DIV>#row.row/descendants(foreground) COPY
Box<DIV>#second-row.row/descendants(foreground) REPLAN
- Box<DIV>#second-row.row/foreground/hit-test COPY
Box<DIV>#second-row.row/foreground COPY
BlockContainer<DIV>#second-row-0.box/descendants(foreground) COPY
BlockContainer<DIV>#second-row-1.box/descendants(foreground) COPY
BlockContainer<DIV>#inserted.box/descendants(foreground) RECORD
BlockContainer<DIV>#second-row-2.box/descendants(foreground) ASSEMBLE
Box<DIV>#second-row.row/outline COPY
- Box<DIV>#second-row.row/overlay/hit-test COPY
Box<DIV>#second-row.row/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#row-0.box COPY
BlockContainer<DIV>#outer.box COPY
@@ -293,37 +248,28 @@ displayListTest({
BlockContainer<DIV>#second-row-0.box COPY
BlockContainer<DIV>#second-row-1.box COPY
BlockContainer<DIV>#inserted.box RECORD
- BlockContainer<DIV>#inserted.box/background/hit-test RECORD
BlockContainer<DIV>#inserted.box/scroll-metadata RECORD
BlockContainer<DIV>#inserted.box/background SKIP
BlockContainer<DIV>#inserted.box/border RECORD
BlockContainer<DIV>#inserted-content.tall/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#inserted-content.tall/background/hit-test RECORD
BlockContainer<DIV>#inserted-content.tall/scroll-metadata RECORD
BlockContainer<DIV>#inserted-content.tall/background SKIP
BlockContainer<DIV>#inserted-content.tall/border SKIP
BlockContainer<DIV>#inserted-content.tall/descendants(floats) RECORD
BlockContainer<DIV>#inserted-content.tall/descendants(inline-background-and-borders) RECORD
- BlockContainer<DIV>#inserted.box/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#inserted.box/foreground RECORD (empty)
BlockContainer<DIV>#inserted-content.tall/descendants(foreground) RECORD
- BlockContainer<DIV>#inserted-content.tall/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#inserted-content.tall/foreground RECORD (empty)
BlockContainer<DIV>#inserted-content.tall/outline SKIP
- BlockContainer<DIV>#inserted-content.tall/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#inserted-content.tall/overlay SKIP
BlockContainer<DIV>#inserted.box/outline SKIP
- BlockContainer<DIV>#inserted.box/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#inserted.box/overlay RECORD (empty)
BlockContainer<DIV>#second-row-2.box ASSEMBLE
- BlockContainer<DIV>#second-row-2.box/background/hit-test RECORD
BlockContainer<DIV>#second-row-2.box/scroll-metadata RECORD
BlockContainer<DIV>#second-row-2.box/background SKIP
BlockContainer<DIV>#second-row-2.box/border RECORD
- BlockContainer<DIV>#second-row-2.box/foreground/hit-test RECORD
BlockContainer<DIV>#second-row-2.box/foreground RECORD
BlockContainer<DIV>#second-row-2.box/outline SKIP
- BlockContainer<DIV>#second-row-2.box/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#second-row-2.box/overlay SKIP
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-body-background-change.html b/Tests/LibWeb/Text/input/display_list/paint-damage-body-background-change.html
index 99796c36ba4..22ace54703f 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-body-background-change.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-body-background-change.html
@@ -21,49 +21,37 @@ displayListTest({
@canvas RECORD
@viewport RECORD
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test RECORD
@viewport/scroll-metadata RECORD (empty)
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>#html/descendants(background-and-borders) RECORD
- @viewport/foreground/hit-test RECORD (empty)
@viewport/foreground RECORD (empty)
BlockContainer<HTML>#html/descendants(foreground) RECORD
BlockContainer<HTML>#html RECORD
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) RECORD
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#content/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#content/background/hit-test RECORD
BlockContainer<DIV>#content/scroll-metadata RECORD (empty)
BlockContainer<DIV>#content/background SKIP
BlockContainer<DIV>#content/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) RECORD
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#content/descendants(foreground) RECORD
- BlockContainer<DIV>#content/foreground/hit-test RECORD
BlockContainer<DIV>#content/foreground RECORD
BlockContainer<DIV>#content/outline SKIP
- BlockContainer<DIV>#content/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#content/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
- BlockContainer<HTML>#html/overlay/hit-test RECORD (empty)
BlockContainer<HTML>#html/overlay SKIP
@viewport/outline SKIP
- @viewport/overlay/hit-test RECORD
@viewport/overlay RECORD (empty)
`
},
@@ -76,49 +64,37 @@ displayListTest({
@canvas RECORD
@viewport RECORD
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test RECORD
@viewport/scroll-metadata RECORD (empty)
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>#html/descendants(background-and-borders) RECORD
- @viewport/foreground/hit-test RECORD (empty)
@viewport/foreground RECORD (empty)
BlockContainer<HTML>#html/descendants(foreground) RECORD
BlockContainer<HTML>#html RECORD
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) RECORD
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#content/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#content/background/hit-test RECORD
BlockContainer<DIV>#content/scroll-metadata RECORD (empty)
BlockContainer<DIV>#content/background SKIP
BlockContainer<DIV>#content/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) RECORD
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#content/descendants(foreground) RECORD
- BlockContainer<DIV>#content/foreground/hit-test RECORD
BlockContainer<DIV>#content/foreground RECORD
BlockContainer<DIV>#content/outline SKIP
- BlockContainer<DIV>#content/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#content/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
- BlockContainer<HTML>#html/overlay/hit-test RECORD (empty)
BlockContainer<HTML>#html/overlay SKIP
@viewport/outline SKIP
- @viewport/overlay/hit-test RECORD
@viewport/overlay RECORD (empty)
`
},
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-child-reorder.html b/Tests/LibWeb/Text/input/display_list/paint-damage-child-reorder.html
index 30d1e42e335..99bac09c28e 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-child-reorder.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-child-reorder.html
@@ -34,56 +34,44 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#panel/descendants(background-and-borders) REPLAN
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#panel/descendants(foreground) REPLAN
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#panel REPLAN
BlockContainer<DIV>#panel/preamble COPY
- BlockContainer<DIV>#panel/background/hit-test COPY
BlockContainer<DIV>#panel/scroll-metadata COPY
BlockContainer<DIV>#panel/background COPY
BlockContainer<DIV>#panel/border COPY
BlockContainer<DIV>#b.card/descendants(background-and-borders) RECORD
BlockContainer<DIV>#a.card/descendants(background-and-borders) COPY
- BlockContainer<DIV>#panel/foreground/hit-test COPY
BlockContainer<DIV>#panel/foreground COPY
BlockContainer<DIV>#b.card/descendants(foreground) RECORD
BlockContainer<DIV>#a.card/descendants(foreground) COPY
BlockContainer<DIV>#b.card RECORD
- BlockContainer<DIV>#b.card/background/hit-test RECORD
BlockContainer<DIV>#b.card/scroll-metadata RECORD (empty)
BlockContainer<DIV>#b.card/background RECORD
BlockContainer<DIV>#b.card/border SKIP
- BlockContainer<DIV>#b.card/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#b.card/foreground RECORD (empty)
BlockContainer<DIV>#b.card/outline SKIP
- BlockContainer<DIV>#b.card/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#b.card/overlay SKIP
BlockContainer<DIV>#a.card COPY
BlockContainer<DIV>#panel/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-clip-added-on-ancestor.html b/Tests/LibWeb/Text/input/display_list/paint-damage-clip-added-on-ancestor.html
index 0960dc1475b..40d881caa81 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-clip-added-on-ancestor.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-clip-added-on-ancestor.html
@@ -23,56 +23,43 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#wrap/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#wrap/background/hit-test RECORD
BlockContainer<DIV>#wrap/scroll-metadata RECORD (empty)
BlockContainer<DIV>#wrap/background SKIP
BlockContainer<DIV>#wrap/border SKIP
BlockContainer<DIV>#inner/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#inner/background/hit-test RECORD
BlockContainer<DIV>#inner/scroll-metadata RECORD (empty)
BlockContainer<DIV>#inner/background SKIP
BlockContainer<DIV>#inner/border SKIP
BlockContainer<DIV>#other/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#wrap/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#wrap/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#wrap/foreground RECORD (empty)
BlockContainer<DIV>#inner/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#inner/foreground/hit-test RECORD
BlockContainer<DIV>#inner/foreground RECORD
BlockContainer<DIV>#inner/outline SKIP
- BlockContainer<DIV>#inner/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#inner/overlay SKIP
BlockContainer<DIV>#wrap/outline SKIP
- BlockContainer<DIV>#wrap/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#wrap/overlay SKIP
BlockContainer<DIV>#other/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-compositor-retention.html b/Tests/LibWeb/Text/input/display_list/paint-damage-compositor-retention.html
index 62f16dd320e..d5829769ddb 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-compositor-retention.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-compositor-retention.html
@@ -38,42 +38,33 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#box/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#box/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#box REPLAN
BlockContainer<DIV>#box/preamble RECORD (empty)
- BlockContainer<DIV>#box/background/hit-test RECORD
BlockContainer<DIV>#box/scroll-metadata RECORD (empty)
BlockContainer<DIV>#box/background RECORD
BlockContainer<DIV>#box/border SKIP
- BlockContainer<DIV>#box/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#box/foreground RECORD (empty)
BlockContainer<DIV>#box/outline SKIP
BlockContainer<HTML>#html/outline COPY
@@ -97,34 +88,27 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#box/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#box/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#box SKIP
BlockContainer<HTML>#html/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-containing-block-change.html b/Tests/LibWeb/Text/input/display_list/paint-damage-containing-block-change.html
index c4cae885744..cc43f40fe36 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-containing-block-change.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-containing-block-change.html
@@ -24,58 +24,45 @@ displayListTest({
@canvas RECORD (empty)
@viewport REPLAN
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) REPLAN
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#parent/descendants(background-and-borders) RECORD
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) REPLAN
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#parent/descendants(foreground) RECORD
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<DIV>#parent RECORD
- BlockContainer<DIV>#parent/background/hit-test RECORD
BlockContainer<DIV>#parent/scroll-metadata RECORD (empty)
BlockContainer<DIV>#parent/background SKIP
BlockContainer<DIV>#parent/border SKIP
BlockContainer<DIV>#child/descendants(background-and-borders) RECORD
BlockContainer<DIV>#child/descendants(floats) RECORD
BlockContainer<DIV>#child/descendants(inline-background-and-borders) RECORD
- BlockContainer<DIV>#parent/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#parent/foreground RECORD (empty)
BlockContainer<DIV>#child/descendants(foreground) RECORD
BlockContainer<DIV>#parent/outline SKIP
- BlockContainer<DIV>#parent/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#parent/overlay SKIP
BlockContainer<DIV>#child RECORD
- BlockContainer<DIV>#child/background/hit-test RECORD
BlockContainer<DIV>#child/scroll-metadata RECORD (empty)
BlockContainer<DIV>#child/background RECORD
BlockContainer<DIV>#child/border SKIP
- BlockContainer<DIV>#child/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#child/foreground RECORD (empty)
BlockContainer<DIV>#child/outline SKIP
- BlockContainer<DIV>#child/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#child/overlay SKIP
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-dirty-while-skipped.html b/Tests/LibWeb/Text/input/display_list/paint-damage-dirty-while-skipped.html
index f47e443b432..b0fa0d7fecf 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-dirty-while-skipped.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-dirty-while-skipped.html
@@ -24,34 +24,27 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#root/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#root/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#root SKIP
BlockContainer<HTML>#html/outline COPY
@@ -66,34 +59,27 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#root/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#root/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#root ASSEMBLE
BlockContainer<HTML>#html/outline COPY
@@ -117,52 +103,41 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#root/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#root/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#root REPLAN
BlockContainer<DIV>#root/preamble RECORD (empty)
- BlockContainer<DIV>#root/background/hit-test RECORD
BlockContainer<DIV>#root/scroll-metadata RECORD (empty)
BlockContainer<DIV>#root/background SKIP
BlockContainer<DIV>#root/border SKIP
BlockContainer<DIV>#target/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#root/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#root/foreground RECORD (empty)
BlockContainer<DIV>#target/descendants(foreground) RECORD
BlockContainer<DIV>#target RECORD
BlockContainer<DIV>#target/preamble RECORD (empty)
- BlockContainer<DIV>#target/background/hit-test RECORD (empty)
BlockContainer<DIV>#target/scroll-metadata RECORD (empty)
BlockContainer<DIV>#target/background RECORD
BlockContainer<DIV>#target/border SKIP
- BlockContainer<DIV>#target/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#target/foreground RECORD (empty)
BlockContainer<DIV>#target/outline SKIP
BlockContainer<DIV>#root/outline SKIP
@@ -179,52 +154,41 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#root/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#root/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#root ASSEMBLE
BlockContainer<DIV>#root/preamble COPY
- BlockContainer<DIV>#root/background/hit-test COPY
BlockContainer<DIV>#root/scroll-metadata COPY
BlockContainer<DIV>#root/background COPY
BlockContainer<DIV>#root/border COPY
BlockContainer<DIV>#target/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#root/foreground/hit-test COPY
BlockContainer<DIV>#root/foreground COPY
BlockContainer<DIV>#target/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#target ASSEMBLE
BlockContainer<DIV>#target/preamble RECORD (empty)
- BlockContainer<DIV>#target/background/hit-test RECORD
BlockContainer<DIV>#target/scroll-metadata RECORD (empty)
BlockContainer<DIV>#target/background RECORD
BlockContainer<DIV>#target/border SKIP
- BlockContainer<DIV>#target/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#target/foreground RECORD (empty)
BlockContainer<DIV>#target/outline SKIP
BlockContainer<DIV>#root/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-flex-item-z-index.html b/Tests/LibWeb/Text/input/display_list/paint-damage-flex-item-z-index.html
index 9b3f0e4f055..2800843946c 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-flex-item-z-index.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-flex-item-z-index.html
@@ -34,56 +34,44 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
Box<DIV>#flex/descendants(background-and-borders) REPLAN
- Box<DIV>#flex/background/hit-test COPY
Box<DIV>#flex/scroll-metadata COPY
Box<DIV>#flex/background COPY
Box<DIV>#flex/border COPY
BlockContainer<DIV>#front.item/descendants(background-and-borders) REPLAN
BlockContainer<DIV>#back.item/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
Box<DIV>#flex/descendants(foreground) REPLAN
- Box<DIV>#flex/foreground/hit-test COPY
Box<DIV>#flex/foreground COPY
BlockContainer<DIV>#front.item/descendants(foreground) REPLAN
BlockContainer<DIV>#back.item/descendants(foreground) COPY
Box<DIV>#flex/outline COPY
- Box<DIV>#flex/overlay/hit-test COPY
Box<DIV>#flex/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#back.item COPY
BlockContainer<DIV>#front.item RECORD
BlockContainer<DIV>#front.item/preamble RECORD (empty)
- BlockContainer<DIV>#front.item/background/hit-test RECORD
BlockContainer<DIV>#front.item/scroll-metadata RECORD (empty)
BlockContainer<DIV>#front.item/background RECORD
BlockContainer<DIV>#front.item/border SKIP
- BlockContainer<DIV>#front.item/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#front.item/foreground RECORD (empty)
BlockContainer<DIV>#front.item/outline SKIP
BlockContainer<HTML>#html/outline COPY
@@ -99,56 +87,43 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
Box<DIV>#flex/descendants(background-and-borders) REPLAN
- Box<DIV>#flex/background/hit-test COPY
Box<DIV>#flex/scroll-metadata COPY
Box<DIV>#flex/background COPY
Box<DIV>#flex/border COPY
BlockContainer<DIV>#front.item/descendants(background-and-borders) REPLAN
BlockContainer<DIV>#back.item/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
Box<DIV>#flex/descendants(foreground) REPLAN
- Box<DIV>#flex/foreground/hit-test COPY
Box<DIV>#flex/foreground COPY
BlockContainer<DIV>#front.item/descendants(foreground) REPLAN
- BlockContainer<DIV>#front.item/background/hit-test RECORD
BlockContainer<DIV>#front.item/scroll-metadata RECORD (empty)
BlockContainer<DIV>#front.item/background RECORD
BlockContainer<DIV>#front.item/border SKIP
- BlockContainer<DIV>#front.item/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#front.item/foreground RECORD (empty)
BlockContainer<DIV>#front.item/outline SKIP
- BlockContainer<DIV>#front.item/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#front.item/overlay SKIP
BlockContainer<DIV>#back.item/descendants(foreground) COPY
Box<DIV>#flex/outline COPY
- Box<DIV>#flex/overlay/hit-test COPY
Box<DIV>#flex/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#back.item COPY
BlockContainer<HTML>#html/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-float-toggle.html b/Tests/LibWeb/Text/input/display_list/paint-damage-float-toggle.html
index 0faf2c7c4e7..069aba75049 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-float-toggle.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-float-toggle.html
@@ -33,69 +33,53 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#box/descendants(background-and-borders) REPLAN
- BlockContainer<DIV>#box/background/hit-test RECORD
BlockContainer<DIV>#box/scroll-metadata RECORD (empty)
BlockContainer<DIV>#box/background SKIP
BlockContainer<DIV>#box/border SKIP
BlockContainer<DIV>#floater/descendants(background-and-borders) RECORD
BlockContainer<DIV>#text/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#text/background/hit-test RECORD
BlockContainer<DIV>#text/scroll-metadata RECORD (empty)
BlockContainer<DIV>#text/background SKIP
BlockContainer<DIV>#text/border SKIP
BlockContainer<BODY>#body/descendants(floats) RECORD
BlockContainer<DIV>#box/descendants(floats) RECORD
BlockContainer<DIV>#floater/descendants(floats) RECORD
- BlockContainer<DIV>#floater/background/hit-test RECORD
BlockContainer<DIV>#floater/scroll-metadata RECORD (empty)
BlockContainer<DIV>#floater/background RECORD
BlockContainer<DIV>#floater/border SKIP
- BlockContainer<DIV>#floater/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#floater/foreground RECORD (empty)
BlockContainer<DIV>#floater/outline SKIP
- BlockContainer<DIV>#floater/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#floater/overlay SKIP
BlockContainer<DIV>#text/descendants(floats) RECORD
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#box/descendants(foreground) REPLAN
- BlockContainer<DIV>#box/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#box/foreground RECORD (empty)
BlockContainer<DIV>#floater/descendants(foreground) RECORD
BlockContainer<DIV>#text/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#text/foreground/hit-test RECORD
BlockContainer<DIV>#text/foreground RECORD
BlockContainer<DIV>#text/outline SKIP
- BlockContainer<DIV>#text/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#text/overlay SKIP
BlockContainer<DIV>#box/outline SKIP
- BlockContainer<DIV>#box/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#box/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
@viewport/outline COPY
@@ -110,65 +94,49 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#box/descendants(background-and-borders) REPLAN
- BlockContainer<DIV>#box/background/hit-test RECORD
BlockContainer<DIV>#box/scroll-metadata RECORD (empty)
BlockContainer<DIV>#box/background SKIP
BlockContainer<DIV>#box/border SKIP
BlockContainer<DIV>#floater/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#floater/background/hit-test RECORD
BlockContainer<DIV>#floater/scroll-metadata RECORD (empty)
BlockContainer<DIV>#floater/background RECORD
BlockContainer<DIV>#floater/border SKIP
BlockContainer<DIV>#text/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#text/background/hit-test RECORD
BlockContainer<DIV>#text/scroll-metadata RECORD (empty)
BlockContainer<DIV>#text/background SKIP
BlockContainer<DIV>#text/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#box/descendants(foreground) REPLAN
- BlockContainer<DIV>#box/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#box/foreground RECORD (empty)
BlockContainer<DIV>#floater/descendants(foreground) RECORD
- BlockContainer<DIV>#floater/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#floater/foreground RECORD (empty)
BlockContainer<DIV>#floater/outline SKIP
- BlockContainer<DIV>#floater/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#floater/overlay SKIP
BlockContainer<DIV>#text/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#text/foreground/hit-test RECORD
BlockContainer<DIV>#text/foreground RECORD
BlockContainer<DIV>#text/outline SKIP
- BlockContainer<DIV>#text/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#text/overlay SKIP
BlockContainer<DIV>#box/outline SKIP
- BlockContainer<DIV>#box/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#box/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-removal-among-siblings.html b/Tests/LibWeb/Text/input/display_list/paint-damage-removal-among-siblings.html
index e7c1261e090..9629d1e0001 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-removal-among-siblings.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-removal-among-siblings.html
@@ -35,38 +35,30 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#panel/descendants(background-and-borders) REPLAN
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#panel/descendants(foreground) REPLAN
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#panel REPLAN
BlockContainer<DIV>#panel/preamble COPY
- BlockContainer<DIV>#panel/background/hit-test COPY
BlockContainer<DIV>#panel/scroll-metadata COPY
BlockContainer<DIV>#panel/background COPY
BlockContainer<DIV>#panel/border COPY
@@ -75,7 +67,6 @@ displayListTest({
BlockContainer<DIV>#card2.card/descendants(background-and-borders) COPY
BlockContainer<DIV>#card4.card/descendants(background-and-borders) COPY
BlockContainer<DIV>#card5.card/descendants(background-and-borders) COPY
- BlockContainer<DIV>#panel/foreground/hit-test COPY
BlockContainer<DIV>#panel/foreground COPY
BlockContainer<DIV>#card0.card/descendants(foreground) COPY
BlockContainer<DIV>#card1.card/descendants(foreground) COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-reparent-into-flex.html b/Tests/LibWeb/Text/input/display_list/paint-damage-reparent-into-flex.html
index a4d1abf06e4..bcb4c35ed8e 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-reparent-into-flex.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-reparent-into-flex.html
@@ -39,76 +39,57 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#block/descendants(background-and-borders) REPLAN
- BlockContainer<DIV>#block/background/hit-test RECORD
BlockContainer<DIV>#block/scroll-metadata RECORD (empty)
BlockContainer<DIV>#block/background SKIP
BlockContainer<DIV>#block/border SKIP
Box<DIV>#flex/descendants(background-and-borders) REPLAN
- Box<DIV>#flex/background/hit-test RECORD
Box<DIV>#flex/scroll-metadata RECORD (empty)
Box<DIV>#flex/background SKIP
Box<DIV>#flex/border SKIP
BlockContainer<DIV>#stay.item/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIV>#moved.item/descendants(background-and-borders) RECORD
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#block/descendants(foreground) REPLAN
- BlockContainer<DIV>#block/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#block/foreground RECORD (empty)
BlockContainer<DIV>#block/outline SKIP
- BlockContainer<DIV>#block/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#block/overlay SKIP
Box<DIV>#flex/descendants(foreground) REPLAN
- Box<DIV>#flex/foreground/hit-test RECORD (empty)
Box<DIV>#flex/foreground RECORD (empty)
BlockContainer<DIV>#stay.item/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#stay.item/background/hit-test RECORD
BlockContainer<DIV>#stay.item/scroll-metadata RECORD (empty)
BlockContainer<DIV>#stay.item/background SKIP
BlockContainer<DIV>#stay.item/border SKIP
- BlockContainer<DIV>#stay.item/foreground/hit-test RECORD
BlockContainer<DIV>#stay.item/foreground RECORD
BlockContainer<DIV>#stay.item/outline SKIP
- BlockContainer<DIV>#stay.item/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#stay.item/overlay SKIP
BlockContainer<DIV>#moved.item/descendants(foreground) RECORD
- BlockContainer<DIV>#moved.item/background/hit-test RECORD
BlockContainer<DIV>#moved.item/scroll-metadata RECORD (empty)
BlockContainer<DIV>#moved.item/background SKIP
BlockContainer<DIV>#moved.item/border SKIP
- BlockContainer<DIV>#moved.item/foreground/hit-test RECORD
BlockContainer<DIV>#moved.item/foreground RECORD
BlockContainer<DIV>#moved.item/outline SKIP
- BlockContainer<DIV>#moved.item/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#moved.item/overlay SKIP
Box<DIV>#flex/outline SKIP
- Box<DIV>#flex/overlay/hit-test RECORD (empty)
Box<DIV>#flex/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-root-overflow-growth.html b/Tests/LibWeb/Text/input/display_list/paint-damage-root-overflow-growth.html
index d84a3120a74..61880ce5478 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-root-overflow-growth.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-root-overflow-growth.html
@@ -25,55 +25,42 @@ displayListTest({
@canvas RECORD
@viewport ASSEMBLE
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test RECORD
@viewport/scroll-metadata RECORD (empty)
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test RECORD (empty)
@viewport/foreground RECORD (empty)
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#text/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#text/background/hit-test COPY
BlockContainer<DIV>#text/scroll-metadata RECORD (empty)
BlockContainer<DIV>#text/background COPY
BlockContainer<DIV>#text/border COPY
BlockContainer<DIV>#far/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#text/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#text/foreground/hit-test COPY
BlockContainer<DIV>#text/foreground COPY
BlockContainer<DIV>#text/outline COPY
- BlockContainer<DIV>#text/overlay/hit-test COPY
BlockContainer<DIV>#text/overlay COPY
BlockContainer<DIV>#far/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#far ASSEMBLE
- BlockContainer<DIV>#far/background/hit-test RECORD
BlockContainer<DIV>#far/scroll-metadata RECORD (empty)
BlockContainer<DIV>#far/background RECORD
BlockContainer<DIV>#far/border SKIP
- BlockContainer<DIV>#far/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#far/foreground RECORD (empty)
BlockContainer<DIV>#far/outline SKIP
- BlockContainer<DIV>#far/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#far/overlay SKIP
BlockContainer<HTML>#html/outline COPY
@viewport/outline SKIP
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-scroller-content-move.html b/Tests/LibWeb/Text/input/display_list/paint-damage-scroller-content-move.html
index d5aeaeb69dd..45bb92a5cf8 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-scroller-content-move.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-scroller-content-move.html
@@ -24,67 +24,51 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#scroller/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#scroller/background/hit-test COPY
BlockContainer<DIV>#scroller/scroll-metadata RECORD
BlockContainer<DIV>#scroller/background COPY
BlockContainer<DIV>#scroller/border COPY
BlockContainer<DIV>#row0.row/descendants(background-and-borders) COPY
BlockContainer<DIV>#row1.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#row1.row/background/hit-test RECORD
BlockContainer<DIV>#row1.row/scroll-metadata RECORD
BlockContainer<DIV>#row1.row/background SKIP
BlockContainer<DIV>#row1.row/border SKIP
BlockContainer<DIV>#row2.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#row2.row/background/hit-test RECORD
BlockContainer<DIV>#row2.row/scroll-metadata RECORD
BlockContainer<DIV>#row2.row/background SKIP
BlockContainer<DIV>#row2.row/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#scroller/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#scroller/foreground/hit-test COPY
BlockContainer<DIV>#scroller/foreground COPY
BlockContainer<DIV>#row0.row/descendants(foreground) COPY
BlockContainer<DIV>#row1.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#row1.row/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#row1.row/foreground RECORD (empty)
BlockContainer<DIV>#row1.row/outline SKIP
- BlockContainer<DIV>#row1.row/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#row1.row/overlay SKIP
BlockContainer<DIV>#row2.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#row2.row/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#row2.row/foreground RECORD (empty)
BlockContainer<DIV>#row2.row/outline SKIP
- BlockContainer<DIV>#row2.row/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#row2.row/overlay SKIP
BlockContainer<DIV>#scroller/outline COPY
- BlockContainer<DIV>#scroller/overlay/hit-test RECORD
BlockContainer<DIV>#scroller/overlay RECORD
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
@@ -98,58 +82,45 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#scroller/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#scroller/background/hit-test COPY
BlockContainer<DIV>#scroller/scroll-metadata COPY
BlockContainer<DIV>#scroller/background COPY
BlockContainer<DIV>#scroller/border COPY
BlockContainer<DIV>#row0.row/descendants(background-and-borders) COPY
BlockContainer<DIV>#row1.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#row1.row/background/hit-test COPY
BlockContainer<DIV>#row1.row/scroll-metadata COPY
BlockContainer<DIV>#row1.row/background RECORD
BlockContainer<DIV>#row1.row/border SKIP
BlockContainer<DIV>#row2.row/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#scroller/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#scroller/foreground/hit-test COPY
BlockContainer<DIV>#scroller/foreground COPY
BlockContainer<DIV>#row0.row/descendants(foreground) COPY
BlockContainer<DIV>#row1.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#row1.row/foreground/hit-test COPY
BlockContainer<DIV>#row1.row/foreground RECORD (empty)
BlockContainer<DIV>#row1.row/outline SKIP
- BlockContainer<DIV>#row1.row/overlay/hit-test COPY
BlockContainer<DIV>#row1.row/overlay SKIP
BlockContainer<DIV>#row2.row/descendants(foreground) COPY
BlockContainer<DIV>#scroller/outline COPY
- BlockContainer<DIV>#scroller/overlay/hit-test COPY
BlockContainer<DIV>#scroller/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-scroller-slot-reuse.html b/Tests/LibWeb/Text/input/display_list/paint-damage-scroller-slot-reuse.html
index 9250bf5bf89..1caf919f32d 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-scroller-slot-reuse.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-scroller-slot-reuse.html
@@ -33,56 +33,43 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) REPLAN
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#keep.box.scroller/descendants(background-and-borders) COPY
BlockContainer<DIV>#outer.box/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#outer.box/background/hit-test RECORD
BlockContainer<DIV>#outer.box/scroll-metadata RECORD
BlockContainer<DIV>#outer.box/background SKIP
BlockContainer<DIV>#outer.box/border SKIP
BlockContainer<DIV>#outer-content.content/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#outer-content.content/background/hit-test RECORD
BlockContainer<DIV>#outer-content.content/scroll-metadata RECORD
BlockContainer<DIV>#outer-content.content/background SKIP
BlockContainer<DIV>#outer-content.content/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) REPLAN
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#keep.box.scroller/descendants(foreground) COPY
BlockContainer<DIV>#outer.box/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#outer.box/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#outer.box/foreground RECORD (empty)
BlockContainer<DIV>#outer-content.content/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#outer-content.content/foreground/hit-test RECORD
BlockContainer<DIV>#outer-content.content/foreground RECORD
BlockContainer<DIV>#outer-content.content/outline SKIP
- BlockContainer<DIV>#outer-content.content/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#outer-content.content/overlay SKIP
BlockContainer<DIV>#outer.box/outline SKIP
- BlockContainer<DIV>#outer.box/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#outer.box/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
@viewport/outline COPY
@@ -113,56 +100,43 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata RECORD
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata RECORD
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#keep.box.scroller/descendants(background-and-borders) COPY
BlockContainer<DIV>#outer.box/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#outer.box/background/hit-test RECORD
BlockContainer<DIV>#outer.box/scroll-metadata RECORD
BlockContainer<DIV>#outer.box/background SKIP
BlockContainer<DIV>#outer.box/border SKIP
BlockContainer<DIV>#outer-content.content/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#outer-content.content/background/hit-test RECORD
BlockContainer<DIV>#outer-content.content/scroll-metadata RECORD
BlockContainer<DIV>#outer-content.content/background SKIP
BlockContainer<DIV>#outer-content.content/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#keep.box.scroller/descendants(foreground) COPY
BlockContainer<DIV>#outer.box/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#outer.box/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#outer.box/foreground RECORD (empty)
BlockContainer<DIV>#outer-content.content/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#outer-content.content/foreground/hit-test RECORD
BlockContainer<DIV>#outer-content.content/foreground RECORD
BlockContainer<DIV>#outer-content.content/outline SKIP
- BlockContainer<DIV>#outer-content.content/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#outer-content.content/overlay SKIP
BlockContainer<DIV>#outer.box/outline SKIP
- BlockContainer<DIV>#outer.box/overlay/hit-test RECORD
BlockContainer<DIV>#outer.box/overlay RECORD
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
@@ -181,56 +155,43 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#keep.box.scroller/descendants(background-and-borders) COPY
BlockContainer<DIV>#outer.box/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#outer.box/background/hit-test COPY
BlockContainer<DIV>#outer.box/scroll-metadata COPY
BlockContainer<DIV>#outer.box/background COPY
BlockContainer<DIV>#outer.box/border COPY
BlockContainer<DIV>#outer-content.content/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#outer-content.content/background/hit-test COPY
BlockContainer<DIV>#outer-content.content/scroll-metadata COPY
BlockContainer<DIV>#outer-content.content/background SKIP
BlockContainer<DIV>#outer-content.content/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#keep.box.scroller/descendants(foreground) COPY
BlockContainer<DIV>#outer.box/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#outer.box/foreground/hit-test COPY
BlockContainer<DIV>#outer.box/foreground COPY
BlockContainer<DIV>#outer-content.content/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#outer-content.content/foreground/hit-test COPY
BlockContainer<DIV>#outer-content.content/foreground RECORD
BlockContainer<DIV>#outer-content.content/outline SKIP
- BlockContainer<DIV>#outer-content.content/overlay/hit-test COPY
BlockContainer<DIV>#outer-content.content/overlay SKIP
BlockContainer<DIV>#outer.box/outline COPY
- BlockContainer<DIV>#outer.box/overlay/hit-test COPY
BlockContainer<DIV>#outer.box/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-selection-change.html b/Tests/LibWeb/Text/input/display_list/paint-damage-selection-change.html
index 8658d989d12..27b780c2391 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-selection-change.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-selection-change.html
@@ -22,58 +22,45 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground RECORD (empty)
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#outer/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#outer/background/hit-test COPY
BlockContainer<DIV>#outer/scroll-metadata COPY
BlockContainer<DIV>#outer/background COPY
BlockContainer<DIV>#outer/border COPY
BlockContainer<DIV>#before.section/descendants(background-and-borders) COPY
BlockContainer<DIV>#target.section/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#target.section/background/hit-test COPY
BlockContainer<DIV>#target.section/scroll-metadata COPY
BlockContainer<DIV>#target.section/background SKIP
BlockContainer<DIV>#target.section/border SKIP
BlockContainer<DIV>#after.section/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#outer/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#outer/foreground/hit-test COPY
BlockContainer<DIV>#outer/foreground COPY
BlockContainer<DIV>#before.section/descendants(foreground) COPY
BlockContainer<DIV>#target.section/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#target.section/foreground/hit-test COPY
BlockContainer<DIV>#target.section/foreground RECORD
BlockContainer<DIV>#target.section/outline SKIP
- BlockContainer<DIV>#target.section/overlay/hit-test COPY
BlockContainer<DIV>#target.section/overlay SKIP
BlockContainer<DIV>#after.section/descendants(foreground) COPY
BlockContainer<DIV>#outer/outline COPY
- BlockContainer<DIV>#outer/overlay/hit-test COPY
BlockContainer<DIV>#outer/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline SKIP
@@ -87,58 +74,45 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground RECORD (empty)
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#outer/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#outer/background/hit-test COPY
BlockContainer<DIV>#outer/scroll-metadata COPY
BlockContainer<DIV>#outer/background COPY
BlockContainer<DIV>#outer/border COPY
BlockContainer<DIV>#before.section/descendants(background-and-borders) COPY
BlockContainer<DIV>#target.section/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#target.section/background/hit-test COPY
BlockContainer<DIV>#target.section/scroll-metadata COPY
BlockContainer<DIV>#target.section/background SKIP
BlockContainer<DIV>#target.section/border SKIP
BlockContainer<DIV>#after.section/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#outer/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#outer/foreground/hit-test COPY
BlockContainer<DIV>#outer/foreground COPY
BlockContainer<DIV>#before.section/descendants(foreground) COPY
BlockContainer<DIV>#target.section/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#target.section/foreground/hit-test COPY
BlockContainer<DIV>#target.section/foreground RECORD
BlockContainer<DIV>#target.section/outline SKIP
- BlockContainer<DIV>#target.section/overlay/hit-test COPY
BlockContainer<DIV>#target.section/overlay SKIP
BlockContainer<DIV>#after.section/descendants(foreground) COPY
BlockContainer<DIV>#outer/outline COPY
- BlockContainer<DIV>#outer/overlay/hit-test COPY
BlockContainer<DIV>#outer/overlay COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline SKIP
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-shifted-siblings.html b/Tests/LibWeb/Text/input/display_list/paint-damage-shifted-siblings.html
index af0c122435b..b2bee4b17df 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-shifted-siblings.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-shifted-siblings.html
@@ -25,48 +25,39 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#list/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#list/background/hit-test RECORD
BlockContainer<DIV>#list/scroll-metadata RECORD (empty)
BlockContainer<DIV>#list/background SKIP
BlockContainer<DIV>#list/border SKIP
BlockContainer<DIV>#c0.card/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#c0.card/background/hit-test RECORD
BlockContainer<DIV>#c0.card/scroll-metadata RECORD (empty)
BlockContainer<DIV>#c0.card/background SKIP
BlockContainer<DIV>#c0.card/border SKIP
BlockContainer<DIV>#c1.card/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#c1.card/background/hit-test RECORD
BlockContainer<DIV>#c1.card/scroll-metadata RECORD (empty)
BlockContainer<DIV>#c1.card/background SKIP
BlockContainer<DIV>#c1.card/border SKIP
BlockContainer<DIV>#c1-inner.inner/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#c1-inner.inner/background/hit-test RECORD
BlockContainer<DIV>#c1-inner.inner/scroll-metadata RECORD (empty)
BlockContainer<DIV>#c1-inner.inner/background SKIP
BlockContainer<DIV>#c1-inner.inner/border SKIP
InlineNode<SPAN>#c1-text/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIV>#c2.card/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#c2.card/background/hit-test RECORD
BlockContainer<DIV>#c2.card/scroll-metadata RECORD (empty)
BlockContainer<DIV>#c2.card/background SKIP
BlockContainer<DIV>#c2.card/border SKIP
@@ -76,56 +67,40 @@ displayListTest({
BlockContainer<DIV>#c1.card/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#c1-inner.inner/descendants(inline-background-and-borders) ASSEMBLE
InlineNode<SPAN>#c1-text/descendants(inline-background-and-borders) ASSEMBLE
- InlineNode<SPAN>#c1-text/background/hit-test RECORD
InlineNode<SPAN>#c1-text/scroll-metadata RECORD (empty)
InlineNode<SPAN>#c1-text/background SKIP
InlineNode<SPAN>#c1-text/border SKIP
BlockContainer<DIV>#c2.card/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#list/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#list/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#list/foreground RECORD (empty)
BlockContainer<DIV>#c0.card/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#c0.card/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#c0.card/foreground RECORD (empty)
BlockContainer<DIV>#c0.card/outline SKIP
- BlockContainer<DIV>#c0.card/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#c0.card/overlay SKIP
BlockContainer<DIV>#c1.card/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#c1.card/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#c1.card/foreground RECORD (empty)
BlockContainer<DIV>#c1-inner.inner/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#c1-inner.inner/foreground/hit-test RECORD
BlockContainer<DIV>#c1-inner.inner/inline-piece RECORD (empty)
BlockContainer<DIV>#c1-inner.inner/text-fragment RECORD
BlockContainer<DIV>#c1-inner.inner/foreground RECORD (empty)
InlineNode<SPAN>#c1-text/descendants(foreground) ASSEMBLE
- InlineNode<SPAN>#c1-text/foreground/hit-test RECORD (empty)
InlineNode<SPAN>#c1-text/foreground RECORD (empty)
InlineNode<SPAN>#c1-text/outline SKIP
- InlineNode<SPAN>#c1-text/overlay/hit-test RECORD (empty)
InlineNode<SPAN>#c1-text/overlay SKIP
BlockContainer<DIV>#c1-inner.inner/outline SKIP
- BlockContainer<DIV>#c1-inner.inner/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#c1-inner.inner/overlay SKIP
BlockContainer<DIV>#c1.card/outline SKIP
- BlockContainer<DIV>#c1.card/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#c1.card/overlay SKIP
BlockContainer<DIV>#c2.card/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#c2.card/foreground/hit-test RECORD
BlockContainer<DIV>#c2.card/foreground RECORD
BlockContainer<DIV>#c2.card/outline SKIP
- BlockContainer<DIV>#c2.card/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#c2.card/overlay SKIP
BlockContainer<DIV>#list/outline SKIP
- BlockContainer<DIV>#list/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#list/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/paint-damage-snap-area-move.html b/Tests/LibWeb/Text/input/display_list/paint-damage-snap-area-move.html
index abef8a474c6..a7d68f7d25c 100644
--- a/Tests/LibWeb/Text/input/display_list/paint-damage-snap-area-move.html
+++ b/Tests/LibWeb/Text/input/display_list/paint-damage-snap-area-move.html
@@ -38,67 +38,51 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#snap/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#snap/background/hit-test COPY
BlockContainer<DIV>#snap/scroll-metadata RECORD
BlockContainer<DIV>#snap/background COPY
BlockContainer<DIV>#snap/border COPY
BlockContainer<DIV>#area0.area/descendants(background-and-borders) COPY
BlockContainer<DIV>#area1.area/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#area1.area/background/hit-test RECORD
BlockContainer<DIV>#area1.area/scroll-metadata RECORD
BlockContainer<DIV>#area1.area/background SKIP
BlockContainer<DIV>#area1.area/border SKIP
BlockContainer<DIV>#area2.area/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#area2.area/background/hit-test RECORD
BlockContainer<DIV>#area2.area/scroll-metadata RECORD
BlockContainer<DIV>#area2.area/background SKIP
BlockContainer<DIV>#area2.area/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#snap/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#snap/foreground/hit-test COPY
BlockContainer<DIV>#snap/foreground COPY
BlockContainer<DIV>#area0.area/descendants(foreground) COPY
BlockContainer<DIV>#area1.area/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#area1.area/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#area1.area/foreground RECORD (empty)
BlockContainer<DIV>#area1.area/outline SKIP
- BlockContainer<DIV>#area1.area/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#area1.area/overlay SKIP
BlockContainer<DIV>#area2.area/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#area2.area/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#area2.area/foreground RECORD (empty)
BlockContainer<DIV>#area2.area/outline SKIP
- BlockContainer<DIV>#area2.area/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#area2.area/overlay SKIP
BlockContainer<DIV>#snap/outline COPY
- BlockContainer<DIV>#snap/overlay/hit-test RECORD
BlockContainer<DIV>#snap/overlay RECORD
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-blocking-wheel-region-top-layer.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-blocking-wheel-region-top-layer.html
index b40a44fc170..d50e267e01c 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-blocking-wheel-region-top-layer.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-blocking-wheel-region-top-layer.html
@@ -36,66 +36,52 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
BlockContainer(anonymous)/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIALOG>#modal/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer(anonymous)/descendants(foreground) ASSEMBLE
BlockContainer<DIALOG>#modal/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#host/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#host/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<DIV>#host ASSEMBLE
- BlockContainer<DIV>#host/background/hit-test RECORD
BlockContainer<DIV>#host/scroll-metadata RECORD
BlockContainer<DIV>#host/background SKIP
BlockContainer<DIV>#host/border SKIP
- BlockContainer<DIV>#host/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#host/foreground RECORD (empty)
BlockContainer<DIV>#host/outline SKIP
- BlockContainer<DIV>#host/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#host/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
BlockContainer(anonymous) ASSEMBLE
BlockContainer(anonymous)/preamble RECORD (empty)
- BlockContainer(anonymous)/background/hit-test RECORD
BlockContainer(anonymous)/scroll-metadata RECORD (empty)
BlockContainer(anonymous)/background RECORD
BlockContainer(anonymous)/border SKIP
- BlockContainer(anonymous)/foreground/hit-test RECORD (empty)
BlockContainer(anonymous)/foreground RECORD (empty)
BlockContainer(anonymous)/outline SKIP
BlockContainer<DIALOG>#modal ASSEMBLE
BlockContainer<DIALOG>#modal/preamble RECORD (empty)
- BlockContainer<DIALOG>#modal/background/hit-test RECORD
BlockContainer<DIALOG>#modal/scroll-metadata RECORD
BlockContainer<DIALOG>#modal/background RECORD
BlockContainer<DIALOG>#modal/border SKIP
- BlockContainer<DIALOG>#modal/foreground/hit-test RECORD (empty)
BlockContainer<DIALOG>#modal/foreground RECORD (empty)
BlockContainer<DIALOG>#modal/outline SKIP
@viewport/outline COPY
@@ -119,66 +105,52 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
BlockContainer(anonymous)/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIALOG>#modal/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer(anonymous)/descendants(foreground) ASSEMBLE
BlockContainer<DIALOG>#modal/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#host/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#host/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#host ASSEMBLE
- BlockContainer<DIV>#host/background/hit-test RECORD
BlockContainer<DIV>#host/scroll-metadata RECORD (empty)
BlockContainer<DIV>#host/background SKIP
BlockContainer<DIV>#host/border SKIP
- BlockContainer<DIV>#host/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#host/foreground RECORD (empty)
BlockContainer<DIV>#host/outline SKIP
- BlockContainer<DIV>#host/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#host/overlay SKIP
BlockContainer<HTML>#html/outline COPY
BlockContainer(anonymous) ASSEMBLE
BlockContainer(anonymous)/preamble RECORD (empty)
- BlockContainer(anonymous)/background/hit-test RECORD
BlockContainer(anonymous)/scroll-metadata RECORD (empty)
BlockContainer(anonymous)/background RECORD
BlockContainer(anonymous)/border SKIP
- BlockContainer(anonymous)/foreground/hit-test RECORD (empty)
BlockContainer(anonymous)/foreground RECORD (empty)
BlockContainer(anonymous)/outline SKIP
BlockContainer<DIALOG>#modal ASSEMBLE
BlockContainer<DIALOG>#modal/preamble RECORD (empty)
- BlockContainer<DIALOG>#modal/background/hit-test RECORD
BlockContainer<DIALOG>#modal/scroll-metadata RECORD (empty)
BlockContainer<DIALOG>#modal/background RECORD
BlockContainer<DIALOG>#modal/border SKIP
- BlockContainer<DIALOG>#modal/foreground/hit-test RECORD (empty)
BlockContainer<DIALOG>#modal/foreground RECORD (empty)
BlockContainer<DIALOG>#modal/outline SKIP
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-blocking-wheel-region.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-blocking-wheel-region.html
index f53f981a3f6..d35426b5da0 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-blocking-wheel-region.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-blocking-wheel-region.html
@@ -44,60 +44,47 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a/descendants(background-and-borders) COPY
BlockContainer<DIV>#b/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a/descendants(foreground) COPY
BlockContainer<DIV>#b/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a COPY
BlockContainer<DIV>#b ASSEMBLE
- BlockContainer<DIV>#b/background/hit-test COPY
BlockContainer<DIV>#b/scroll-metadata COPY
BlockContainer<DIV>#b/background COPY
BlockContainer<DIV>#b/border COPY
BlockContainer<DIV>#target/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#target/background/hit-test RECORD
BlockContainer<DIV>#target/scroll-metadata RECORD
BlockContainer<DIV>#target/background SKIP
BlockContainer<DIV>#target/border SKIP
BlockContainer<DIV>#target/descendants(floats) ASSEMBLE
BlockContainer<DIV>#target/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b/foreground/hit-test COPY
BlockContainer<DIV>#b/foreground COPY
BlockContainer<DIV>#target/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#target/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#target/foreground RECORD (empty)
BlockContainer<DIV>#target/outline SKIP
- BlockContainer<DIV>#target/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#target/overlay SKIP
BlockContainer<DIV>#b/outline COPY
- BlockContainer<DIV>#b/overlay/hit-test COPY
BlockContainer<DIV>#b/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
@@ -121,60 +108,47 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a/descendants(background-and-borders) COPY
BlockContainer<DIV>#b/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a/descendants(foreground) COPY
BlockContainer<DIV>#b/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a COPY
BlockContainer<DIV>#b ASSEMBLE
- BlockContainer<DIV>#b/background/hit-test COPY
BlockContainer<DIV>#b/scroll-metadata COPY
BlockContainer<DIV>#b/background COPY
BlockContainer<DIV>#b/border COPY
BlockContainer<DIV>#target/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#target/background/hit-test RECORD
BlockContainer<DIV>#target/scroll-metadata RECORD (empty)
BlockContainer<DIV>#target/background SKIP
BlockContainer<DIV>#target/border SKIP
BlockContainer<DIV>#target/descendants(floats) ASSEMBLE
BlockContainer<DIV>#target/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b/foreground/hit-test COPY
BlockContainer<DIV>#b/foreground COPY
BlockContainer<DIV>#target/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#target/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#target/foreground RECORD (empty)
BlockContainer<DIV>#target/outline SKIP
- BlockContainer<DIV>#target/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#target/overlay SKIP
BlockContainer<DIV>#b/outline COPY
- BlockContainer<DIV>#b/overlay/hit-test COPY
BlockContainer<DIV>#b/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-canvas-color-change.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-canvas-color-change.html
index 4a605c8a604..be1eee932e2 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-canvas-color-change.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-canvas-color-change.html
@@ -33,43 +33,33 @@ displayListTest({
@canvas RECORD (empty)
@viewport RECORD
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test RECORD
@viewport/scroll-metadata RECORD (empty)
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>#html/descendants(background-and-borders) RECORD
- @viewport/foreground/hit-test RECORD (empty)
@viewport/foreground RECORD (empty)
BlockContainer<HTML>#html/descendants(foreground) RECORD
BlockContainer<HTML>#html RECORD
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) RECORD
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#tall/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#tall/background/hit-test RECORD
BlockContainer<DIV>#tall/scroll-metadata RECORD (empty)
BlockContainer<DIV>#tall/background SKIP
BlockContainer<DIV>#tall/border SKIP
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) RECORD
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#tall/descendants(foreground) RECORD
- BlockContainer<DIV>#tall/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#tall/foreground RECORD (empty)
BlockContainer<DIV>#tall/outline SKIP
- BlockContainer<DIV>#tall/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#tall/overlay SKIP
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
@viewport/outline SKIP
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-clean-sibling-context.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-clean-sibling-context.html
index 5f066ab8217..e99499fa36a 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-clean-sibling-context.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-clean-sibling-context.html
@@ -39,45 +39,36 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a/descendants(background-and-borders) COPY
BlockContainer<DIV>#b/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a/descendants(foreground) COPY
BlockContainer<DIV>#b/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a COPY
BlockContainer<DIV>#b ASSEMBLE
- BlockContainer<DIV>#b/background/hit-test COPY
BlockContainer<DIV>#b/scroll-metadata COPY
BlockContainer<DIV>#b/background COPY
BlockContainer<DIV>#b/border COPY
BlockContainer<DIV>#b0.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b0.row/background/hit-test COPY
BlockContainer<DIV>#b0.row/scroll-metadata COPY
BlockContainer<DIV>#b0.row/background SKIP
BlockContainer<DIV>#b0.row/border RECORD
@@ -86,17 +77,13 @@ displayListTest({
BlockContainer<DIV>#b1.row/descendants(floats) COPY
BlockContainer<DIV>#b0.row/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#b1.row/descendants(inline-background-and-borders) COPY
- BlockContainer<DIV>#b/foreground/hit-test COPY
BlockContainer<DIV>#b/foreground COPY
BlockContainer<DIV>#b0.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#b0.row/foreground/hit-test COPY
BlockContainer<DIV>#b0.row/foreground RECORD
BlockContainer<DIV>#b0.row/outline SKIP
- BlockContainer<DIV>#b0.row/overlay/hit-test COPY
BlockContainer<DIV>#b0.row/overlay SKIP
BlockContainer<DIV>#b1.row/descendants(foreground) COPY
BlockContainer<DIV>#b/outline COPY
- BlockContainer<DIV>#b/overlay/hit-test COPY
BlockContainer<DIV>#b/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
@@ -110,44 +97,35 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIV>#b/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#b/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a ASSEMBLE
- BlockContainer<DIV>#a/background/hit-test COPY
BlockContainer<DIV>#a/scroll-metadata COPY
BlockContainer<DIV>#a/background COPY
BlockContainer<DIV>#a/border COPY
BlockContainer<DIV>#a0.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#a0.row/background/hit-test COPY
BlockContainer<DIV>#a0.row/scroll-metadata COPY
BlockContainer<DIV>#a0.row/background SKIP
BlockContainer<DIV>#a0.row/border RECORD
@@ -156,17 +134,13 @@ displayListTest({
BlockContainer<DIV>#a1.row/descendants(floats) COPY
BlockContainer<DIV>#a0.row/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#a1.row/descendants(inline-background-and-borders) COPY
- BlockContainer<DIV>#a/foreground/hit-test COPY
BlockContainer<DIV>#a/foreground COPY
BlockContainer<DIV>#a0.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#a0.row/foreground/hit-test COPY
BlockContainer<DIV>#a0.row/foreground RECORD
BlockContainer<DIV>#a0.row/outline SKIP
- BlockContainer<DIV>#a0.row/overlay/hit-test COPY
BlockContainer<DIV>#a0.row/overlay SKIP
BlockContainer<DIV>#a1.row/descendants(foreground) COPY
BlockContainer<DIV>#a/outline COPY
- BlockContainer<DIV>#a/overlay/hit-test COPY
BlockContainer<DIV>#a/overlay COPY
BlockContainer<DIV>#b COPY
BlockContainer<HTML>#html/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-iframe.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-iframe.html
index 1d10281d1a7..b7926d1c8e0 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-iframe.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-iframe.html
@@ -31,45 +31,36 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#root/descendants(background-and-borders) ASSEMBLE
BlockContainer<BODY>#body/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#root/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#root/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#root ASSEMBLE
- BlockContainer<DIV>#root/background/hit-test COPY
BlockContainer<DIV>#root/scroll-metadata COPY
BlockContainer<DIV>#root/background COPY
BlockContainer<DIV>#root/border COPY
NavigableContainerViewport<IFRAME>#frame/descendants(background-and-borders) COPY
BlockContainer<DIV>#after/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#after/background/hit-test COPY
BlockContainer<DIV>#after/scroll-metadata COPY
BlockContainer<DIV>#after/background SKIP
BlockContainer<DIV>#after/border SKIP
@@ -77,17 +68,13 @@ displayListTest({
BlockContainer<DIV>#after/descendants(floats) ASSEMBLE
NavigableContainerViewport<IFRAME>#frame/descendants(inline-background-and-borders) COPY
BlockContainer<DIV>#after/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<DIV>#root/foreground/hit-test COPY
BlockContainer<DIV>#root/foreground COPY
NavigableContainerViewport<IFRAME>#frame/descendants(foreground) COPY
BlockContainer<DIV>#after/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#after/foreground/hit-test COPY
BlockContainer<DIV>#after/foreground RECORD
BlockContainer<DIV>#after/outline SKIP
- BlockContainer<DIV>#after/overlay/hit-test COPY
BlockContainer<DIV>#after/overlay SKIP
BlockContainer<DIV>#root/outline COPY
- BlockContainer<DIV>#root/overlay/hit-test COPY
BlockContainer<DIV>#root/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-interior-change-after-quiet-frames.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-interior-change-after-quiet-frames.html
index 7213eb99ae6..0a43672bfb0 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-interior-change-after-quiet-frames.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-interior-change-after-quiet-frames.html
@@ -31,45 +31,36 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a/descendants(background-and-borders) COPY
BlockContainer<DIV>#b/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a/descendants(foreground) COPY
BlockContainer<DIV>#b/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a COPY
BlockContainer<DIV>#b ASSEMBLE
- BlockContainer<DIV>#b/background/hit-test COPY
BlockContainer<DIV>#b/scroll-metadata COPY
BlockContainer<DIV>#b/background COPY
BlockContainer<DIV>#b/border COPY
BlockContainer<DIV>#b0.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b0.row/background/hit-test COPY
BlockContainer<DIV>#b0.row/scroll-metadata COPY
BlockContainer<DIV>#b0.row/background SKIP
BlockContainer<DIV>#b0.row/border RECORD
@@ -78,17 +69,13 @@ displayListTest({
BlockContainer<DIV>#b1.row/descendants(floats) COPY
BlockContainer<DIV>#b0.row/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#b1.row/descendants(inline-background-and-borders) COPY
- BlockContainer<DIV>#b/foreground/hit-test COPY
BlockContainer<DIV>#b/foreground COPY
BlockContainer<DIV>#b0.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#b0.row/foreground/hit-test COPY
BlockContainer<DIV>#b0.row/foreground RECORD
BlockContainer<DIV>#b0.row/outline SKIP
- BlockContainer<DIV>#b0.row/overlay/hit-test COPY
BlockContainer<DIV>#b0.row/overlay SKIP
BlockContainer<DIV>#b1.row/descendants(foreground) COPY
BlockContainer<DIV>#b/outline COPY
- BlockContainer<DIV>#b/overlay/hit-test COPY
BlockContainer<DIV>#b/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
@@ -118,45 +105,36 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a/descendants(background-and-borders) COPY
BlockContainer<DIV>#b/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a/descendants(foreground) COPY
BlockContainer<DIV>#b/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a COPY
BlockContainer<DIV>#b ASSEMBLE
- BlockContainer<DIV>#b/background/hit-test COPY
BlockContainer<DIV>#b/scroll-metadata COPY
BlockContainer<DIV>#b/background COPY
BlockContainer<DIV>#b/border COPY
BlockContainer<DIV>#b0.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b0.row/background/hit-test COPY
BlockContainer<DIV>#b0.row/scroll-metadata COPY
BlockContainer<DIV>#b0.row/background SKIP
BlockContainer<DIV>#b0.row/border RECORD
@@ -165,17 +143,13 @@ displayListTest({
BlockContainer<DIV>#b1.row/descendants(floats) COPY
BlockContainer<DIV>#b0.row/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#b1.row/descendants(inline-background-and-borders) COPY
- BlockContainer<DIV>#b/foreground/hit-test COPY
BlockContainer<DIV>#b/foreground COPY
BlockContainer<DIV>#b0.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#b0.row/foreground/hit-test COPY
BlockContainer<DIV>#b0.row/foreground RECORD
BlockContainer<DIV>#b0.row/outline SKIP
- BlockContainer<DIV>#b0.row/overlay/hit-test COPY
BlockContainer<DIV>#b0.row/overlay SKIP
BlockContainer<DIV>#b1.row/descendants(foreground) COPY
BlockContainer<DIV>#b/outline COPY
- BlockContainer<DIV>#b/overlay/hit-test COPY
BlockContainer<DIV>#b/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-masked-box.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-masked-box.html
index aa426e5dca4..bc046785d77 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-masked-box.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-masked-box.html
@@ -30,56 +30,44 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#root/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#root/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#root ASSEMBLE
BlockContainer<DIV>#root/preamble COPY
- BlockContainer<DIV>#root/background/hit-test COPY
BlockContainer<DIV>#root/scroll-metadata COPY
BlockContainer<DIV>#root/background COPY
BlockContainer<DIV>#root/border COPY
BlockContainer<DIV>#r0.row/descendants(background-and-borders) COPY
BlockContainer<DIV>#r1.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#r1.row/background/hit-test COPY
BlockContainer<DIV>#r1.row/scroll-metadata COPY
BlockContainer<DIV>#r1.row/background SKIP
BlockContainer<DIV>#r1.row/border SKIP
BlockContainer<DIV>#r2.row/descendants(background-and-borders) COPY
- BlockContainer<DIV>#root/foreground/hit-test COPY
BlockContainer<DIV>#root/foreground COPY
BlockContainer<DIV>#r0.row/descendants(foreground) COPY
BlockContainer<DIV>#r1.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#r1.row/foreground/hit-test COPY
BlockContainer<DIV>#r1.row/foreground RECORD
BlockContainer<DIV>#r1.row/outline SKIP
- BlockContainer<DIV>#r1.row/overlay/hit-test COPY
BlockContainer<DIV>#r1.row/overlay SKIP
BlockContainer<DIV>#r2.row/descendants(foreground) COPY
BlockContainer<DIV>#root/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-moved-box.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-moved-box.html
index bd38116817d..ab2c4fd20e0 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-moved-box.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-moved-box.html
@@ -33,55 +33,44 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a/descendants(background-and-borders) COPY
BlockContainer<DIV>#b/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a/descendants(foreground) COPY
BlockContainer<DIV>#b/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<DIV>#a COPY
BlockContainer<DIV>#b ASSEMBLE
- BlockContainer<DIV>#b/background/hit-test RECORD
BlockContainer<DIV>#b/scroll-metadata RECORD (empty)
BlockContainer<DIV>#b/background SKIP
BlockContainer<DIV>#b/border SKIP
BlockContainer<DIV>#b0.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b0.row/background/hit-test RECORD
BlockContainer<DIV>#b0.row/scroll-metadata RECORD (empty)
BlockContainer<DIV>#b0.row/background SKIP
BlockContainer<DIV>#b0.row/border SKIP
BlockContainer<DIV>#b1.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b1.row/background/hit-test RECORD
BlockContainer<DIV>#b1.row/scroll-metadata RECORD (empty)
BlockContainer<DIV>#b1.row/background SKIP
BlockContainer<DIV>#b1.row/border SKIP
BlockContainer<DIV>#b2.row/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b2.row/background/hit-test RECORD
BlockContainer<DIV>#b2.row/scroll-metadata RECORD (empty)
BlockContainer<DIV>#b2.row/background SKIP
BlockContainer<DIV>#b2.row/border SKIP
@@ -91,28 +80,20 @@ displayListTest({
BlockContainer<DIV>#b0.row/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#b1.row/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#b2.row/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#b/foreground RECORD (empty)
BlockContainer<DIV>#b0.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#b0.row/foreground/hit-test RECORD
BlockContainer<DIV>#b0.row/foreground RECORD
BlockContainer<DIV>#b0.row/outline SKIP
- BlockContainer<DIV>#b0.row/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#b0.row/overlay SKIP
BlockContainer<DIV>#b1.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#b1.row/foreground/hit-test RECORD
BlockContainer<DIV>#b1.row/foreground RECORD
BlockContainer<DIV>#b1.row/outline SKIP
- BlockContainer<DIV>#b1.row/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#b1.row/overlay SKIP
BlockContainer<DIV>#b2.row/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#b2.row/foreground/hit-test RECORD
BlockContainer<DIV>#b2.row/foreground RECORD
BlockContainer<DIV>#b2.row/outline SKIP
- BlockContainer<DIV>#b2.row/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#b2.row/overlay SKIP
BlockContainer<DIV>#b/outline SKIP
- BlockContainer<DIV>#b/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#b/overlay SKIP
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-new-positioned-descendant.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-new-positioned-descendant.html
index 37eda9a6768..57c259eeebe 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-new-positioned-descendant.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-new-positioned-descendant.html
@@ -32,40 +32,32 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD (empty)
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD (empty)
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#a/descendants(background-and-borders) COPY
BlockContainer<DIV>#b/descendants(background-and-borders) REPLAN
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#a/descendants(foreground) COPY
BlockContainer<DIV>#b/descendants(foreground) REPLAN
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<DIV>#a COPY
BlockContainer<DIV>#b REPLAN
- BlockContainer<DIV>#b/background/hit-test RECORD
BlockContainer<DIV>#b/scroll-metadata RECORD (empty)
BlockContainer<DIV>#b/background SKIP
BlockContainer<DIV>#b/border SKIP
@@ -75,22 +67,17 @@ displayListTest({
BlockContainer<DIV>#inserted.row/descendants(floats) RECORD
BlockContainer<DIV>#b0.row/descendants(inline-background-and-borders) COPY
BlockContainer<DIV>#inserted.row/descendants(inline-background-and-borders) RECORD
- BlockContainer<DIV>#b/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#b/foreground RECORD (empty)
BlockContainer<DIV>#b0.row/descendants(foreground) COPY
BlockContainer<DIV>#inserted.row/descendants(foreground) RECORD
BlockContainer<DIV>#b/outline SKIP
- BlockContainer<DIV>#b/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#b/overlay SKIP
BlockContainer<DIV>#inserted.row RECORD
- BlockContainer<DIV>#inserted.row/background/hit-test RECORD
BlockContainer<DIV>#inserted.row/scroll-metadata RECORD (empty)
BlockContainer<DIV>#inserted.row/background SKIP
BlockContainer<DIV>#inserted.row/border SKIP
- BlockContainer<DIV>#inserted.row/foreground/hit-test RECORD
BlockContainer<DIV>#inserted.row/foreground RECORD
BlockContainer<DIV>#inserted.row/outline SKIP
- BlockContainer<DIV>#inserted.row/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#inserted.row/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-overlay-config.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-overlay-config.html
index c00c0e89586..13430007881 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-overlay-config.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-overlay-config.html
@@ -30,75 +30,57 @@ displayListTest({
@canvas RECORD (empty)
@viewport RECORD
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test RECORD
@viewport/scroll-metadata RECORD
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>#html/descendants(background-and-borders) RECORD
- @viewport/foreground/hit-test RECORD (empty)
@viewport/foreground RECORD (empty)
BlockContainer<HTML>#html/descendants(foreground) RECORD
BlockContainer<HTML>#html RECORD
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) RECORD
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#root/descendants(background-and-borders) RECORD
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) RECORD
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#root/descendants(foreground) RECORD
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<DIV>#root RECORD
BlockContainer<DIV>#root/preamble RECORD (empty)
- BlockContainer<DIV>#root/background/hit-test RECORD
BlockContainer<DIV>#root/scroll-metadata RECORD
BlockContainer<DIV>#root/background SKIP
BlockContainer<DIV>#root/border SKIP
BlockContainer<DIV>#scroller/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#root/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#root/foreground RECORD (empty)
BlockContainer<DIV>#scroller/descendants(foreground) RECORD
BlockContainer<DIV>#scroller RECORD
BlockContainer<DIV>#scroller/preamble RECORD (empty)
- BlockContainer<DIV>#scroller/background/hit-test RECORD
BlockContainer<DIV>#scroller/scroll-metadata RECORD
BlockContainer<DIV>#scroller/background SKIP
BlockContainer<DIV>#scroller/border SKIP
BlockContainer<DIV>#content/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#content/background/hit-test RECORD
BlockContainer<DIV>#content/scroll-metadata RECORD
BlockContainer<DIV>#content/background SKIP
BlockContainer<DIV>#content/border SKIP
- BlockContainer<DIV>#scroller/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#scroller/foreground RECORD (empty)
BlockContainer<DIV>#content/descendants(foreground) RECORD
- BlockContainer<DIV>#content/foreground/hit-test RECORD
BlockContainer<DIV>#content/foreground RECORD
BlockContainer<DIV>#content/outline SKIP
- BlockContainer<DIV>#content/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#content/overlay SKIP
BlockContainer<DIV>#scroller/outline SKIP
- BlockContainer<DIV>#scroller/overlay/hit-test RECORD
BlockContainer<DIV>#scroller/overlay RECORD
BlockContainer<DIV>#root/outline SKIP
- BlockContainer<DIV>#root/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#root/overlay SKIP
BlockContainer<HTML>#html/outline SKIP
- BlockContainer<HTML>#html/overlay/hit-test RECORD (empty)
BlockContainer<HTML>#html/overlay SKIP
@viewport/outline SKIP
- @viewport/overlay/hit-test RECORD (empty)
@viewport/overlay RECORD (empty)
`
},
@@ -109,63 +91,49 @@ displayListTest({
@canvas RECORD (empty)
@viewport RECORD
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test RECORD
@viewport/scroll-metadata RECORD
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>#html/descendants(background-and-borders) RECORD
- @viewport/foreground/hit-test RECORD (empty)
@viewport/foreground RECORD (empty)
BlockContainer<HTML>#html/descendants(foreground) RECORD
BlockContainer<HTML>#html RECORD
BlockContainer<HTML>#html/preamble RECORD (empty)
- BlockContainer<HTML>#html/background/hit-test RECORD
BlockContainer<HTML>#html/scroll-metadata RECORD
BlockContainer<HTML>#html/background RECORD (empty)
BlockContainer<HTML>#html/border SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) RECORD
- BlockContainer<BODY>#body/background/hit-test RECORD
BlockContainer<BODY>#body/scroll-metadata RECORD
BlockContainer<BODY>#body/background SKIP
BlockContainer<BODY>#body/border SKIP
BlockContainer<DIV>#root/descendants(background-and-borders) RECORD
- BlockContainer<HTML>#html/foreground/hit-test RECORD (empty)
BlockContainer<HTML>#html/foreground RECORD (empty)
BlockContainer<BODY>#body/descendants(foreground) RECORD
- BlockContainer<BODY>#body/foreground/hit-test RECORD (empty)
BlockContainer<BODY>#body/foreground RECORD (empty)
BlockContainer<DIV>#root/descendants(foreground) RECORD
BlockContainer<BODY>#body/outline SKIP
- BlockContainer<BODY>#body/overlay/hit-test RECORD (empty)
BlockContainer<BODY>#body/overlay SKIP
BlockContainer<DIV>#root RECORD
BlockContainer<DIV>#root/preamble RECORD (empty)
- BlockContainer<DIV>#root/background/hit-test RECORD
BlockContainer<DIV>#root/scroll-metadata RECORD
BlockContainer<DIV>#root/background SKIP
BlockContainer<DIV>#root/border SKIP
BlockContainer<DIV>#scroller/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#root/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#root/foreground RECORD (empty)
BlockContainer<DIV>#scroller/descendants(foreground) RECORD
BlockContainer<DIV>#scroller RECORD
BlockContainer<DIV>#scroller/preamble RECORD (empty)
- BlockContainer<DIV>#scroller/background/hit-test RECORD
BlockContainer<DIV>#scroller/scroll-metadata RECORD
BlockContainer<DIV>#scroller/background SKIP
BlockContainer<DIV>#scroller/border SKIP
BlockContainer<DIV>#content/descendants(background-and-borders) RECORD
- BlockContainer<DIV>#content/background/hit-test RECORD
BlockContainer<DIV>#content/scroll-metadata RECORD
BlockContainer<DIV>#content/background SKIP
BlockContainer<DIV>#content/border SKIP
- BlockContainer<DIV>#scroller/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#scroller/foreground RECORD (empty)
BlockContainer<DIV>#content/descendants(foreground) RECORD
- BlockContainer<DIV>#content/foreground/hit-test RECORD
BlockContainer<DIV>#content/foreground RECORD
BlockContainer<DIV>#content/outline SKIP
- BlockContainer<DIV>#content/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#content/overlay SKIP
BlockContainer<DIV>#scroller/outline SKIP
BlockContainer<DIV>#root/outline SKIP
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-self-contained-svg.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-self-contained-svg.html
index 2b60a508d9e..27b445a3f22 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-self-contained-svg.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-self-contained-svg.html
@@ -30,63 +30,49 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#root/descendants(background-and-borders) ASSEMBLE
BlockContainer<BODY>#body/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#root/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#root/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#root ASSEMBLE
- BlockContainer<DIV>#root/background/hit-test COPY
BlockContainer<DIV>#root/scroll-metadata COPY
BlockContainer<DIV>#root/background COPY
BlockContainer<DIV>#root/border COPY
SVGSVGBox<svg>#svg/descendants(background-and-borders) ASSEMBLE
SVGSVGBox<svg>#svg/descendants(floats) ASSEMBLE
SVGSVGBox<svg>#svg/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<DIV>#root/foreground/hit-test COPY
BlockContainer<DIV>#root/foreground COPY
SVGSVGBox<svg>#svg/descendants(foreground) ASSEMBLE
- SVGSVGBox<svg>#svg/background/hit-test COPY
SVGSVGBox<svg>#svg/scroll-metadata COPY
SVGSVGBox<svg>#svg/background COPY
SVGSVGBox<svg>#svg/border COPY
SVGSVGBox<svg>#svg/svg RECORD
- SVGSVGBox<svg>#svg/foreground/hit-test RECORD (empty)
SVGSVGBox<svg>#svg/foreground RECORD (empty)
SVGGeometryBox<path>#p/svg RECORD
- SVGGeometryBox<path>#p/foreground/hit-test RECORD
SVGGeometryBox<path>#p/foreground RECORD
SVGGeometryBox<circle>#circle/svg RECORD
- SVGGeometryBox<circle>#circle/foreground/hit-test RECORD
SVGGeometryBox<circle>#circle/foreground RECORD
BlockContainer<DIV>#root/outline COPY
- BlockContainer<DIV>#root/overlay/hit-test COPY
BlockContainer<DIV>#root/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-svg-context.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-svg-context.html
index 266ff40b05f..adf034d6317 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-svg-context.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-svg-context.html
@@ -30,22 +30,18 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
@@ -54,41 +50,32 @@ displayListTest({
BlockContainer<BODY>#body/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#root/descendants(inline-background-and-borders) ASSEMBLE
SVGSVGBox<svg>#resources/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#root/descendants(foreground) ASSEMBLE
SVGSVGBox<svg>#resources/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#root ASSEMBLE
- BlockContainer<DIV>#root/background/hit-test COPY
BlockContainer<DIV>#root/scroll-metadata COPY
BlockContainer<DIV>#root/background COPY
BlockContainer<DIV>#root/border COPY
SVGSVGBox<svg>#svg/descendants(background-and-borders) ASSEMBLE
SVGSVGBox<svg>#svg/descendants(floats) ASSEMBLE
SVGSVGBox<svg>#svg/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<DIV>#root/foreground/hit-test COPY
BlockContainer<DIV>#root/foreground COPY
SVGSVGBox<svg>#svg/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#root/outline COPY
- BlockContainer<DIV>#root/overlay/hit-test COPY
BlockContainer<DIV>#root/overlay COPY
SVGSVGBox<svg>#svg ASSEMBLE
SVGSVGBox<svg>#svg/preamble COPY
- SVGSVGBox<svg>#svg/background/hit-test COPY
SVGSVGBox<svg>#svg/scroll-metadata COPY
SVGSVGBox<svg>#svg/background COPY
SVGSVGBox<svg>#svg/border COPY
SVGSVGBox<svg>#svg/svg RECORD
- SVGSVGBox<svg>#svg/foreground/hit-test RECORD (empty)
SVGSVGBox<svg>#svg/foreground RECORD (empty)
SVGGeometryBox<rect>#rect/svg RECORD
- SVGGeometryBox<rect>#rect/foreground/hit-test RECORD
SVGGeometryBox<rect>#rect/foreground RECORD
SVGSVGBox<svg>#svg/outline COPY
BlockContainer<HTML>#html/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-svg-mask-area-change.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-svg-mask-area-change.html
index 1b4ef003c5b..2d0d3e4e40f 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-svg-mask-area-change.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-svg-mask-area-change.html
@@ -34,39 +34,31 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
SVGSVGBox<svg>#svg/descendants(background-and-borders) ASSEMBLE
BlockContainer<BODY>#body/descendants(inline-background-and-borders) ASSEMBLE
SVGSVGBox<svg>#svg/descendants(inline-background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
SVGSVGBox<svg>#svg ASSEMBLE
- SVGSVGBox<svg>#svg/background/hit-test RECORD
SVGSVGBox<svg>#svg/scroll-metadata RECORD (empty)
SVGSVGBox<svg>#svg/background SKIP
SVGSVGBox<svg>#svg/border SKIP
SVGSVGBox<svg>#svg/svg RECORD
- SVGSVGBox<svg>#svg/foreground/hit-test RECORD (empty)
SVGSVGBox<svg>#svg/foreground RECORD (empty)
SVGGraphicsBox<g>#group/svg RECORD
SVGGraphicsBox<g>#group/svg-mask RECORD
@@ -76,15 +68,12 @@ displayListTest({
SVGMaskBox<mask>#m/foreground RECORD (empty)
SVGGeometryBox<rect>#mask-rect/svg RECORD
SVGGeometryBox<rect>#mask-rect/foreground RECORD
- SVGGraphicsBox<g>#group/foreground/hit-test RECORD (empty)
SVGGraphicsBox<g>#group/foreground RECORD (empty)
SVGGeometryBox<rect>#masked/svg RECORD
- SVGGeometryBox<rect>#masked/foreground/hit-test RECORD
SVGGeometryBox<rect>#masked/foreground RECORD
BlockContainer<BODY>#body/foreground COPY
SVGSVGBox<svg>#svg/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-z-order-change.html b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-z-order-change.html
index 514408d6c2e..565e8947c16 100644
--- a/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-z-order-change.html
+++ b/Tests/LibWeb/Text/input/display_list/painted-as-stacking-context-capture-z-order-change.html
@@ -33,45 +33,36 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<DIV>#b REPLAN
BlockContainer<DIV>#b/preamble RECORD (empty)
- BlockContainer<DIV>#b/background/hit-test RECORD
BlockContainer<DIV>#b/scroll-metadata RECORD (empty)
BlockContainer<DIV>#b/background RECORD
BlockContainer<DIV>#b/border SKIP
- BlockContainer<DIV>#b/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#b/foreground RECORD (empty)
BlockContainer<DIV>#b/outline SKIP
BlockContainer<BODY>#body/descendants(background-and-borders) REPLAN
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a/descendants(background-and-borders) COPY
BlockContainer<DIV>#b/descendants(background-and-borders) REPLAN
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) REPLAN
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a/descendants(foreground) COPY
BlockContainer<DIV>#b/descendants(foreground) REPLAN
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a COPY
BlockContainer<HTML>#html/outline COPY
@@ -87,45 +78,36 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html REPLAN
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) REPLAN
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a/descendants(background-and-borders) COPY
BlockContainer<DIV>#b/descendants(background-and-borders) REPLAN
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) REPLAN
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a/descendants(foreground) COPY
BlockContainer<DIV>#b/descendants(foreground) REPLAN
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a COPY
BlockContainer<DIV>#b REPLAN
BlockContainer<DIV>#b/preamble RECORD (empty)
- BlockContainer<DIV>#b/background/hit-test RECORD
BlockContainer<DIV>#b/scroll-metadata RECORD (empty)
BlockContainer<DIV>#b/background RECORD
BlockContainer<DIV>#b/border SKIP
- BlockContainer<DIV>#b/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#b/foreground RECORD (empty)
BlockContainer<DIV>#b/outline SKIP
BlockContainer<HTML>#html/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/recording-trace-owner-names.html b/Tests/LibWeb/Text/input/display_list/recording-trace-owner-names.html
index d3fba62aebd..270130f36f3 100644
--- a/Tests/LibWeb/Text/input/display_list/recording-trace-owner-names.html
+++ b/Tests/LibWeb/Text/input/display_list/recording-trace-owner-names.html
@@ -27,55 +27,44 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#first/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIV>#second/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#first/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#second/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#first ASSEMBLE
- BlockContainer<DIV>#first/background/hit-test COPY
BlockContainer<DIV>#first/scroll-metadata COPY
BlockContainer<DIV>#first/background COPY
BlockContainer<DIV>#first/border COPY
BlockContainer(anonymous)/descendants(background-and-borders) COPY
BlockContainer<DIV>#item/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#item/background/hit-test COPY
BlockContainer<DIV>#item/scroll-metadata COPY
BlockContainer<DIV>#item/background SKIP
BlockContainer<DIV>#item/border SKIP
BlockContainer(anonymous)/descendants(background-and-borders) ASSEMBLE
- BlockContainer(anonymous)/background/hit-test COPY
BlockContainer(anonymous)/scroll-metadata COPY
BlockContainer(anonymous)/background RECORD
BlockContainer(anonymous)/border SKIP
BlockContainer(anonymous)/descendants(background-and-borders) ASSEMBLE
- BlockContainer(anonymous)/background/hit-test COPY
BlockContainer(anonymous)/scroll-metadata COPY
BlockContainer(anonymous)/background SKIP
BlockContainer(anonymous)/border SKIP
@@ -90,30 +79,22 @@ displayListTest({
BlockContainer(anonymous)/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer(anonymous)/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer(anonymous)/descendants(inline-background-and-borders) COPY
- BlockContainer<DIV>#first/foreground/hit-test COPY
BlockContainer<DIV>#first/foreground COPY
BlockContainer(anonymous)/descendants(foreground) COPY
BlockContainer<DIV>#item/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#item/foreground/hit-test COPY
BlockContainer<DIV>#item/foreground RECORD (empty)
BlockContainer(anonymous)/descendants(foreground) ASSEMBLE
- BlockContainer(anonymous)/foreground/hit-test COPY
BlockContainer(anonymous)/foreground RECORD
BlockContainer(anonymous)/outline SKIP
- BlockContainer(anonymous)/overlay/hit-test COPY
BlockContainer(anonymous)/overlay SKIP
BlockContainer(anonymous)/descendants(foreground) ASSEMBLE
- BlockContainer(anonymous)/foreground/hit-test COPY
BlockContainer(anonymous)/foreground RECORD
BlockContainer(anonymous)/outline SKIP
- BlockContainer(anonymous)/overlay/hit-test COPY
BlockContainer(anonymous)/overlay SKIP
BlockContainer<DIV>#item/outline SKIP
- BlockContainer<DIV>#item/overlay/hit-test COPY
BlockContainer<DIV>#item/overlay SKIP
BlockContainer(anonymous)/descendants(foreground) COPY
BlockContainer<DIV>#first/outline COPY
- BlockContainer<DIV>#first/overlay/hit-test COPY
BlockContainer<DIV>#first/overlay COPY
BlockContainer<DIV>#second COPY
BlockContainer<HTML>#html/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/stacking-context-capture-nested-clean-sibling.html b/Tests/LibWeb/Text/input/display_list/stacking-context-capture-nested-clean-sibling.html
index b26112cd254..eb550004adc 100644
--- a/Tests/LibWeb/Text/input/display_list/stacking-context-capture-nested-clean-sibling.html
+++ b/Tests/LibWeb/Text/input/display_list/stacking-context-capture-nested-clean-sibling.html
@@ -36,41 +36,33 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a.context/descendants(background-and-borders) COPY
BlockContainer<DIV>#b.context/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a.context/descendants(foreground) COPY
BlockContainer<DIV>#b.context/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a.context COPY
BlockContainer<DIV>#b.context ASSEMBLE
BlockContainer<DIV>#b.context/preamble COPY
- BlockContainer<DIV>#b.context/background/hit-test COPY
BlockContainer<DIV>#b.context/scroll-metadata COPY
BlockContainer<DIV>#b.context/background COPY
BlockContainer<DIV>#b.context/border COPY
@@ -78,18 +70,15 @@ displayListTest({
BlockContainer<DIV>#b-label.label/descendants(background-and-borders) COPY
BlockContainer<DIV>#b-underlay.underlay/descendants(background-and-borders) COPY
BlockContainer<DIV>#b-detail.detail/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#b.context/foreground/hit-test COPY
BlockContainer<DIV>#b.context/foreground COPY
BlockContainer<DIV>#b-label.label/descendants(foreground) COPY
BlockContainer<DIV>#b-underlay.underlay/descendants(foreground) COPY
BlockContainer<DIV>#b-detail.detail/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#b-detail.detail ASSEMBLE
BlockContainer<DIV>#b-detail.detail/preamble RECORD (empty)
- BlockContainer<DIV>#b-detail.detail/background/hit-test COPY
BlockContainer<DIV>#b-detail.detail/scroll-metadata COPY
BlockContainer<DIV>#b-detail.detail/background RECORD
BlockContainer<DIV>#b-detail.detail/border SKIP
- BlockContainer<DIV>#b-detail.detail/foreground/hit-test COPY
BlockContainer<DIV>#b-detail.detail/foreground RECORD
BlockContainer<DIV>#b-detail.detail/outline SKIP
BlockContainer<DIV>#b.context/outline COPY
@@ -116,58 +105,46 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a.context/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIV>#b.context/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a.context/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#b.context/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a.context ASSEMBLE
BlockContainer<DIV>#a.context/preamble COPY
- BlockContainer<DIV>#a.context/background/hit-test COPY
BlockContainer<DIV>#a.context/scroll-metadata COPY
BlockContainer<DIV>#a.context/background COPY
BlockContainer<DIV>#a.context/border COPY
BlockContainer<DIV>#a-underlay.underlay COPY
BlockContainer<DIV>#a-label.label/descendants(background-and-borders) ASSEMBLE
- BlockContainer<DIV>#a-label.label/background/hit-test COPY
BlockContainer<DIV>#a-label.label/scroll-metadata COPY
BlockContainer<DIV>#a-label.label/background RECORD
BlockContainer<DIV>#a-label.label/border RECORD
BlockContainer<DIV>#a-underlay.underlay/descendants(background-and-borders) COPY
BlockContainer<DIV>#a-detail.detail/descendants(background-and-borders) COPY
- BlockContainer<DIV>#a.context/foreground/hit-test COPY
BlockContainer<DIV>#a.context/foreground COPY
BlockContainer<DIV>#a-label.label/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#a-label.label/foreground/hit-test COPY
BlockContainer<DIV>#a-label.label/foreground RECORD
BlockContainer<DIV>#a-label.label/outline SKIP
- BlockContainer<DIV>#a-label.label/overlay/hit-test COPY
BlockContainer<DIV>#a-label.label/overlay SKIP
BlockContainer<DIV>#a-underlay.underlay/descendants(foreground) COPY
BlockContainer<DIV>#a-detail.detail/descendants(foreground) COPY
@@ -188,57 +165,46 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer<DIV>#a.context/descendants(background-and-borders) COPY
BlockContainer<DIV>#b.context/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#a.context/descendants(foreground) COPY
BlockContainer<DIV>#b.context/descendants(foreground) ASSEMBLE
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#a.context COPY
BlockContainer<DIV>#b.context ASSEMBLE
BlockContainer<DIV>#b.context/preamble COPY
- BlockContainer<DIV>#b.context/background/hit-test COPY
BlockContainer<DIV>#b.context/scroll-metadata COPY
BlockContainer<DIV>#b.context/background COPY
BlockContainer<DIV>#b.context/border COPY
BlockContainer<DIV>#b-underlay.underlay ASSEMBLE
BlockContainer<DIV>#b-underlay.underlay/preamble RECORD (empty)
- BlockContainer<DIV>#b-underlay.underlay/background/hit-test COPY
BlockContainer<DIV>#b-underlay.underlay/scroll-metadata COPY
BlockContainer<DIV>#b-underlay.underlay/background RECORD
BlockContainer<DIV>#b-underlay.underlay/border SKIP
- BlockContainer<DIV>#b-underlay.underlay/foreground/hit-test COPY
BlockContainer<DIV>#b-underlay.underlay/foreground RECORD
BlockContainer<DIV>#b-underlay.underlay/outline SKIP
BlockContainer<DIV>#b-label.label/descendants(background-and-borders) COPY
BlockContainer<DIV>#b-underlay.underlay/descendants(background-and-borders) ASSEMBLE
BlockContainer<DIV>#b-detail.detail/descendants(background-and-borders) COPY
- BlockContainer<DIV>#b.context/foreground/hit-test COPY
BlockContainer<DIV>#b.context/foreground COPY
BlockContainer<DIV>#b-label.label/descendants(foreground) COPY
BlockContainer<DIV>#b-underlay.underlay/descendants(foreground) ASSEMBLE
diff --git a/Tests/LibWeb/Text/input/display_list/svg-resource-clip-content-change.html b/Tests/LibWeb/Text/input/display_list/svg-resource-clip-content-change.html
index bfd8a663163..45906519a8d 100644
--- a/Tests/LibWeb/Text/input/display_list/svg-resource-clip-content-change.html
+++ b/Tests/LibWeb/Text/input/display_list/svg-resource-clip-content-change.html
@@ -34,27 +34,22 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer(anonymous)/descendants(background-and-borders) ASSEMBLE
- BlockContainer(anonymous)/background/hit-test COPY
BlockContainer(anonymous)/scroll-metadata COPY
BlockContainer(anonymous)/background COPY
BlockContainer(anonymous)/border COPY
@@ -64,20 +59,15 @@ displayListTest({
BlockContainer(anonymous)/descendants(inline-background-and-borders) ASSEMBLE
SVGSVGBox<svg>#svg/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#other/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer(anonymous)/descendants(foreground) ASSEMBLE
- BlockContainer(anonymous)/foreground/hit-test COPY
SVGSVGBox<svg>#svg ASSEMBLE
- SVGSVGBox<svg>#svg/background/hit-test RECORD
SVGSVGBox<svg>#svg/scroll-metadata RECORD (empty)
SVGSVGBox<svg>#svg/background SKIP
SVGSVGBox<svg>#svg/border SKIP
SVGSVGBox<svg>#svg/svg RECORD
- SVGSVGBox<svg>#svg/foreground/hit-test RECORD (empty)
SVGSVGBox<svg>#svg/foreground RECORD (empty)
SVGGeometryBox<rect>#clipped/svg RECORD
SVGGeometryBox<rect>#clipped/svg-clip RECORD
@@ -87,16 +77,13 @@ displayListTest({
SVGClipBox<clipPath>#c/foreground RECORD (empty)
SVGGeometryBox<rect>#clip-rect/svg RECORD
SVGGeometryBox<rect>#clip-rect/foreground RECORD
- SVGGeometryBox<rect>#clipped/foreground/hit-test RECORD
SVGGeometryBox<rect>#clipped/foreground RECORD
BlockContainer(anonymous)/foreground COPY
SVGSVGBox<svg>#svg/descendants(foreground) ASSEMBLE
BlockContainer(anonymous)/outline COPY
- BlockContainer(anonymous)/overlay/hit-test COPY
BlockContainer(anonymous)/overlay COPY
BlockContainer<DIV>#other/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/svg-resource-filter-change.html b/Tests/LibWeb/Text/input/display_list/svg-resource-filter-change.html
index edfdc391f12..247dd07231d 100644
--- a/Tests/LibWeb/Text/input/display_list/svg-resource-filter-change.html
+++ b/Tests/LibWeb/Text/input/display_list/svg-resource-filter-change.html
@@ -33,22 +33,18 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
@@ -59,24 +55,19 @@ displayListTest({
BlockContainer<DIV>#filtered/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#other/descendants(inline-background-and-borders) COPY
BlockContainer(anonymous)/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#filtered/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#other/descendants(foreground) COPY
BlockContainer(anonymous)/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#filtered ASSEMBLE
BlockContainer<DIV>#filtered/preamble RECORD
- BlockContainer<DIV>#filtered/background/hit-test RECORD
BlockContainer<DIV>#filtered/scroll-metadata RECORD (empty)
BlockContainer<DIV>#filtered/background SKIP
BlockContainer<DIV>#filtered/border SKIP
- BlockContainer<DIV>#filtered/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#filtered/foreground RECORD (empty)
BlockContainer<DIV>#filtered/outline SKIP
BlockContainer<HTML>#html/outline COPY
@@ -91,22 +82,18 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
@@ -117,24 +104,19 @@ displayListTest({
BlockContainer<DIV>#filtered/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#other/descendants(inline-background-and-borders) COPY
BlockContainer(anonymous)/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#filtered/descendants(foreground) ASSEMBLE
BlockContainer<DIV>#other/descendants(foreground) COPY
BlockContainer(anonymous)/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<DIV>#filtered ASSEMBLE
BlockContainer<DIV>#filtered/preamble RECORD
- BlockContainer<DIV>#filtered/background/hit-test COPY
BlockContainer<DIV>#filtered/scroll-metadata COPY
BlockContainer<DIV>#filtered/background COPY
BlockContainer<DIV>#filtered/border COPY
- BlockContainer<DIV>#filtered/foreground/hit-test COPY
BlockContainer<DIV>#filtered/foreground COPY
BlockContainer<DIV>#filtered/outline COPY
BlockContainer<HTML>#html/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/svg-resource-gradient-change.html b/Tests/LibWeb/Text/input/display_list/svg-resource-gradient-change.html
index 89430d41866..e12e5cfea93 100644
--- a/Tests/LibWeb/Text/input/display_list/svg-resource-gradient-change.html
+++ b/Tests/LibWeb/Text/input/display_list/svg-resource-gradient-change.html
@@ -32,22 +32,18 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
@@ -56,28 +52,21 @@ displayListTest({
BlockContainer<BODY>#body/descendants(inline-background-and-borders) ASSEMBLE
SVGSVGBox<svg>#svg/descendants(inline-background-and-borders) ASSEMBLE
SVGSVGBox<svg>#resources/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
SVGSVGBox<svg>#svg/descendants(foreground) ASSEMBLE
- SVGSVGBox<svg>#svg/background/hit-test COPY
SVGSVGBox<svg>#svg/scroll-metadata COPY
SVGSVGBox<svg>#svg/background COPY
SVGSVGBox<svg>#svg/border COPY
SVGSVGBox<svg>#svg/svg RECORD
- SVGSVGBox<svg>#svg/foreground/hit-test RECORD (empty)
SVGSVGBox<svg>#svg/foreground RECORD (empty)
SVGGeometryBox<rect>#rect/svg RECORD
- SVGGeometryBox<rect>#rect/foreground/hit-test RECORD
SVGGeometryBox<rect>#rect/foreground RECORD
SVGGeometryBox<rect>#other/svg RECORD
- SVGGeometryBox<rect>#other/foreground/hit-test RECORD
SVGGeometryBox<rect>#other/foreground RECORD
SVGSVGBox<svg>#resources/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/svg-resource-mask-content-change.html b/Tests/LibWeb/Text/input/display_list/svg-resource-mask-content-change.html
index c68c0329eda..dea7883ed7b 100644
--- a/Tests/LibWeb/Text/input/display_list/svg-resource-mask-content-change.html
+++ b/Tests/LibWeb/Text/input/display_list/svg-resource-mask-content-change.html
@@ -36,27 +36,22 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
BlockContainer(anonymous)/descendants(background-and-borders) ASSEMBLE
- BlockContainer(anonymous)/background/hit-test COPY
BlockContainer(anonymous)/scroll-metadata COPY
BlockContainer(anonymous)/background COPY
BlockContainer(anonymous)/border COPY
@@ -66,20 +61,15 @@ displayListTest({
BlockContainer(anonymous)/descendants(inline-background-and-borders) ASSEMBLE
SVGSVGBox<svg>#svg/descendants(inline-background-and-borders) ASSEMBLE
BlockContainer<DIV>#other/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer(anonymous)/descendants(foreground) ASSEMBLE
- BlockContainer(anonymous)/foreground/hit-test COPY
SVGSVGBox<svg>#svg ASSEMBLE
- SVGSVGBox<svg>#svg/background/hit-test RECORD
SVGSVGBox<svg>#svg/scroll-metadata RECORD (empty)
SVGSVGBox<svg>#svg/background SKIP
SVGSVGBox<svg>#svg/border SKIP
SVGSVGBox<svg>#svg/svg RECORD
- SVGSVGBox<svg>#svg/foreground/hit-test RECORD (empty)
SVGSVGBox<svg>#svg/foreground RECORD (empty)
SVGGraphicsBox<g>#group/svg RECORD
SVGGraphicsBox<g>#group/svg-mask RECORD
@@ -89,19 +79,15 @@ displayListTest({
SVGMaskBox<mask>#m/foreground RECORD (empty)
SVGGeometryBox<rect>#mask-rect/svg RECORD
SVGGeometryBox<rect>#mask-rect/foreground RECORD
- SVGGraphicsBox<g>#group/foreground/hit-test RECORD (empty)
SVGGraphicsBox<g>#group/foreground RECORD (empty)
SVGGeometryBox<rect>#masked/svg RECORD
- SVGGeometryBox<rect>#masked/foreground/hit-test RECORD
SVGGeometryBox<rect>#masked/foreground RECORD
BlockContainer(anonymous)/foreground COPY
SVGSVGBox<svg>#svg/descendants(foreground) ASSEMBLE
BlockContainer(anonymous)/outline COPY
- BlockContainer(anonymous)/overlay/hit-test COPY
BlockContainer(anonymous)/overlay COPY
BlockContainer<DIV>#other/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/svg-resource-pattern-stays-live.html b/Tests/LibWeb/Text/input/display_list/svg-resource-pattern-stays-live.html
index e73a0779dd9..1fa793582d2 100644
--- a/Tests/LibWeb/Text/input/display_list/svg-resource-pattern-stays-live.html
+++ b/Tests/LibWeb/Text/input/display_list/svg-resource-pattern-stays-live.html
@@ -23,37 +23,29 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) COPY
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) COPY
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) COPY
BlockContainer<BODY>#body/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
SVGSVGBox<svg>#svg/descendants(foreground) ASSEMBLE
- SVGSVGBox<svg>#svg/background/hit-test COPY
SVGSVGBox<svg>#svg/scroll-metadata COPY
SVGSVGBox<svg>#svg/background COPY
SVGSVGBox<svg>#svg/border COPY
SVGSVGBox<svg>#svg/svg RECORD
- SVGSVGBox<svg>#svg/foreground/hit-test RECORD (empty)
SVGSVGBox<svg>#svg/foreground RECORD (empty)
SVGGeometryBox<rect>#rect/svg RECORD
- SVGGeometryBox<rect>#rect/foreground/hit-test RECORD
SVGGeometryBox<rect>#rect/foreground RECORD
SVGPatternBox<pattern>#p/svg-pattern RECORD
SVGPatternBox<pattern>#p/background RECORD (empty)
@@ -63,11 +55,9 @@ displayListTest({
SVGGeometryBox<rect>#tile/svg RECORD
SVGGeometryBox<rect>#tile/foreground RECORD
SVGGeometryBox<rect>#other/svg RECORD
- SVGGeometryBox<rect>#other/foreground/hit-test RECORD
SVGGeometryBox<rect>#other/foreground RECORD
SVGSVGBox<svg>#resources/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
@@ -81,22 +71,18 @@ displayListTest({
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) ASSEMBLE
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>#body/background/hit-test COPY
BlockContainer<BODY>#body/scroll-metadata COPY
BlockContainer<BODY>#body/background COPY
BlockContainer<BODY>#body/border COPY
@@ -105,21 +91,16 @@ displayListTest({
BlockContainer<BODY>#body/descendants(inline-background-and-borders) ASSEMBLE
SVGSVGBox<svg>#svg/descendants(inline-background-and-borders) ASSEMBLE
SVGSVGBox<svg>#resources/descendants(inline-background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
SVGSVGBox<svg>#svg/descendants(foreground) ASSEMBLE
- SVGSVGBox<svg>#svg/background/hit-test COPY
SVGSVGBox<svg>#svg/scroll-metadata COPY
SVGSVGBox<svg>#svg/background COPY
SVGSVGBox<svg>#svg/border COPY
SVGSVGBox<svg>#svg/svg RECORD
- SVGSVGBox<svg>#svg/foreground/hit-test RECORD (empty)
SVGSVGBox<svg>#svg/foreground RECORD (empty)
SVGGeometryBox<rect>#rect/svg RECORD
- SVGGeometryBox<rect>#rect/foreground/hit-test RECORD
SVGGeometryBox<rect>#rect/foreground RECORD
SVGPatternBox<pattern>#p/svg-pattern RECORD
SVGPatternBox<pattern>#p/background RECORD (empty)
@@ -129,11 +110,9 @@ displayListTest({
SVGGeometryBox<rect>#tile/svg RECORD
SVGGeometryBox<rect>#tile/foreground RECORD
SVGGeometryBox<rect>#other/svg RECORD
- SVGGeometryBox<rect>#other/foreground/hit-test RECORD
SVGGeometryBox<rect>#other/foreground RECORD
SVGSVGBox<svg>#resources/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/window-focus-change-records-caret.html b/Tests/LibWeb/Text/input/display_list/window-focus-change-records-caret.html
index e5ddecd6ccf..486ce5716e7 100644
--- a/Tests/LibWeb/Text/input/display_list/window-focus-change-records-caret.html
+++ b/Tests/LibWeb/Text/input/display_list/window-focus-change-records-caret.html
@@ -17,35 +17,27 @@ const focusChangeTrace = `
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) COPY
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) COPY
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#editor/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#editor/foreground/hit-test COPY
BlockContainer<DIV>#editor/foreground RECORD
BlockContainer<DIV>#editor/outline COPY
- BlockContainer<DIV>#editor/overlay/hit-test COPY
BlockContainer<DIV>#editor/overlay COPY
BlockContainer<DIV>#plain/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/display_list/window-focus-change-records-focus-dependent-output.html b/Tests/LibWeb/Text/input/display_list/window-focus-change-records-focus-dependent-output.html
index 4128793afa8..96530e13f0c 100644
--- a/Tests/LibWeb/Text/input/display_list/window-focus-change-records-focus-dependent-output.html
+++ b/Tests/LibWeb/Text/input/display_list/window-focus-change-records-focus-dependent-output.html
@@ -17,41 +17,31 @@ const focusChangeTrace = ringOutline => `
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>#html/descendants(background-and-borders) COPY
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>#html/descendants(foreground) COPY
BlockContainer<HTML>#html ASSEMBLE
BlockContainer<HTML>#html/preamble COPY
- BlockContainer<HTML>#html/background/hit-test COPY
BlockContainer<HTML>#html/scroll-metadata COPY
BlockContainer<HTML>#html/background COPY
BlockContainer<HTML>#html/border COPY
BlockContainer<BODY>#body/descendants(background-and-borders) COPY
- BlockContainer<HTML>#html/foreground/hit-test COPY
BlockContainer<HTML>#html/foreground COPY
BlockContainer<BODY>#body/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>#body/foreground/hit-test COPY
BlockContainer<BODY>#body/foreground COPY
BlockContainer<DIV>#ring/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#ring/foreground/hit-test COPY
BlockContainer<DIV>#ring/foreground COPY
BlockContainer<DIV>#ring/outline ${ringOutline}
- BlockContainer<DIV>#ring/overlay/hit-test COPY
BlockContainer<DIV>#ring/overlay COPY
BlockContainer<DIV>#selected/descendants(foreground) ASSEMBLE
- BlockContainer<DIV>#selected/foreground/hit-test COPY
BlockContainer<DIV>#selected/foreground RECORD
BlockContainer<DIV>#selected/outline COPY
- BlockContainer<DIV>#selected/overlay/hit-test COPY
BlockContainer<DIV>#selected/overlay COPY
BlockContainer<DIV>#plain/descendants(foreground) COPY
BlockContainer<BODY>#body/outline COPY
- BlockContainer<BODY>#body/overlay/hit-test COPY
BlockContainer<BODY>#body/overlay COPY
BlockContainer<HTML>#html/outline COPY
@viewport/outline COPY
diff --git a/Tests/LibWeb/Text/input/hit_testing/empty-editable-caret-after-abspos-child-change.html b/Tests/LibWeb/Text/input/hit_testing/empty-editable-caret-after-abspos-child-change.html
index 1b28ec4cac6..85e35303e87 100644
--- a/Tests/LibWeb/Text/input/hit_testing/empty-editable-caret-after-abspos-child-change.html
+++ b/Tests/LibWeb/Text/input/hit_testing/empty-editable-caret-after-abspos-child-change.html
@@ -17,12 +17,8 @@ promiseTest(async () => {
const position = document.caretPositionFromPoint(125, 15);
return position ? `${position.offsetNode.id} @${position.offset}` : "null";
};
- const check = (name, expectedHitTestWork) => {
- internals.beginDisplayListTrace();
+ const check = name => {
internals.recordDisplayListForTesting();
- const trace = internals.takeDisplayListTrace();
- if (expectedHitTestWork)
- output.push(`${name}, editor hit test updated: ${trace.includes(`#editor/foreground/hit-test ${expectedHitTestWork}\n`)}`);
output.push(`${name}, cached: ${caret()}`);
// Repeat without a mutation so a whole capture can be replayed as well.
internals.recordDisplayListForTesting();
@@ -39,10 +35,10 @@ promiseTest(async () => {
child.contentEditable = "false";
editor.appendChild(child);
output.push(`child is non-editable: ${!child.isContentEditable}`);
- check("after insertion", "RECORD (empty)");
+ check("after insertion");
child.remove();
- check("after removal", "RECORD");
+ check("after removal");
__outputElement.style.display = "";
for (const line of output) println(line);
diff --git a/Tests/LibWeb/Text/input/inspector-overlay-visual-context-tree-growth.html b/Tests/LibWeb/Text/input/inspector-overlay-visual-context-tree-growth.html
index 8575fea59d2..17b0c672b6a 100644
--- a/Tests/LibWeb/Text/input/inspector-overlay-visual-context-tree-growth.html
+++ b/Tests/LibWeb/Text/input/inspector-overlay-visual-context-tree-growth.html
@@ -28,51 +28,39 @@
@canvas RECORD (empty)
@viewport RECORD
@viewport/preamble RECORD (empty)
- @viewport/background/hit-test RECORD
@viewport/scroll-metadata RECORD (empty)
@viewport/background SKIP
@viewport/border SKIP
BlockContainer<HTML>/descendants(background-and-borders) RECORD
- @viewport/foreground/hit-test RECORD (empty)
@viewport/foreground RECORD (empty)
BlockContainer<HTML>/descendants(foreground) RECORD
BlockContainer<HTML> RECORD
BlockContainer<HTML>/preamble RECORD (empty)
- BlockContainer<HTML>/background/hit-test RECORD
BlockContainer<HTML>/scroll-metadata RECORD (empty)
BlockContainer<HTML>/background RECORD (empty)
BlockContainer<HTML>/border SKIP
BlockContainer<BODY>/descendants(background-and-borders) RECORD
- BlockContainer<BODY>/background/hit-test RECORD
BlockContainer<BODY>/scroll-metadata RECORD (empty)
BlockContainer<BODY>/background SKIP
BlockContainer<BODY>/border SKIP
BlockContainer<DIV>#box/descendants(background-and-borders) RECORD
- BlockContainer<HTML>/foreground/hit-test RECORD (empty)
BlockContainer<HTML>/foreground RECORD (empty)
BlockContainer<BODY>/descendants(foreground) RECORD
- BlockContainer<BODY>/foreground/hit-test RECORD (empty)
BlockContainer<BODY>/foreground RECORD (empty)
BlockContainer<DIV>#box/descendants(foreground) RECORD
BlockContainer<BODY>/outline SKIP
- BlockContainer<BODY>/overlay/hit-test RECORD (empty)
BlockContainer<BODY>/overlay SKIP
BlockContainer<DIV>#box RECORD
BlockContainer<DIV>#box/preamble RECORD (empty)
- BlockContainer<DIV>#box/background/hit-test RECORD
BlockContainer<DIV>#box/scroll-metadata RECORD (empty)
BlockContainer<DIV>#box/background RECORD
BlockContainer<DIV>#box/border SKIP
- BlockContainer<DIV>#box/foreground/hit-test RECORD (empty)
BlockContainer<DIV>#box/foreground RECORD (empty)
BlockContainer<DIV>#box/outline SKIP
- BlockContainer<DIV>#box/overlay/hit-test RECORD (empty)
BlockContainer<DIV>#box/overlay SKIP
BlockContainer<HTML>/outline SKIP
- BlockContainer<HTML>/overlay/hit-test RECORD (empty)
BlockContainer<HTML>/overlay SKIP
@viewport/outline SKIP
- @viewport/overlay/hit-test RECORD (empty)
@viewport/overlay RECORD (empty)
@inspector-overlays RECORD
`,
@@ -88,17 +76,14 @@
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>/descendants(background-and-borders) COPY
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>/descendants(foreground) COPY
BlockContainer<HTML> COPY
@viewport/outline COPY
- @viewport/overlay/hit-test COPY
@viewport/overlay COPY
@inspector-overlays RECORD
`,
@@ -115,51 +100,39 @@
@canvas RECORD (empty)
@viewport ASSEMBLE
@viewport/preamble COPY
- @viewport/background/hit-test COPY
@viewport/scroll-metadata COPY
@viewport/background COPY
@viewport/border COPY
BlockContainer<HTML>/descendants(background-and-borders) ASSEMBLE
- @viewport/foreground/hit-test COPY
@viewport/foreground COPY
BlockContainer<HTML>/descendants(foreground) ASSEMBLE
BlockContainer<HTML> ASSEMBLE
BlockContainer<HTML>/preamble COPY
- BlockContainer<HTML>/background/hit-test COPY
BlockContainer<HTML>/scroll-metadata COPY
BlockContainer<HTML>/background COPY
BlockContainer<HTML>/border COPY
BlockContainer<BODY>/descendants(background-and-borders) ASSEMBLE
- BlockContainer<BODY>/background/hit-test COPY
BlockContainer<BODY>/scroll-metadata COPY
BlockContainer<BODY>/background COPY
BlockContainer<BODY>/border COPY
BlockContainer<DIV>#box/descendants(background-and-borders) ASSEMBLE
- BlockContainer<HTML>/foreground/hit-test COPY
BlockContainer<HTML>/foreground COPY
BlockContainer<BODY>/descendants(foreground) ASSEMBLE
- BlockContainer<BODY>/foreground/hit-test COPY
BlockContainer<BODY>/foreground COPY
BlockContainer<DIV>#box/descendants(foreground) ASSEMBLE
BlockContainer<BODY>/outline COPY
- BlockContainer<BODY>/overlay/hit-test COPY
BlockContainer<BODY>/overlay COPY
BlockContainer<DIV>#box ASSEMBLE
BlockContainer<DIV>#box/preamble RECORD (empty)
- BlockContainer<DIV>#box/background/hit-test COPY
BlockContainer<DIV>#box/scroll-metadata COPY
BlockContainer<DIV>#box/background RECORD
BlockContainer<DIV>#box/border SKIP
- BlockContainer<DIV>#box/foreground/hit-test COPY
BlockContainer<DIV>#box/foreground RECORD (empty)
BlockContainer<DIV>#box/outline SKIP
- BlockContainer<DIV>#box/overlay/hit-test COPY
BlockContainer<DIV>#box/overlay SKIP
BlockContainer<HTML>/outline COPY
- BlockContainer<HTML>/overlay/hit-test COPY
BlockContainer<HTML>/overlay COPY
@viewport/outline COPY
- @viewport/overlay/hit-test COPY
@viewport/overlay COPY
`,
},