Truly independent web browser
LibWeb: Print the text a glyph run draws in the display list dump
Aliaksandr Kalenik60195f16d8d8
diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cppindex 652cf25df9d..5b873c256e0 100644--- a/Libraries/LibWeb/DOM/Document.cpp+++ b/Libraries/LibWeb/DOM/Document.cpp@@ -11761,7 +11761,7 @@ Utf16String Document::dump_display_list(Painting::DisplayListDumpOptions const&if (paint_state().has_visual_context_tree(read))schedule_full_accumulated_visual_context_rebuild(Layout::RustFFI::VisualContextUpdateScope::FreshTree);- HTML::PaintConfig config { .records_whole_document = true, .notes_record_origins = options.owners };+ HTML::PaintConfig config { .records_whole_document = true, .notes_record_origins = options.owners || options.text };if (!record_display_list(read, config, Painting::PaintCommandCacheMode::ReadOnly))return "No display list"_utf16;diff --git a/Libraries/LibWeb/Internals/Internals.cpp b/Libraries/LibWeb/Internals/Internals.cppindex 8d1fcfbf917..8aaddc4881b 100644--- a/Libraries/LibWeb/Internals/Internals.cpp+++ b/Libraries/LibWeb/Internals/Internals.cpp@@ -1923,6 +1923,8 @@ Utf16String Internals::dump_display_list(Bindings::DisplayListDumpOptions const&{return window().associated_document().dump_display_list({.owners = options.owners,+ .text = options.text,+ .fonts = options.fonts,.record_ids = options.record_ids,.raw_node_indices = options.raw_node_indices,});diff --git a/Libraries/LibWeb/Internals/Internals.idl b/Libraries/LibWeb/Internals/Internals.idlindex 2b75faf1c98..147aa92030a 100644--- a/Libraries/LibWeb/Internals/Internals.idl+++ b/Libraries/LibWeb/Internals/Internals.idl@@ -545,6 +545,8 @@ dictionary StyleRecordsDumpOptions {dictionary DisplayListDumpOptions {boolean owners = true;+ boolean text = true;+ boolean fonts = false;boolean recordIds = false;boolean rawNodeIndices = false;};diff --git a/Libraries/LibWeb/Painting/DisplayListDumpOptions.h b/Libraries/LibWeb/Painting/DisplayListDumpOptions.hindex 4f8615f625e..b9d116317b3 100644--- a/Libraries/LibWeb/Painting/DisplayListDumpOptions.h+++ b/Libraries/LibWeb/Painting/DisplayListDumpOptions.h@@ -10,6 +10,8 @@ namespace Web::Painting {struct DisplayListDumpOptions {bool owners { true };+ bool text { true };+ bool fonts { false };bool record_ids { false };bool raw_node_indices { false };};diff --git a/Libraries/LibWeb/Painting/PaintingRustBridge.cpp b/Libraries/LibWeb/Painting/PaintingRustBridge.cppindex a05484b0c48..3d5231a1c42 100644--- a/Libraries/LibWeb/Painting/PaintingRustBridge.cpp+++ b/Libraries/LibWeb/Painting/PaintingRustBridge.cpp@@ -255,10 +255,16 @@ Utf16String serialize_painting_dump(Layout::BegunRead const& read, DOM::Document.context = &context,.debug_description = [](void* context_pointer, Compositing::RustFFI::NodeSlotId slot, void* description_sink) { push_debug_description(*static_cast<DumpContext*>(context_pointer)->document, slot, description_sink); },.append_text = [](void* context_pointer, u8 const* bytes, size_t byte_count) { static_cast<DumpContext*>(context_pointer)->dump = Utf16String::from_utf8_without_validation(StringView { bytes, byte_count }); },+ .describe_font = [](void*, void const* font_pointer, void* description_sink) {+ auto const& font = *static_cast<Gfx::Font const*>(font_pointer);+ auto description = ByteString::formatted("{} {}px {}", font.family(), font.pixel_size(), font.weight());+ Layout::RustFFI::layout_arena_paint_push_bytes(description_sink, reinterpret_cast<u8 const*>(description.characters()), description.length()); },};Gfx::IntRect device_viewport_rect { {}, document.page().css_to_device_rect(document.viewport_rect()).size().to_type<int>() };Layout::RustFFI::FfiDisplayListDumpOptions ffi_options {.owners = options.owners,+ .text = options.text,+ .fonts = options.fonts,.record_ids = options.record_ids,.raw_node_indices = options.raw_node_indices,};diff --git a/Libraries/LibWeb/Rust/src/painting/display_list/dump.rs b/Libraries/LibWeb/Rust/src/painting/display_list/dump.rsindex b48c00fa9b6..4f485eba6ca 100644--- a/Libraries/LibWeb/Rust/src/painting/display_list/dump.rs+++ b/Libraries/LibWeb/Rust/src/painting/display_list/dump.rs@@ -43,6 +43,10 @@ crate::stage::main_thread_ffi_entries!();pub struct FfiDisplayListDumpOptions {/// Names, on each record, the box and the paint phase that recorded it.pub owners: bool,+ /// Prints, on each glyph run, the text it draws.+ pub text: bool,+ /// Prints, on each glyph run, the family, size and weight of its font.+ pub fonts: bool,/// Numbers every record, nested ones too, in tape order, and names the records of each layer by those numbers.pub record_ids: bool,/// Names visual context nodes by their indices in the tree rather than by the order the dump first prints them in.@@ -61,6 +65,8 @@ pub struct FfiPaintingDumpCallbacks {/// Describes the row in the slot, as its layout node describes itself.debug_description: extern "C" fn(context: *mut c_void, slot: NodeSlotId, description_sink: *mut c_void),append_text: extern "C" fn(context: *mut c_void, bytes: *const u8, byte_count: usize),+ /// Describes the font, a `Gfx::Font`, by its family, pixel size and weight.+ describe_font: extern "C" fn(context: *mut c_void, font: *const c_void, description_sink: *mut c_void),}impl FfiPaintingDumpCallbacks {@@ -72,6 +78,14 @@ impl FfiPaintingDumpCallbacks {String::from_utf8_lossy(&description).into_owned()}+ fn describe_font(&self, _: &MainThread, font: &libgfx_rust::font::FontHandle) -> String {+ let mut description = Vec::new();+ // The C++ host fills the description sink synchronously through the exported push function, and the handle+ // keeps the font alive for the call.+ (self.describe_font)(self.context, font.as_raw(), (&raw mut description).cast());+ String::from_utf8_lossy(&description).into_owned()+ }+fn append_text(&self, _: &MainThread, text: &str) {// The C++ sink copies the completed dump synchronously.(self.append_text)(self.context, text.as_ptr(), text.len());@@ -228,14 +242,24 @@ pub unsafe extern "C" fn painting_dump(owners})};- let record_origins = options.owners.then(|| {+ let record_notes = (options.owners || options.text).then(|| {let record_notes = recording.record_notes.clone().unwrap_or_default();- record_origins_in_tape_order(&recording.display_list, &record_notes)+ record_notes_in_tape_order(&recording.display_list, &record_notes)});- let owner_labels = record_origins+ let owner_labels = record_notes.as_ref()- .map(|origins| owner_labels(host, read, &main_thread, &callbacks, origins))+ .filter(|_| options.owners)+ .map(|notes| owner_labels(host, read, &main_thread, &callbacks, notes)).unwrap_or_default();+ let font_descriptions = options.fonts.then(|| {+ recording+ .resources+ .with_vector_image_resources()+ .fonts+ .iter()+ .map(|(id, font)| (*id, callbacks.describe_font(&main_thread, font)))+ .collect::<HashMap<_, _>>()+ });let mut names = if options.raw_node_indices {DumpNames::default()} else {@@ -263,11 +287,14 @@ pub unsafe extern "C" fn painting_dump(output: &mut output,names: &mut names,next_record_id: options.record_ids.then_some(1),- record_origins: record_origins.map(|origins| RecordOriginsInDumpOrder {- origins,+ record_notes: record_notes.map(|notes| RecordNotesInDumpOrder {+ notes,next_index: 0,owner_labels,+ prints_owners: options.owners,+ prints_glyph_run_texts: options.text,}),+ font_descriptions,};match layer_plan {Some(layer_plan) => records.dump_top_level_commands_with_their_layers(&display_list, &layer_plan),@@ -490,21 +517,31 @@ impl RecordIdsOfTopLevelRecords {}}-/// The origin of each record of a tape in tape order, nested records after the one they are nested in. A nested record+/// What the recording noted of a record, as the dump prints it.+#[derive(Default)]+struct RecordNote {+ origin: Option<RecordOrigin>,+ glyph_run_text: Option<String>,+}++/// The notes of each record of a tape in tape order, nested records after the one they are nested in. A nested record/// whose recording noted no origin, such as a record of a pattern tile, which is recorded once and copied wherever it/// is drawn, has the origin of the record it is nested in.-fn record_origins_in_tape_order(display_list: &RecordedDisplayList, notes: &RecordNotes) -> Vec<Option<RecordOrigin>> {+fn record_notes_in_tape_order(display_list: &RecordedDisplayList, notes: &RecordNotes) -> Vec<RecordNote> {fn collect(bytes: &[u8],base_offset: u32,enclosing_origin: Option<RecordOrigin>,notes: &RecordNotes,- origins: &mut Vec<Option<RecordOrigin>>,+ record_notes: &mut Vec<RecordNote>,) {for_each_command(bytes, |header, record_offset, payload| {let record_offset = base_offset + record_offset as u32;let origin = notes.origin_at(record_offset).or(enclosing_origin);- origins.push(origin);+ record_notes.push(RecordNote {+ origin,+ glyph_run_text: notes.glyph_run_text_at(record_offset).map(str::to_owned),+ });let payload_offset = record_offset + HEADER_SIZE as u32;for_each_nested_record_span(header.command_type, payload, |_, span| {collect(@@ -512,17 +549,17 @@ fn record_origins_in_tape_order(display_list: &RecordedDisplayList, notes: &Recopayload_offset + span.offset,origin,notes,- origins,+ record_notes,);});});}- let mut origins = Vec::new();+ let mut record_notes = Vec::new();for run in &display_list.command_runs {let run_bytes = &display_list.bytes[run.offset as usize..(run.offset + run.size) as usize];- collect(run_bytes, run.offset, None, notes, &mut origins);+ collect(run_bytes, run.offset, None, notes, &mut record_notes);}- origins+ record_notes}/// The labels of the live boxes that recorded the records.@@ -531,11 +568,11 @@ fn owner_labels(read: &crate::render_state::BegunRead,main_thread: &MainThread,callbacks: &FfiPaintingDumpCallbacks,- origins: &[Option<RecordOrigin>],+ notes: &[RecordNote],) -> HashMap<NodeSlotId, String> {- let owners: Vec<NodeSlotId> = origins+ let owners: Vec<NodeSlotId> = notes.iter()- .flatten()+ .filter_map(|note| note.origin).map(|origin| origin.owner).collect::<std::collections::HashSet<_>>().into_iter()@@ -552,12 +589,14 @@ fn owner_labels(.collect()}-/// The origins of the records the DisplayList section prints, which it takes in turn. The records of an SVG image,-/// which the recording names by the image's id only, are not among them.-struct RecordOriginsInDumpOrder {- origins: Vec<Option<RecordOrigin>>,+/// The notes of the records the DisplayList section prints, which it takes in turn. The records of an SVG image, which+/// the recording names by the image's id only, are not among them.+struct RecordNotesInDumpOrder {+ notes: Vec<RecordNote>,next_index: usize,owner_labels: HashMap<NodeSlotId, String>,+ prints_owners: bool,+ prints_glyph_run_texts: bool,}/// Where the DisplayList section is written, with the names it gives what the records name.@@ -566,7 +605,9 @@ struct RecordDump<'a> {names: &'a mut DumpNames,// The number the next record is printed with, while records are numbered.next_record_id: Option<u32>,- record_origins: Option<RecordOriginsInDumpOrder>,+ record_notes: Option<RecordNotesInDumpOrder>,+ // The descriptions of the fonts the glyph runs draw with, by their ids, where the dump prints them.+ font_descriptions: Option<HashMap<u64, String>>,}impl RecordDump<'_> {@@ -610,12 +651,16 @@ impl RecordDump<'_> {origin_of_enclosing_vector_image: Option<Option<RecordOrigin>>,) {for_each_command(command_bytes, |header, _, payload| {- let origin = match origin_of_enclosing_vector_image {- Some(origin) => origin,+ let note = match origin_of_enclosing_vector_image {+ Some(origin) => RecordNote {+ origin,+ glyph_run_text: None,+ },None => self- .record_origins+ .record_notes.as_mut()- .and_then(RecordOriginsInDumpOrder::take_next),+ .map(RecordNotesInDumpOrder::take_next)+ .unwrap_or_default(),};push_indent(self.output, base_indent);if let Some(record_id) = &mut self.next_record_id {@@ -633,9 +678,7 @@ impl RecordDump<'_> {self.output.push_str(" inline_transform=");push_affine_transform(self.output, transform);}- if let Some(origin) = origin {- self.push_origin(origin);- }+ self.push_note(header.command_type, payload, ¬e);self.output.push('\n');self.dump_records_inside(@@ -644,7 +687,7 @@ impl RecordDump<'_> {context,base_indent + 1,origin_of_enclosing_vector_image,- origin,+ note.origin,);});}@@ -686,11 +729,32 @@ impl RecordDump<'_> {});}- fn push_origin(&mut self, origin: RecordOrigin) {+ // What the recording noted of the record, and the font a glyph run draws with: the text, the font and then the+ // origin.+ fn push_note(&mut self, command_type: DisplayListCommandType, payload: &[u8], note: &RecordNote) {+ let (prints_owners, prints_glyph_run_texts) = self.record_notes.as_ref().map_or((false, false), |notes| {+ (notes.prints_owners, notes.prints_glyph_run_texts)+ });+ if prints_glyph_run_texts && let Some(text) = ¬e.glyph_run_text {+ push_glyph_run_text(self.output, text);+ }+ if let Some(font_descriptions) = &self.font_descriptions {+ let font_id = match command_type {+ DisplayListCommandType::DrawGlyphRun => Some(read_command::<DrawGlyphRun>(payload).font_id),+ DisplayListCommandType::PaintTextShadow => Some(read_command::<PaintTextShadow>(payload).font_id),+ _ => None,+ };+ if let Some(description) = font_id.and_then(|font_id| font_descriptions.get(&font_id.0)) {+ write!(self.output, " font=\"{description}\"").unwrap();+ }+ }+ let Some(origin) = note.origin.filter(|_| prints_owners) else {+ return;+ };let owner_label = self- .record_origins+ .record_notes.as_ref()- .and_then(|origins| origins.owner_labels.get(&origin.owner));+ .and_then(|notes| notes.owner_labels.get(&origin.owner));if let Some(owner_label) = owner_label {write!(self.output, " owner={owner_label}").unwrap();}@@ -698,11 +762,39 @@ impl RecordDump<'_> {}}-impl RecordOriginsInDumpOrder {- fn take_next(&mut self) -> Option<RecordOrigin> {- let origin = self.origins.get(self.next_index).copied().flatten();+impl RecordNotesInDumpOrder {+ fn take_next(&mut self) -> RecordNote {+ let note = self+ .notes+ .get_mut(self.next_index)+ .map(std::mem::take)+ .unwrap_or_default();self.next_index += 1;- origin+ note+ }+}++const GLYPH_RUN_TEXT_PRINTED_LENGTH: usize = 40;++/// The text a glyph run draws, quoted and escaped, cut to its first characters with its full length after it where it+/// is longer.+fn push_glyph_run_text(output: &mut String, text: &str) {+ output.push_str(" text=\"");+ let length = text.chars().count();+ for character in text.chars().take(GLYPH_RUN_TEXT_PRINTED_LENGTH) {+ match character {+ '"' => output.push_str("\\\""),+ '\\' => output.push_str("\\\\"),+ '\n' => output.push_str("\\n"),+ '\t' => output.push_str("\\t"),+ character if character.is_control() => write!(output, "\\u{{{:x}}}", character as u32).unwrap(),+ character => output.push(character),+ }+ }+ if length > GLYPH_RUN_TEXT_PRINTED_LENGTH {+ write!(output, "…\" text_length={length}").unwrap();+ } else {+ output.push('"');}}@@ -888,4 +980,18 @@ mod tests {assert_eq!(record_ids.describe_spans(&[span(1, Some(2))]), "#2-#4");assert_eq!(record_ids.describe_spans(&[span(0, Some(1)), span(2, None)]), "#1,#5");}++ #[test]+ fn glyph_run_text_is_escaped_and_cut_with_its_full_length_after_it() {+ let text = |text: &str| {+ let mut output = String::new();+ push_glyph_run_text(&mut output, text);+ output+ };+ assert_eq!(text("say \"hi\"\\\n\t\u{7}"), r#" text="say \"hi\"\\\n\t\u{7}""#);+ assert_eq!(+ text(&"é".repeat(41)),+ format!(" text=\"{}…\" text_length=41", "é".repeat(40))+ );+ }}diff --git a/Libraries/LibWeb/Rust/src/painting/display_list/recorder.rs b/Libraries/LibWeb/Rust/src/painting/display_list/recorder.rsindex 04b85f4f4ce..266c95003b2 100644--- a/Libraries/LibWeb/Rust/src/painting/display_list/recorder.rs+++ b/Libraries/LibWeb/Rust/src/painting/display_list/recorder.rs@@ -273,6 +273,7 @@ pub(crate) struct RecordOrigin {#[derive(Default)]pub(crate) struct RecordNotes {pub(crate) origins: Vec<(u32, RecordOrigin)>,+ pub(crate) glyph_run_texts: Vec<(u32, String)>,}impl RecordNotes {@@ -283,6 +284,20 @@ impl RecordNotes {.into_iter().map(|(offset, origin)| (offset + shift, origin)),);+ self.glyph_run_texts.extend(+ other+ .glyph_run_texts+ .into_iter()+ .map(|(offset, text)| (offset + shift, text)),+ );+ }++ pub(crate) fn glyph_run_text_at(&self, record_offset: u32) -> Option<&str> {+ let index = self+ .glyph_run_texts+ .binary_search_by_key(&record_offset, |(offset, _)| *offset)+ .ok()?;+ Some(&self.glyph_run_texts[index].1)}pub(crate) fn origin_at(&self, record_offset: u32) -> Option<RecordOrigin> {@@ -297,6 +312,7 @@ impl RecordNotes {#[derive(Default)]struct RecordNoting {open_origins: Vec<RecordOrigin>,+ glyph_run_text: Option<String>,notes: RecordNotes,}@@ -330,7 +346,7 @@ pub struct DisplayListRecorder {}impl DisplayListRecorder {- /// Notes, for each record from now on, the box and phase that recorded it.+ /// Notes, for each record from now on, the box and phase that recorded it, and the text a glyph run draws.pub(crate) fn note_record_origins(&mut self) {self.record_noting = Some(Box::default());}@@ -351,6 +367,13 @@ impl DisplayListRecorder {}}+ /// The text the glyph runs recorded from now on draw, until another is set.+ pub(crate) fn set_glyph_run_text(&mut self, text: Option<String>) {+ if let Some(noting) = &mut self.record_noting {+ noting.glyph_run_text = text;+ }+ }+/// The notes of the records recorded since the last chunk was taken, with offsets from where that chunk ended.pub(crate) fn take_record_notes(&mut self) -> Option<RecordNotes> {self.record_noting@@ -358,7 +381,7 @@ impl DisplayListRecorder {.map(|noting| std::mem::take(&mut noting.notes))}- fn note_record_start(&mut self) {+ fn note_record_start(&mut self, draws_glyph_run: bool) {let Some(noting) = &mut self.record_noting else {return;};@@ -366,6 +389,9 @@ impl DisplayListRecorder {if let Some(origin) = noting.open_origins.last() {noting.notes.origins.push((offset, *origin));}+ if draws_glyph_run && let Some(text) = ¬ing.glyph_run_text {+ noting.notes.glyph_run_texts.push((offset, text.clone()));+ }}pub fn new(force_dark_settings: Option<ForceDarkSettings>) -> Self {@@ -549,7 +575,10 @@ impl DisplayListRecorder {}fn append_command<C: DisplayListCommand>(&mut self, command: &C, inline_data: &[u8]) {- self.note_record_start();+ self.note_record_start(matches!(+ C::COMMAND_TYPE,+ DisplayListCommandType::DrawGlyphRun | DisplayListCommandType::PaintTextShadow+ ));self.builder.append_with_inline_state(command,inline_data,@@ -1007,7 +1036,7 @@ impl DisplayListRecorder {}fn begin_group<C: DisplayListCommand>(&mut self) -> OpenRecorderGroup {- self.note_record_start();+ self.note_record_start(false);let suspended_ambient_inline_clips = std::mem::take(&mut self.ambient_inline_clips);OpenRecorderGroup {group: self.builder.begin_group::<C>(suspended_ambient_inline_clips.clone()),diff --git a/Libraries/LibWeb/Rust/src/painting/record/paint/text.rs b/Libraries/LibWeb/Rust/src/painting/record/paint/text.rsindex 01f66060561..20ca4586a25 100644--- a/Libraries/LibWeb/Rust/src/painting/record/paint/text.rs+++ b/Libraries/LibWeb/Rust/src/painting/record/paint/text.rs@@ -752,6 +752,12 @@ fn paint_text_shadow<O: Observer>(}}+ let text = recorder+ .recorder+ .notes_record_origins()+ .then(|| fragment_text(recorder.source, fragment, span.start_code_unit..span.end_code_unit));+ recorder.recorder.set_glyph_run_text(text);+// NB: Force-dark leaves text shadows alone. Light text keeps its color under force-dark, so inverting the dark// outline set behind it would put a light halo around light glyphs — which reads as blurred text. Blink doesn't// filter text shadows either: DarkModeFilter::ApplyToFlagsIfNeeded recolors only the paint flags, never the@@ -783,6 +789,21 @@ fn paint_text_shadow<O: Observer>(orientation,ForceDarkRole::None,);+ recorder.recorder.set_glyph_run_text(None);+}++/// The text a fragment holds between code unit offsets into it.+fn fragment_text(+ source: &crate::painting::paint_read::PaintSource<'_>,+ fragment: &FragmentRecord,+ offsets: std::ops::Range<usize>,+) -> String {+ let Some(rendered_text) = source.rendered_text(fragment.layout_node) else {+ return String::new();+ };+ let end = (fragment.start + offsets.end.min(fragment.length_in_code_units)).min(rendered_text.text.len());+ let start = (fragment.start + offsets.start).min(end);+ String::from_utf16_lossy(&rendered_text.text[start..end])}fn paint_text_fragment<O: Observer>(@@ -880,6 +901,11 @@ fn paint_text_fragment<O: Observer>();}};+ let text = recorder+ .recorder+ .notes_record_origins()+ .then(|| fragment_text(recorder.source, fragment, span.start_code_unit..span.end_code_unit));+ recorder.recorder.set_glyph_run_text(text);// Paint text, clipped to span range if not full fragment.let is_full_fragment = span.start_code_unit == 0 && span.end_code_unit == fragment.length_in_code_units;let mut decoration_box = fragment_absolute_rect;@@ -904,6 +930,8 @@ fn paint_text_fragment<O: Observer>(decoration_box.width = range_rect.width;}+ recorder.recorder.set_glyph_run_text(None);+for set in decoration_sets {crate::painting::record::paint::text_decoration::paint_decoration_lines(recorder,diff --git a/Services/WebContent/ConnectionFromClient.cpp b/Services/WebContent/ConnectionFromClient.cppindex 650ceb8a35a..23dad85f14c 100644--- a/Services/WebContent/ConnectionFromClient.cpp+++ b/Services/WebContent/ConnectionFromClient.cpp@@ -1250,7 +1250,7 @@ void ConnectionFromClient::debug_request(Web::PageId page_id, ByteString requestif (request == "dump-display-list") {if (auto doc = page->page().local_traversable()->active_document()) {- auto display_list_dump = doc->dump_display_list({ .record_ids = true });+ auto display_list_dump = doc->dump_display_list({ .owners = true, .text = true, .fonts = true, .record_ids = true });dbgln("{}", display_list_dump.to_utf8());}return;diff --git a/Tests/LibWeb/Text/expected/async-scrolling/sticky-areas.txt b/Tests/LibWeb/Text/expected/async-scrolling/sticky-areas.txtindex 6180ef742b8..5e21c116f15 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/sticky-areas.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/sticky-areas.txt@@ -19,5 +19,5 @@ ScrollNodes:ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[0,1429] is_viewport=trueDisplayList:-DrawGlyphRun@s3/e0 font_id=font1 glyphs=6 rect=[0,0 45x16] glyph_bounding_rect=[0,0 51x15] translation=[0,13] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#inner phase=foreground+DrawGlyphRun@s3/e0 font_id=font1 glyphs=6 rect=[0,0 45x16] glyph_bounding_rect=[0,0 51x15] translation=[0,13] color=rgb(0, 0, 0) text="sticky" owner=BlockContainer<DIV>#inner phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/css/text-underline-position.txt b/Tests/LibWeb/Text/expected/css/text-underline-position.txtindex 5e2735eac1d..6b1aeb31245 100644--- a/Tests/LibWeb/Text/expected/css/text-underline-position.txt+++ b/Tests/LibWeb/Text/expected/css/text-underline-position.txt@@ -6,9 +6,9 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,8 28x16] glyph_bounding_rect=[8,8 30x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,8 28x16] glyph_bounding_rect=[8,8 30x15] translation=[8,21] color=rgb(0, 0, 0) text="foo" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,23 27x2] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[35,8 9x16] glyph_bounding_rect=[35,8 13x15] translation=[35.15625,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[43,8 28x16] glyph_bounding_rect=[43,8 32x15] translation=[43.15625,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[35,8 9x16] glyph_bounding_rect=[35,8 13x15] translation=[35.15625,21] color=rgb(0, 0, 0) text=" " owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[43,8 28x16] glyph_bounding_rect=[43,8 32x15] translation=[43.15625,21] color=rgb(0, 0, 0) text="bar" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[43,26 28x2] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragmentdiff --git a/Tests/LibWeb/Text/expected/display_list/background-blend-mode-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/background-blend-mode-invalidation.txtindex 4436e292d3d..d89c3286e8d 100644--- a/Tests/LibWeb/Text/expected/display_list/background-blend-mode-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/background-blend-mode-invalidation.txt@@ -9,7 +9,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,13 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=backgroundPaintLinearGradient@s1/e0 gradient_rect=[8,13 100x100] gradient_angle=180 color_stops=[rgb(255, 0, 0) 0, rgb(0, 0, 255) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[8,13 100x100]] owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregroundAfter background-blend-mode change:AccumulatedVisualContext Tree:@@ -22,5 +22,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,13 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=backgroundPaintLinearGradient@s1/e0 gradient_rect=[8,13 100x100] gradient_angle=180 color_stops=[rgb(255, 0, 0) 0, rgb(0, 0, 255) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} compositing_and_blending_operator=Multiply inline_clips=[clip=[8,13 100x100]] owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/background-clip-text-color-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/background-clip-text-color-invalidation.txtindex ca110b7c00c..f19532866ce 100644--- a/Tests/LibWeb/Text/expected/display_list/background-clip-text-color-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/background-clip-text-color-invalidation.txt@@ -7,7 +7,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,13 71x30] glyph_bounding_rect=[8,14 83x27] translation=[8,37] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,13 71x30] glyph_bounding_rect=[8,14 83x27] translation=[8,37] color=rgb(0, 0, 0) text="Text" owner=BlockContainer<DIV>#box.box phase=foregroundAfter background-color change:AccumulatedVisualContext Tree:@@ -22,5 +22,5 @@ DrawIsolatedGroup@s1/e0 clip_rect=[8,13 100x50] owner=BlockContainer<DIV>#box.boFillRect@s1/e0 rect=[8,13 100x50] color=rgb(0, 0, 255) owner=BlockContainer<DIV>#box.box phase=backgroundMask:DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,13 71x30] glyph_bounding_rect=[8,14 83x27] translation=[8,37] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,13 71x30] glyph_bounding_rect=[8,14 83x27] translation=[8,37] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,13 71x30] glyph_bounding_rect=[8,14 83x27] translation=[8,37] color=rgb(0, 0, 0) text="Text" owner=BlockContainer<DIV>#box.box phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/block-in-inline-no-border-for-phantom-inline-box.txt b/Tests/LibWeb/Text/expected/display_list/block-in-inline-no-border-for-phantom-inline-box.txtindex aeb84b3786a..3759ff50548 100644--- a/Tests/LibWeb/Text/expected/display_list/block-in-inline-no-border-for-phantom-inline-box.txt+++ b/Tests/LibWeb/Text/expected/display_list/block-in-inline-no-border-for-phantom-inline-box.txt@@ -7,8 +7,8 @@ AccumulatedVisualContext Tree:DisplayList:FillRoundedRectRing@s1/e0 rect=[0,3 8x14] top_width=2 bottom_width=2 left_width=2 color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=inline-piece-DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[2,5 6x10] glyph_bounding_rect=[2,5 8x9] translation=[2,13] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[2,5 6x10] glyph_bounding_rect=[2,5 8x9] translation=[2,13] color=rgb(0, 0, 0) text="a" owner=BlockContainer<DIV> phase=text-fragmentFillRoundedRectRing@s1/e0 rect=[0,63 8x14] top_width=2 right_width=2 bottom_width=2 color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=inline-piece-DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[0,65 6x10] glyph_bounding_rect=[0,65 8x9] translation=[0,73] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[100,55 7x10] glyph_bounding_rect=[100,55 8x9] translation=[100,63] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[0,65 6x10] glyph_bounding_rect=[0,65 8x9] translation=[0,73] color=rgb(0, 0, 0) text="b" owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[100,55 7x10] glyph_bounding_rect=[100,55 8x9] translation=[100,63] color=rgb(0, 0, 0) text="x" owner=BlockContainer<DIV> phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/border-radius-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/border-radius-invalidation.txtindex 1759f455c34..2da79c9e286 100644--- a/Tests/LibWeb/Text/expected/display_list/border-radius-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/border-radius-invalidation.txt@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,13 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregroundAfter border-radius change:AccumulatedVisualContext Tree:@@ -24,5 +24,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[8,13 100x100] color=rgb(173, 216, 230) corner_radii=[20x20,20x20,20x20,20x20] owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt b/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txtindex 12227668877..61e9d1aa208 100644--- a/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt+++ b/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt@@ -8,6 +8,6 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[8,8 98x20] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4] owner=BlockContainer<BUTTON> phase=backgroundFillRoundedRectRing@s1/e0 rect=[8,8 98x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=BlockContainer<BUTTON> phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=11 rect=[17,11 80x14] glyph_bounding_rect=[17,12 83x12] translation=[17,22] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=11 rect=[17,11 80x14] glyph_bounding_rect=[17,12 83x12] translation=[17,22] color=rgb(0, 0, 0) text="foo the bar" owner=BlockContainer(anonymous) phase=foregroundFillRect@s1/e0 rect=[17,24 80x1] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/clip-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/clip-invalidation.txtindex a1e59b1241a..7a7201f80ea 100644--- a/Tests/LibWeb/Text/expected/display_list/clip-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/clip-invalidation.txt@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,13 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregroundAfter clip change:AccumulatedVisualContext Tree:@@ -24,5 +24,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,13 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/clip-path-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/clip-path-invalidation.txtindex a94e5b98543..e7456aa5b43 100644--- a/Tests/LibWeb/Text/expected/display_list/clip-path-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/clip-path-invalidation.txt@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,8 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregroundAfter clip-path change:AccumulatedVisualContext Tree:@@ -24,5 +24,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,8 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/color-and-file-input-appearance.txt b/Tests/LibWeb/Text/expected/display_list/color-and-file-input-appearance.txtindex ba803d9b9f5..fc1fd52297c 100644--- a/Tests/LibWeb/Text/expected/display_list/color-and-file-input-appearance.txt+++ b/Tests/LibWeb/Text/expected/display_list/color-and-file-input-appearance.txt@@ -13,9 +13,9 @@ FillRectWithRoundedCorners@s1/e0 rect=[8,8 50x27] color=rgb(239, 239, 239) corneFillRoundedRectRing@s1/e0 rect=[8,8 50x27] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=BlockContainer<INPUT> phase=borderFillRect@s1/c0/e0 rect=[13,14 40x15] color=rgb(68, 136, 255) owner=BlockContainer<DIV> phase=backgroundFillRoundedRectRing@s1/c0/e0 rect=[13,14 40x15] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(119, 119, 119) owner=BlockContainer<DIV> phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[58,16 8x16] glyph_bounding_rect=[58,16 13x15] translation=[58,29] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[58,16 8x16] glyph_bounding_rect=[58,16 13x15] translation=[58,29] color=rgb(0, 0, 0) text=" " owner=BlockContainer(anonymous) phase=text-fragmentFillRectWithRoundedCorners@s1/c1/e0 rect=[66,15 97x20] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4] owner=BlockContainer<BUTTON> phase=backgroundFillRoundedRectRing@s1/c1/e0 rect=[66,15 97x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=BlockContainer<BUTTON> phase=border-DrawGlyphRun@s1/c1/e0 font_id=font2 glyphs=14 rect=[75,18 79x14] glyph_bounding_rect=[75,19 86x12] translation=[75,29] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foreground-DrawGlyphRun@s1/c1/e0 font_id=font2 glyphs=17 rect=[166,18 108x14] glyph_bounding_rect=[167,19 114x12] translation=[166.65625,29] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=text-fragment+DrawGlyphRun@s1/c1/e0 font_id=font2 glyphs=14 rect=[75,18 79x14] glyph_bounding_rect=[75,19 86x12] translation=[75,29] color=rgb(0, 0, 0) text="Select file..." owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/c1/e0 font_id=font2 glyphs=17 rect=[166,18 108x14] glyph_bounding_rect=[167,19 114x12] translation=[166.65625,29] color=rgb(0, 0, 0) text="No file selected." owner=BlockContainer(anonymous) phase=text-fragmentdiff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-under-captions.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-under-captions.txtindex 533714701f1..457a3d33e10 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-under-captions.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-under-captions.txt@@ -13,5 +13,5 @@ Layers:DisplayList:L1 DrawVideoFrame@s1/e0 dst_rect=[10,40 320x180] video_sink_handle=video1 scaling_mode=BilinearMipmap inline_clips=[clip=[10,10 320x240], clip=[10,10 320x240] radii=(16,16,16,16)] owner=VideoBox<VIDEO>#video phase=foregroundL2 FillRect@s1/e0 rect=[30,200 203x24] color=rgba(0, 0, 0, 0.6) owner=BlockContainer<DIV>#captions phase=background-L2 DrawGlyphRun@s1/e0 font_id=font1 glyphs=23 rect=[34,204 195x16] glyph_bounding_rect=[34,204 197x15] translation=[34,217] color=rgb(255, 255, 255) owner=BlockContainer<DIV>#captions phase=foreground+L2 DrawGlyphRun@s1/e0 font_id=font1 glyphs=23 rect=[34,204 195x16] glyph_bounding_rect=[34,204 197x15] translation=[34,217] color=rgb(255, 255, 255) text="Captions over the video" owner=BlockContainer<DIV>#captions phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/css-clip-property.txt b/Tests/LibWeb/Text/expected/display_list/css-clip-property.txtindex 860d83c388e..0df5a1fc577 100644--- a/Tests/LibWeb/Text/expected/display_list/css-clip-property.txt+++ b/Tests/LibWeb/Text/expected/display_list/css-clip-property.txt@@ -9,6 +9,6 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,13 150x150] color=rgb(128, 0, 128) owner=BlockContainer<DIV>.clipped phase=background-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=8 rect=[8,13 71x16] glyph_bounding_rect=[8,14 75x15] translation=[8,26] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.clipped phase=foreground-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=8 rect=[8,29 72x16] glyph_bounding_rect=[8,30 78x15] translation=[8,42] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.clipped phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=8 rect=[8,13 71x16] glyph_bounding_rect=[8,14 75x15] translation=[8,26] color=rgb(0, 0, 0) text="CSS Clip" owner=BlockContainer<DIV>.clipped phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=8 rect=[8,29 72x16] glyph_bounding_rect=[8,30 78x15] translation=[8,42] color=rgb(0, 0, 0) text="Property" owner=BlockContainer<DIV>.clipped phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/deep-branching-tree.txt b/Tests/LibWeb/Text/expected/display_list/deep-branching-tree.txtindex afe1b330548..30448ae41cf 100644--- a/Tests/LibWeb/Text/expected/display_list/deep-branching-tree.txt+++ b/Tests/LibWeb/Text/expected/display_list/deep-branching-tree.txt@@ -18,11 +18,11 @@ FillRoundedRectRing@s1/e0 rect=[8,8 404x204] top_width=2 right_width=2 bottom_wiFillRoundedRectRing@s1/c0/e0 rect=[10,10 195x200] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(128, 128, 128) owner=BlockContainer<DIV>.branch phase=borderFillRoundedRectRing@s1/c0/e0 rect=[215,10 195x200] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(128, 128, 128) owner=BlockContainer<DIV>.branch phase=borderFillRect@s2/c1/e0 rect=[16,16 150x80] color=rgb(255, 0, 0) owner=BlockContainer<DIV>.leaf.leaf-a phase=background-DrawGlyphRun@s2/c1/e0 font_id=font1 glyphs=1 rect=[16,16 15x16] glyph_bounding_rect=[16,16 13x15] translation=[16,29] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.leaf.leaf-a phase=foreground+DrawGlyphRun@s2/c1/e0 font_id=font1 glyphs=1 rect=[16,16 15x16] glyph_bounding_rect=[16,16 13x15] translation=[16,29] color=rgb(0, 0, 0) text="A" owner=BlockContainer<DIV>.leaf.leaf-a phase=foregroundFillRect@s3/c1/e0 rect=[16,101 150x80] color=rgb(0, 128, 0) owner=BlockContainer<DIV>.leaf.leaf-b phase=background-DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=1 rect=[16,101 10x16] glyph_bounding_rect=[16,102 13x15] translation=[16,114] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.leaf.leaf-b phase=foreground+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=1 rect=[16,101 10x16] glyph_bounding_rect=[16,102 13x15] translation=[16,114] color=rgb(0, 0, 0) text="B" owner=BlockContainer<DIV>.leaf.leaf-b phase=foregroundFillRect@s4/c2/e0 rect=[221,16 150x80] color=rgb(0, 0, 255) owner=BlockContainer<DIV>.leaf.leaf-c phase=background-DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=1 rect=[221,16 11x16] glyph_bounding_rect=[221,16 13x15] translation=[221,29] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.leaf.leaf-c phase=foreground+DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=1 rect=[221,16 11x16] glyph_bounding_rect=[221,16 13x15] translation=[221,29] color=rgb(0, 0, 0) text="C" owner=BlockContainer<DIV>.leaf.leaf-c phase=foregroundFillRect@s5/c2/e0 rect=[221,101 150x80] color=rgb(255, 165, 0) owner=BlockContainer<DIV>.leaf.leaf-d phase=background-DrawGlyphRun@s5/c2/e0 font_id=font1 glyphs=1 rect=[221,101 12x16] glyph_bounding_rect=[221,102 13x15] translation=[221,114] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.leaf.leaf-d phase=foreground+DrawGlyphRun@s5/c2/e0 font_id=font1 glyphs=1 rect=[221,101 12x16] glyph_bounding_rect=[221,102 13x15] translation=[221,114] color=rgb(0, 0, 0) text="D" owner=BlockContainer<DIV>.leaf.leaf-d phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/fieldset-background-with-legend.txt b/Tests/LibWeb/Text/expected/display_list/fieldset-background-with-legend.txtindex 8932da3a99c..1801888d313 100644--- a/Tests/LibWeb/Text/expected/display_list/fieldset-background-with-legend.txt+++ b/Tests/LibWeb/Text/expected/display_list/fieldset-background-with-legend.txt@@ -15,6 +15,6 @@ FillPath@s1/e0 path_bounding_rect=[10,57 780x1] path_data=[path: M790 58L790 58LFillPath@s1/e0 path_bounding_rect=[11,56 778x1] path_data=[path: M789 57L789 57L788 56L12 56L11 57L11 57] color=rgb(154, 154, 154) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference] owner=FieldSetBox<FIELDSET> phase=borderFillPath@s1/e0 path_bounding_rect=[10,15 1x43] path_data=[path: M10 58L10 58L11 57L11 16L10 15L10 15] color=rgb(154, 154, 154) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference] owner=FieldSetBox<FIELDSET> phase=borderFillPath@s1/e0 path_bounding_rect=[11,16 1x41] path_data=[path: M11 57L11 57L12 56L12 17L11 16L11 16] color=rgb(239, 239, 239) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference] owner=FieldSetBox<FIELDSET> phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[26,8 54x16] glyph_bounding_rect=[26,8 59x15] translation=[26,21] color=rgb(0, 0, 0) owner=LegendBox<LEGEND> phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[24,29 63x17] glyph_bounding_rect=[24,30 69x15] translation=[24,42.59375] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[26,8 54x16] glyph_bounding_rect=[26,8 59x15] translation=[26,21] color=rgb(0, 0, 0) text="Legend" owner=LegendBox<LEGEND> phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[24,29 63x17] glyph_bounding_rect=[24,30 69x15] translation=[24,42.59375] color=rgb(0, 0, 0) text="Content" owner=BlockContainer(anonymous) phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/fieldset-legend-rounded-dashed-border.txt b/Tests/LibWeb/Text/expected/display_list/fieldset-legend-rounded-dashed-border.txtindex f8753aa6027..4228d9ac980 100644--- a/Tests/LibWeb/Text/expected/display_list/fieldset-legend-rounded-dashed-border.txt+++ b/Tests/LibWeb/Text/expected/display_list/fieldset-legend-rounded-dashed-border.txt@@ -7,6 +7,6 @@ AccumulatedVisualContext Tree:DisplayList:StrokePath@s1/e0 dash_array=[6.0229473, 6.0229473] dash_offset=9.034421 path_bounding_rect=[10,15 230x44] path_data=[curved path: 135 commands] color=rgb(0, 0, 255) thickness=3 inline_clips=[clip=[25,15 57x3] mode=difference] owner=FieldSetBox<FIELDSET> phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[27,8 54x16] glyph_bounding_rect=[27,8 59x15] translation=[27,21] color=rgb(0, 0, 0) owner=LegendBox<LEGEND> phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[25,29 63x17] glyph_bounding_rect=[25,30 69x15] translation=[25,42.59375] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[27,8 54x16] glyph_bounding_rect=[27,8 59x15] translation=[27,21] color=rgb(0, 0, 0) text="Legend" owner=LegendBox<LEGEND> phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[25,29 63x17] glyph_bounding_rect=[25,30 69x15] translation=[25,42.59375] color=rgb(0, 0, 0) text="Content" owner=BlockContainer(anonymous) phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/fixed-position.txt b/Tests/LibWeb/Text/expected/display_list/fixed-position.txtindex 435c1750fdf..23f8d4fed92 100644--- a/Tests/LibWeb/Text/expected/display_list/fixed-position.txt+++ b/Tests/LibWeb/Text/expected/display_list/fixed-position.txt@@ -9,7 +9,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,8 150x50] color=rgb(0, 128, 0) owner=BlockContainer<DIV>.normal phase=background-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=6 rect=[8,8 56x16] glyph_bounding_rect=[8,8 64x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.normal phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=6 rect=[8,8 56x16] glyph_bounding_rect=[8,8 64x15] translation=[8,21] color=rgb(0, 0, 0) text="Normal" owner=BlockContainer<DIV>.normal phase=foregroundFillRect@s0/e0 rect=[10,10 80x40] color=rgb(255, 0, 0) owner=BlockContainer<DIV>.fixed phase=background-DrawGlyphRun@s0/e0 font_id=font1 glyphs=5 rect=[10,10 44x16] glyph_bounding_rect=[10,10 49x15] translation=[10,23] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.fixed phase=foreground+DrawGlyphRun@s0/e0 font_id=font1 glyphs=5 rect=[10,10 44x16] glyph_bounding_rect=[10,10 49x15] translation=[10,23] color=rgb(0, 0, 0) text="Fixed" owner=BlockContainer<DIV>.fixed phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt b/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txtindex 078269909eb..518b9473970 100644--- a/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt+++ b/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt@@ -13,30 +13,30 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[0,0 58x20] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4] owner=BlockContainer<BUTTON>#native phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,0 58x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=BlockContainer<BUTTON>#native phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[9,3 40x14] glyph_bounding_rect=[9,4 44x12] translation=[9,14] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[9,3 40x14] glyph_bounding_rect=[9,4 44x12] translation=[9,14] color=rgb(0, 0, 0) text="Native" owner=BlockContainer(anonymous) phase=foregroundFillRectWithRoundedCorners@s1/e0 rect=[0,30 130x24] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4] owner=BlockContainer<BUTTON> phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,30 130x24] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=BlockContainer<BUTTON> phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=17 rect=[5,35 120x14] glyph_bounding_rect=[5,36 124x12] translation=[5,46] color=rgb(0, 128, 0) owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=17 rect=[5,35 120x14] glyph_bounding_rect=[5,36 124x12] translation=[5,46] color=rgb(0, 128, 0) text="Padding and color" owner=BlockContainer(anonymous) phase=foregroundFillRectWithRoundedCorners@s1/e0 rect=[0,60 129x20] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4] owner=BlockContainer<BUTTON>#revert phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,60 129x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=BlockContainer<BUTTON>#revert phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=15 rect=[9,63 112x14] glyph_bounding_rect=[9,64 115x12] translation=[9,74] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=15 rect=[9,63 112x14] glyph_bounding_rect=[9,64 115x12] translation=[9,74] color=rgb(0, 0, 0) text="Reverted border" owner=BlockContainer(anonymous) phase=foregroundFillRect@s1/e0 rect=[0,90 92x20] color=rgb(0, 255, 0) owner=BlockContainer<BUTTON> phase=backgroundFillPath@s1/e0 path_bounding_rect=[0,90 92x20] path_data=[path: M92 90L92 90L90 92L90 108L92 110L92 110M92 110L92 110L90 108L2 108L0 110L0 110] color=rgb(33, 33, 33) winding_rule=EvenOdd owner=BlockContainer<BUTTON> phase=borderFillPath@s1/e0 path_bounding_rect=[0,90 92x20] path_data=[path: M0 110L0 110L2 108L2 92L0 90L0 90M0 90L0 90L2 92L90 92L92 90L92 90] color=rgb(118, 118, 118) winding_rule=EvenOdd owner=BlockContainer<BUTTON> phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=10 rect=[9,93 75x14] glyph_bounding_rect=[9,94 79x12] translation=[9,104] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=10 rect=[9,93 75x14] glyph_bounding_rect=[9,94 79x12] translation=[9,104] color=rgb(0, 0, 0) text="Background" owner=BlockContainer(anonymous) phase=foregroundFillRect@s1/e0 rect=[0,120 63x20] color=rgb(239, 239, 239) owner=BlockContainer<BUTTON> phase=backgroundFillPath@s1/e0 path_bounding_rect=[0,120 63x20] path_data=[path: M63 120L63 120L61 122L61 138L63 140L63 140M63 140L63 140L61 138L2 138L0 140L0 140] color=rgb(170, 0, 0) winding_rule=EvenOdd owner=BlockContainer<BUTTON> phase=borderFillPath@s1/e0 path_bounding_rect=[0,120 63x20] path_data=[path: M0 140L0 140L2 138L2 122L0 120L0 120M0 120L0 120L2 122L61 122L63 120L63 120] color=rgb(255, 0, 0) winding_rule=EvenOdd owner=BlockContainer<BUTTON> phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[9,123 45x14] glyph_bounding_rect=[9,124 49x12] translation=[9,134] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[9,123 45x14] glyph_bounding_rect=[9,124 49x12] translation=[9,134] color=rgb(0, 0, 0) text="Border" owner=BlockContainer(anonymous) phase=foregroundFillRect@s1/e0 rect=[0,150 137x20] color=rgb(239, 239, 239) owner=BlockContainer<BUTTON> phase=backgroundFillPath@s1/e0 path_bounding_rect=[0,150 137x20] path_data=[path: M137 150L137 150L135 152L135 168L137 170L137 170M137 170L137 170L135 168L2 168L0 170L0 170] color=rgb(33, 33, 33) winding_rule=EvenOdd owner=BlockContainer<BUTTON> phase=borderFillPath@s1/e0 path_bounding_rect=[0,150 137x20] path_data=[path: M0 170L0 170L2 168L2 152L0 150L0 150M0 150L0 150L2 152L135 152L137 150L137 150] color=rgb(118, 118, 118) winding_rule=EvenOdd owner=BlockContainer<BUTTON> phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=15 rect=[9,153 119x14] glyph_bounding_rect=[9,154 123x12] translation=[9,164] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=15 rect=[9,153 119x14] glyph_bounding_rect=[9,154 123x12] translation=[9,164] color=rgb(0, 0, 0) text="Appearance none" owner=BlockContainer(anonymous) phase=foregroundFillRectWithRoundedCorners@s1/e0 rect=[0,180 170x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT> phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,180 170x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT> phase=border-DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=4 rect=[5,183 32x14] glyph_bounding_rect=[5,184 37x12] translation=[5,194] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=4 rect=[5,183 32x14] glyph_bounding_rect=[5,184 37x12] translation=[5,194] color=rgb(0, 0, 0) text="Text" owner=BlockContainer<DIV> phase=foregroundFillRect@s1/e0 rect=[0,210 172x22] color=rgb(255, 255, 255) owner=TextInputBox<INPUT> phase=backgroundFillPath@s1/e0 path_bounding_rect=[0,210 172x22] path_data=[path: M172 210L172 210L169 213L169 229L172 232L172 232M172 232L172 232L169 229L3 229L0 232L0 232] color=rgb(118, 118, 118) winding_rule=EvenOdd owner=TextInputBox<INPUT> phase=borderFillPath@s1/e0 path_bounding_rect=[0,210 172x22] path_data=[path: M0 232L0 232L3 229L3 213L0 210L0 210M0 210L0 210L3 213L169 213L172 210L172 210] color=rgb(33, 33, 33) winding_rule=EvenOdd owner=TextInputBox<INPUT> phase=border-DrawGlyphRun@s1/c3/e0 font_id=font1 glyphs=8 rect=[6,214 59x14] glyph_bounding_rect=[6,215 63x12] translation=[6,225] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c3/e0 font_id=font1 glyphs=8 rect=[6,214 59x14] glyph_bounding_rect=[6,215 63x12] translation=[6,225] color=rgb(0, 0, 0) text="Bordered" owner=BlockContainer<DIV> phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/glyph-run-text-and-fonts.txt b/Tests/LibWeb/Text/expected/display_list/glyph-run-text-and-fonts.txtnew file mode 100644index 00000000000..cc51d1a0336--- /dev/null+++ b/Tests/LibWeb/Text/expected/display_list/glyph-run-text-and-fonts.txt@@ -0,0 +1,7 @@+text="short"+text="\"quoted\" back\\slash"+text="a line of text that runs well past forty…" text_length=66+text="shadowed"+text="shadowed"+without text, no glyph run names its text: true+with fonts, every glyph run names its font: truediff --git a/Tests/LibWeb/Text/expected/display_list/input-caret.txt b/Tests/LibWeb/Text/expected/display_list/input-caret.txtindex 5b761a7fa0f..0085000c4fa 100644--- a/Tests/LibWeb/Text/expected/display_list/input-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/input-caret.txt@@ -11,7 +11,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[8,8 110x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT> phase=backgroundFillRoundedRectRing@s1/e0 rect=[8,8 110x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT> phase=border-DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=5 rect=[13,11 31x14] glyph_bounding_rect=[13,12 33x12] translation=[13,22] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=5 rect=[13,11 31x14] glyph_bounding_rect=[13,12 33x12] translation=[13,22] color=rgb(0, 0, 0) text="hello" owner=BlockContainer<DIV> phase=foregroundPaintCaret@s1/c1/e0 rect=[13,11 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1 owner=BlockContainer<DIV> phase=foregroundFillRoundedRectRing@s1/e0 rect=[6,6 114x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextInputBox<INPUT> phase=outlinediff --git a/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt b/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txtindex f0918e13996..cbf2146c894 100644--- a/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt@@ -13,11 +13,11 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[8,8 170x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT>#foo phase=backgroundFillRoundedRectRing@s1/e0 rect=[8,8 170x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT>#foo phase=border-DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=3 rect=[13,11 23x14] glyph_bounding_rect=[13,12 25x12] translation=[13,22] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=1 rect=[177,9 9x16] glyph_bounding_rect=[178,10 13x15] translation=[177.6875,22] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=text-fragment+DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=3 rect=[13,11 23x14] glyph_bounding_rect=[13,12 25x12] translation=[13,22] color=rgb(0, 0, 0) text="foo" owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=1 rect=[177,9 9x16] glyph_bounding_rect=[178,10 13x15] translation=[177.6875,22] color=rgb(0, 0, 0) text=" " owner=BlockContainer(anonymous) phase=text-fragmentFillRectWithRoundedCorners@s1/e0 rect=[186,8 169x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextInputBox<INPUT>#bar phase=backgroundFillRoundedRectRing@s1/e0 rect=[186,8 169x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextInputBox<INPUT>#bar phase=border-DrawGlyphRun@s1/c3/e0 font_id=font1 glyphs=3 rect=[190,11 24x14] glyph_bounding_rect=[191,12 27x12] translation=[190.6875,22] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c3/e0 font_id=font1 glyphs=3 rect=[190,11 24x14] glyph_bounding_rect=[191,12 27x12] translation=[190.6875,22] color=rgb(0, 0, 0) text="bar" owner=BlockContainer<DIV> phase=foregroundPaintCaret@s1/c3/e0 rect=[191,11 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1 owner=BlockContainer<DIV> phase=foregroundFillRoundedRectRing@s1/e0 rect=[184,6 173x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextInputBox<INPUT>#bar phase=outlinediff --git a/Tests/LibWeb/Text/expected/display_list/mask-image-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/mask-image-invalidation.txtindex b4e90c03688..5f04b6a507b 100644--- a/Tests/LibWeb/Text/expected/display_list/mask-image-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/mask-image-invalidation.txt@@ -11,7 +11,7 @@ DisplayList:DeclareMaskContent@s1/e1 rect=[8,8 100x100] effect=e1 owner=BlockContainer<DIV>#box.box phase=preamblePaintLinearGradient@s1/e1 gradient_rect=[8,8 100x100] gradient_angle=180 color_stops=[rgb(0, 0, 0) 0, rgba(0, 0, 0, 0) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[8,8 100x100]] owner=BlockContainer<DIV>#box.box phase=preambleFillRect@s1/e1 rect=[8,8 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/e1 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/e1 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregroundAfter mask-image removal:AccumulatedVisualContext Tree:@@ -23,7 +23,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,8 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregroundAfter mask-image reinstatement:AccumulatedVisualContext Tree:@@ -38,5 +38,5 @@ DisplayList:DeclareMaskContent@s1/e1 rect=[8,8 100x100] effect=e1 owner=BlockContainer<DIV>#box.box phase=preamblePaintLinearGradient@s1/e1 gradient_rect=[8,8 100x100] gradient_angle=90 color_stops=[rgb(0, 0, 0) 0, rgba(0, 0, 0, 0) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[8,8 100x100]] owner=BlockContainer<DIV>#box.box phase=preambleFillRect@s1/e1 rect=[8,8 100x100] color=rgb(173, 216, 230) owner=BlockContainer<DIV>#box.box phase=background-DrawGlyphRun@s1/e1 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box.box phase=foreground+DrawGlyphRun@s1/e1 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0) text="Box" owner=BlockContainer<DIV>#box.box phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/mixed-sibling-contexts.txt b/Tests/LibWeb/Text/expected/display_list/mixed-sibling-contexts.txtindex 40cac95a4a0..fe128b307d3 100644--- a/Tests/LibWeb/Text/expected/display_list/mixed-sibling-contexts.txt+++ b/Tests/LibWeb/Text/expected/display_list/mixed-sibling-contexts.txt@@ -15,7 +15,7 @@ ScrollNode scroll_node_index=s2 parent_scroll_node_index=s0 scrollport_rect=[119DisplayList:FillRoundedRectRing@s1/e0 rect=[118,8 102x102] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255) owner=BlockContainer<DIV>.clipped phase=borderFillRect@s2/c0/e0 rect=[119,9 150x150] color=rgb(173, 216, 230) owner=BlockContainer<DIV>.inner phase=background-DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=7 rect=[119,9 55x16] glyph_bounding_rect=[119,10 60x15] translation=[119,22] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.inner phase=foreground+DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=7 rect=[119,9 55x16] glyph_bounding_rect=[119,10 60x15] translation=[119,22] color=rgb(0, 0, 0) text="Clipped" owner=BlockContainer<DIV>.inner phase=foregroundFillRect@s3/e0 rect=[8,8 100x100] color=rgb(255, 127, 80) owner=BlockContainer<DIV>.transformed phase=background-DrawGlyphRun@s3/e0 font_id=font1 glyphs=9 rect=[8,8 88x16] glyph_bounding_rect=[8,8 88x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.transformed phase=foreground+DrawGlyphRun@s3/e0 font_id=font1 glyphs=9 rect=[8,8 88x16] glyph_bounding_rect=[8,8 88x15] translation=[8,21] color=rgb(0, 0, 0) text="Transform" owner=BlockContainer<DIV>.transformed phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/multiline-inline-color-change-inside-opacity.txt b/Tests/LibWeb/Text/expected/display_list/multiline-inline-color-change-inside-opacity.txtindex 099260bb4af..f611df4dcd3 100644--- a/Tests/LibWeb/Text/expected/display_list/multiline-inline-color-change-inside-opacity.txt+++ b/Tests/LibWeb/Text/expected/display_list/multiline-inline-color-change-inside-opacity.txt@@ -8,11 +8,11 @@ AccumulatedVisualContext Tree:[e1 in s1] effects=[opacity=0.5] (InlineNode<SPAN>#outer)DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[8,85 46x13] glyph_bounding_rect=[8,85 53x12] translation=[8,95] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e1 font_id=font2 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(0, 0, 255) owner=InlineNode<SPAN>#outer phase=text-fragment-DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 255) owner=InlineNode<SPAN>#outer phase=text-fragment-DrawGlyphRun@s1/e1 font_id=font2 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 255) owner=InlineNode<SPAN>#outer phase=text-fragment-DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 255) owner=InlineNode<SPAN>#outer phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[8,85 46x13] glyph_bounding_rect=[8,85 53x12] translation=[8,95] color=rgb(0, 0, 0) text="Before:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e1 font_id=font2 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(0, 0, 255) text="This span" owner=InlineNode<SPAN>#outer phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 255) text="spans" owner=InlineNode<SPAN>#outer phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 255) text="multiple" owner=InlineNode<SPAN>#outer phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 255) text="lines" owner=InlineNode<SPAN>#outer phase=text-fragmentAfter:AccumulatedVisualContext Tree:@@ -24,26 +24,26 @@ AccumulatedVisualContext Tree:[e1 in s1] effects=[opacity=0.5] (InlineNode<SPAN>#outer)ScrollNodes:-ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[441.23438,0] is_viewport=true+ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[539.8594,0] is_viewport=trueDisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[8,85 46x13] glyph_bounding_rect=[8,85 53x12] translation=[8,95] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=30 rect=[8,98 214x13] glyph_bounding_rect=[8,98 221x12] translation=[8,108] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=10 rect=[8,111 60x13] glyph_bounding_rect=[8,111 67x12] translation=[8,121] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=67 rect=[8,124 440x13] glyph_bounding_rect=[8,124 446x12] translation=[8,134] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=39 rect=[8,137 264x13] glyph_bounding_rect=[8,137 271x12] translation=[8,147] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=10 rect=[8,150 62x13] glyph_bounding_rect=[8,150 69x12] translation=[8,160] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=25 rect=[8,163 162x13] glyph_bounding_rect=[8,163 166x12] translation=[8,173] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=63 rect=[8,176 417x13] glyph_bounding_rect=[8,176 423x12] translation=[8,186] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=12 rect=[8,202 74x13] glyph_bounding_rect=[8,202 81x12] translation=[8,212] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=177 rect=[8,215 1214x13] glyph_bounding_rect=[8,215 1218x12] translation=[8,225] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=179 rect=[8,228 1219x13] glyph_bounding_rect=[8,228 1224x12] translation=[8,238] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=181 rect=[8,241 1229x13] glyph_bounding_rect=[8,241 1234x12] translation=[8,251] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=181 rect=[8,254 1234x13] glyph_bounding_rect=[8,254 1238x12] translation=[8,264] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=181 rect=[8,267 1232x13] glyph_bounding_rect=[8,267 1237x12] translation=[8,277] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,293 40x13] glyph_bounding_rect=[8,293 47x12] translation=[8,303] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e1 font_id=font2 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(255, 0, 0) owner=InlineNode<SPAN>#outer phase=text-fragment-DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(255, 0, 0) owner=InlineNode<SPAN>#outer phase=text-fragment-DrawGlyphRun@s1/e1 font_id=font2 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(255, 0, 0) owner=InlineNode<SPAN>#outer phase=text-fragment-DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(255, 0, 0) owner=InlineNode<SPAN>#outer phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[8,85 46x13] glyph_bounding_rect=[8,85 53x12] translation=[8,95] color=rgb(0, 0, 0) text="Before:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=30 rect=[8,98 214x13] glyph_bounding_rect=[8,98 221x12] translation=[8,108] color=rgb(0, 0, 0) text="AccumulatedVisualContext Tree:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=10 rect=[8,111 60x13] glyph_bounding_rect=[8,111 67x12] translation=[8,121] color=rgb(0, 0, 0) text=" spatial:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=67 rect=[8,124 440x13] glyph_bounding_rect=[8,124 446x12] translation=[8,134] color=rgb(0, 0, 0) text=" [s0] transform=[1,0,0,1,0,0] origin=…" text_length=67 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=39 rect=[8,137 264x13] glyph_bounding_rect=[8,137 271x12] translation=[8,147] color=rgb(0, 0, 0) text=" [s1] scroll (Viewport<#document>)" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=10 rect=[8,150 62x13] glyph_bounding_rect=[8,150 69x12] translation=[8,160] color=rgb(0, 0, 0) text=" effects:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=25 rect=[8,163 162x13] glyph_bounding_rect=[8,163 166x12] translation=[8,173] color=rgb(0, 0, 0) text=" [e0 in s0] effects=[]" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=63 rect=[8,176 417x13] glyph_bounding_rect=[8,176 423x12] translation=[8,186] color=rgb(0, 0, 0) text=" [e1 in s1] effects=[opacity=0.5] (…" text_length=63 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=12 rect=[8,202 74x13] glyph_bounding_rect=[8,202 81x12] translation=[8,212] color=rgb(0, 0, 0) text="DisplayList:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=192 rect=[8,215 1307x13] glyph_bounding_rect=[8,215 1311x12] translation=[8,225] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e0 font_id=font1 glyphs=…" text_length=192 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=196 rect=[8,228 1332x13] glyph_bounding_rect=[8,228 1337x12] translation=[8,238] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e1 font_id=font2 glyphs=…" text_length=196 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=194 rect=[8,241 1315x13] glyph_bounding_rect=[8,241 1319x12] translation=[8,251] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e1 font_id=font2 glyphs=…" text_length=194 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=197 rect=[8,254 1330x13] glyph_bounding_rect=[8,254 1335x12] translation=[8,264] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e1 font_id=font2 glyphs=…" text_length=197 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=194 rect=[8,267 1309x13] glyph_bounding_rect=[8,267 1314x12] translation=[8,277] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e1 font_id=font2 glyphs=…" text_length=194 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,293 40x13] glyph_bounding_rect=[8,293 47x12] translation=[8,303] color=rgb(0, 0, 0) text="After:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e1 font_id=font2 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(255, 0, 0) text="This span" owner=InlineNode<SPAN>#outer phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(255, 0, 0) text="spans" owner=InlineNode<SPAN>#outer phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(255, 0, 0) text="multiple" owner=InlineNode<SPAN>#outer phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(255, 0, 0) text="lines" owner=InlineNode<SPAN>#outer phase=text-fragmentdiff --git a/Tests/LibWeb/Text/expected/display_list/multiline-inline-opacity.txt b/Tests/LibWeb/Text/expected/display_list/multiline-inline-opacity.txtindex 26318765a95..fb7a12c24bf 100644--- a/Tests/LibWeb/Text/expected/display_list/multiline-inline-opacity.txt+++ b/Tests/LibWeb/Text/expected/display_list/multiline-inline-opacity.txt@@ -8,15 +8,15 @@ AccumulatedVisualContext Tree:[e1 in s1] effects=[opacity=0.5] (InlineNode<SPAN>#target)DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=13 rect=[8,85 83x13] glyph_bounding_rect=[8,85 91x12] translation=[8,95] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=13 rect=[8,85 83x13] glyph_bounding_rect=[8,85 91x12] translation=[8,95] color=rgb(0, 0, 0) text="With opacity:" owner=BlockContainer<PRE>#out phase=foregroundFillRect@s1/e1 rect=[8,8 81x16] color=rgb(255, 165, 0) owner=InlineNode<SPAN>#target phase=inline-piece-DrawGlyphRun@s1/e1 font_id=font2 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(0, 0, 0) owner=InlineNode<SPAN>#target phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(0, 0, 0) text="This span" owner=InlineNode<SPAN>#target phase=text-fragmentFillRect@s1/e1 rect=[8,24 47x16] color=rgb(255, 165, 0) owner=InlineNode<SPAN>#target phase=inline-piece-DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 0) owner=InlineNode<SPAN>#target phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 0) text="spans" owner=InlineNode<SPAN>#target phase=text-fragmentFillRect@s1/e1 rect=[8,40 60x16] color=rgb(255, 165, 0) owner=InlineNode<SPAN>#target phase=inline-piece-DrawGlyphRun@s1/e1 font_id=font2 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 0) owner=InlineNode<SPAN>#target phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 0) text="multiple" owner=InlineNode<SPAN>#target phase=text-fragmentFillRect@s1/e1 rect=[8,56 36x16] color=rgb(255, 165, 0) owner=InlineNode<SPAN>#target phase=inline-piece-DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 0) owner=InlineNode<SPAN>#target phase=text-fragment+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 0) text="lines" owner=InlineNode<SPAN>#target phase=text-fragmentWithout opacity:AccumulatedVisualContext Tree:@@ -27,34 +27,34 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]ScrollNodes:-ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[431.07812,0] is_viewport=true+ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[557.0625,0] is_viewport=trueDisplayList:FillRect@s1/e0 rect=[8,8 81x16] color=rgb(255, 165, 0) owner=BlockContainer<DIV> phase=inline-piece-DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(0, 0, 0) text="This span" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,24 47x16] color=rgb(255, 165, 0) owner=BlockContainer<DIV> phase=inline-piece-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 0) text="spans" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,40 60x16] color=rgb(255, 165, 0) owner=BlockContainer<DIV> phase=inline-piece-DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 0) text="multiple" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,56 36x16] color=rgb(255, 165, 0) owner=BlockContainer<DIV> phase=inline-piece-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font2 glyphs=13 rect=[8,85 83x13] glyph_bounding_rect=[8,85 91x12] translation=[8,95] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=30 rect=[8,98 214x13] glyph_bounding_rect=[8,98 221x12] translation=[8,108] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=10 rect=[8,111 60x13] glyph_bounding_rect=[8,111 67x12] translation=[8,121] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=67 rect=[8,124 440x13] glyph_bounding_rect=[8,124 446x12] translation=[8,134] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=39 rect=[8,137 264x13] glyph_bounding_rect=[8,137 271x12] translation=[8,147] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=10 rect=[8,150 62x13] glyph_bounding_rect=[8,150 69x12] translation=[8,160] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=25 rect=[8,163 162x13] glyph_bounding_rect=[8,163 166x12] translation=[8,173] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=64 rect=[8,176 419x13] glyph_bounding_rect=[8,176 426x12] translation=[8,186] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=12 rect=[8,202 74x13] glyph_bounding_rect=[8,202 81x12] translation=[8,212] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=178 rect=[8,215 1219x13] glyph_bounding_rect=[8,215 1223x12] translation=[8,225] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=103 rect=[8,228 686x13] glyph_bounding_rect=[8,228 690x12] translation=[8,238] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=178 rect=[8,241 1209x13] glyph_bounding_rect=[8,241 1214x12] translation=[8,251] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=104 rect=[8,254 693x13] glyph_bounding_rect=[8,254 696x12] translation=[8,264] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=180 rect=[8,267 1219x13] glyph_bounding_rect=[8,267 1224x12] translation=[8,277] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=104 rect=[8,280 695x13] glyph_bounding_rect=[8,280 698x12] translation=[8,290] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=180 rect=[8,293 1224x13] glyph_bounding_rect=[8,293 1228x12] translation=[8,303] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=104 rect=[8,306 694x13] glyph_bounding_rect=[8,306 698x12] translation=[8,316] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=180 rect=[8,319 1222x13] glyph_bounding_rect=[8,319 1227x12] translation=[8,329] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=16 rect=[8,345 105x13] glyph_bounding_rect=[8,345 113x12] translation=[8,355] color=rgb(0, 0, 0) owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 0) text="lines" owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font2 glyphs=13 rect=[8,85 83x13] glyph_bounding_rect=[8,85 91x12] translation=[8,95] color=rgb(0, 0, 0) text="With opacity:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=30 rect=[8,98 214x13] glyph_bounding_rect=[8,98 221x12] translation=[8,108] color=rgb(0, 0, 0) text="AccumulatedVisualContext Tree:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=10 rect=[8,111 60x13] glyph_bounding_rect=[8,111 67x12] translation=[8,121] color=rgb(0, 0, 0) text=" spatial:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=67 rect=[8,124 440x13] glyph_bounding_rect=[8,124 446x12] translation=[8,134] color=rgb(0, 0, 0) text=" [s0] transform=[1,0,0,1,0,0] origin=…" text_length=67 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=39 rect=[8,137 264x13] glyph_bounding_rect=[8,137 271x12] translation=[8,147] color=rgb(0, 0, 0) text=" [s1] scroll (Viewport<#document>)" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=10 rect=[8,150 62x13] glyph_bounding_rect=[8,150 69x12] translation=[8,160] color=rgb(0, 0, 0) text=" effects:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=25 rect=[8,163 162x13] glyph_bounding_rect=[8,163 166x12] translation=[8,173] color=rgb(0, 0, 0) text=" [e0 in s0] effects=[]" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=64 rect=[8,176 419x13] glyph_bounding_rect=[8,176 426x12] translation=[8,186] color=rgb(0, 0, 0) text=" [e1 in s1] effects=[opacity=0.5] (…" text_length=64 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=12 rect=[8,202 74x13] glyph_bounding_rect=[8,202 81x12] translation=[8,212] color=rgb(0, 0, 0) text="DisplayList:" owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=199 rect=[8,215 1350x13] glyph_bounding_rect=[8,215 1354x12] translation=[8,225] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e0 font_id=font1 glyphs=…" text_length=199 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=103 rect=[8,228 686x13] glyph_bounding_rect=[8,228 690x12] translation=[8,238] color=rgb(0, 0, 0) text="FillRect@s1/e1 rect=[8,8 81x16] color=rg…" text_length=103 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=195 rect=[8,241 1322x13] glyph_bounding_rect=[8,241 1327x12] translation=[8,251] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e1 font_id=font2 glyphs=…" text_length=195 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=104 rect=[8,254 693x13] glyph_bounding_rect=[8,254 696x12] translation=[8,264] color=rgb(0, 0, 0) text="FillRect@s1/e1 rect=[8,24 47x16] color=r…" text_length=104 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=193 rect=[8,267 1304x13] glyph_bounding_rect=[8,267 1309x12] translation=[8,277] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e1 font_id=font2 glyphs=…" text_length=193 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=104 rect=[8,280 695x13] glyph_bounding_rect=[8,280 698x12] translation=[8,290] color=rgb(0, 0, 0) text="FillRect@s1/e1 rect=[8,40 60x16] color=r…" text_length=104 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=196 rect=[8,293 1320x13] glyph_bounding_rect=[8,293 1324x12] translation=[8,303] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e1 font_id=font2 glyphs=…" text_length=196 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=104 rect=[8,306 694x13] glyph_bounding_rect=[8,306 698x12] translation=[8,316] color=rgb(0, 0, 0) text="FillRect@s1/e1 rect=[8,56 36x16] color=r…" text_length=104 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=193 rect=[8,319 1299x13] glyph_bounding_rect=[8,319 1304x12] translation=[8,329] color=rgb(0, 0, 0) text="DrawGlyphRun@s1/e1 font_id=font2 glyphs=…" text_length=193 owner=BlockContainer<PRE>#out phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=16 rect=[8,345 105x13] glyph_bounding_rect=[8,345 113x12] translation=[8,355] color=rgb(0, 0, 0) text="Without opacity:" owner=BlockContainer<PRE>#out phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/multiline-inline-paint-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/multiline-inline-paint-invalidation.txtindex 456f0bc623f..251b854f041 100644--- a/Tests/LibWeb/Text/expected/display_list/multiline-inline-paint-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/multiline-inline-paint-invalidation.txt@@ -7,13 +7,13 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,8 70x16] glyph_bounding_rect=[8,8 75x15] translation=[8,21] color=rgb(0, 0, 255) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,8 70x16] glyph_bounding_rect=[8,8 75x15] translation=[8,21] color=rgb(0, 0, 255) text="This link" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,23 70x2] color=rgb(0, 0, 255) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 255) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 255) text="spans" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,39 47x2] color=rgb(0, 0, 255) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 255) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 255) text="multiple" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,55 60x2] color=rgb(0, 0, 255) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 255) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 255) text="lines" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,71 36x2] color=rgb(0, 0, 255) owner=BlockContainer<DIV> phase=text-fragmentAfter:@@ -25,12 +25,12 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,8 70x16] glyph_bounding_rect=[8,8 75x15] translation=[8,21] color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,8 70x16] glyph_bounding_rect=[8,8 75x15] translation=[8,21] color=rgb(255, 0, 0) text="This link" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,23 70x2] color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(255, 0, 0) text="spans" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,39 47x2] color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(255, 0, 0) text="multiple" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,55 60x2] color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(255, 0, 0) text="lines" owner=BlockContainer<DIV> phase=text-fragmentFillRect@s1/e0 rect=[8,71 36x2] color=rgb(255, 0, 0) owner=BlockContainer<DIV> phase=text-fragmentdiff --git a/Tests/LibWeb/Text/expected/display_list/nested-branches.txt b/Tests/LibWeb/Text/expected/display_list/nested-branches.txtindex 04c43d86416..2c2ea1790ec 100644--- a/Tests/LibWeb/Text/expected/display_list/nested-branches.txt+++ b/Tests/LibWeb/Text/expected/display_list/nested-branches.txt@@ -18,11 +18,11 @@ FillRoundedRectRing@s1/e0 rect=[8,8 324x274] top_width=2 right_width=2 bottom_wiFillRoundedRectRing@s1/c0/e0 rect=[20,20 145x250] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(128, 128, 128) owner=BlockContainer<DIV>.level2 phase=borderFillRoundedRectRing@s1/c0/e0 rect=[175,20 145x250] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(128, 128, 128) owner=BlockContainer<DIV>.level2 phase=borderFillRect@s2/c1/e0 rect=[26,26 133x40] color=rgb(255, 136, 136) owner=BlockContainer<DIV>.level3.t1 phase=background-DrawGlyphRun@s2/c1/e0 font_id=font1 glyphs=3 rect=[26,26 20x16] glyph_bounding_rect=[26,26 26x15] translation=[26,39] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.level3.t1 phase=foreground+DrawGlyphRun@s2/c1/e0 font_id=font1 glyphs=3 rect=[26,26 20x16] glyph_bounding_rect=[26,26 26x15] translation=[26,39] color=rgb(0, 0, 0) text="1-1" owner=BlockContainer<DIV>.level3.t1 phase=foregroundFillRect@s3/c1/e0 rect=[26,71 133x40] color=rgb(136, 255, 136) owner=BlockContainer<DIV>.level3.t2 phase=background-DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=3 rect=[26,71 22x16] glyph_bounding_rect=[26,72 26x15] translation=[26,84] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.level3.t2 phase=foreground+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=3 rect=[26,71 22x16] glyph_bounding_rect=[26,72 26x15] translation=[26,84] color=rgb(0, 0, 0) text="1-2" owner=BlockContainer<DIV>.level3.t2 phase=foregroundFillRect@s4/c2/e0 rect=[181,26 133x40] color=rgb(136, 136, 255) owner=BlockContainer<DIV>.level3.t3 phase=background-DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=3 rect=[181,26 22x16] glyph_bounding_rect=[181,26 29x15] translation=[181,39] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.level3.t3 phase=foreground+DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=3 rect=[181,26 22x16] glyph_bounding_rect=[181,26 29x15] translation=[181,39] color=rgb(0, 0, 0) text="2-1" owner=BlockContainer<DIV>.level3.t3 phase=foregroundFillRect@s5/c2/e0 rect=[181,71 133x40] color=rgb(255, 255, 136) owner=BlockContainer<DIV>.level3.t4 phase=background-DrawGlyphRun@s5/c2/e0 font_id=font1 glyphs=3 rect=[181,71 25x16] glyph_bounding_rect=[181,72 29x15] translation=[181,84] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.level3.t4 phase=foreground+DrawGlyphRun@s5/c2/e0 font_id=font1 glyphs=3 rect=[181,71 25x16] glyph_bounding_rect=[181,72 29x15] translation=[181,84] color=rgb(0, 0, 0) text="2-2" owner=BlockContainer<DIV>.level3.t4 phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt b/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txtindex 577aa4d7af2..12446bebf51 100644--- a/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt+++ b/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt@@ -25,7 +25,7 @@ FillRect@s2/c0/e0 rect=[10,10 302x102] color=rgb(255, 255, 224) owner=BlockContaFillRoundedRectRing@s2/c0/e0 rect=[10,10 302x102] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(255, 0, 0) owner=BlockContainer<DIV>.inner-scroll phase=borderCompositorWheelHitTestTarget@s3/c1/e0 target_scroll_node_index=s3 rect=[11,11 400x80] owner=BlockContainer<DIV>.content phase=scroll-metadataFillRect@s3/c1/e0 rect=[11,11 400x80] color=rgb(240, 128, 128) owner=BlockContainer<DIV>.content phase=background-DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=21 rect=[11,11 178x16] glyph_bounding_rect=[11,12 184x15] translation=[11,24] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.content phase=foreground+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=21 rect=[11,11 178x16] glyph_bounding_rect=[11,12 184x15] translation=[11,24] color=rgb(0, 0, 0) text="Deeply nested content" owner=BlockContainer<DIV>.content phase=foregroundCompositorScrollbar@s2/c0/e0 scroll_node_index=s3 thumb_rect=[13,102 222x7] track_rect=[11,102 300x9] expanded_gutter_rect=[11,96 300x15] expanded_thumb_rect=[13,98 222x11] scroll_size=0.74 expanded_scroll_size=0.74 max_scroll_offset=100 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) owner=BlockContainer<DIV>.inner-scroll phase=overlayPaintScrollBar@s2/c0/e0 scroll_node_index=s3 thumb_rect=[13,102 222x7] track_rect=[11,102 300x9] expanded_gutter_rect=[11,96 300x15] scroll_size=0.74 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) owner=BlockContainer<DIV>.inner-scroll phase=overlayCompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[12,151 130x7] track_rect=[10,151 200x9] expanded_gutter_rect=[10,145 200x15] expanded_thumb_rect=[12,147 130x11] scroll_size=0.6490502450980392 expanded_scroll_size=0.6490502450980392 max_scroll_offset=102 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) owner=BlockContainer<DIV>.outer-scroll phase=overlaydiff --git a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txtindex 1bcbce5c7a5..d4025e1dfc4 100644--- a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt+++ b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt@@ -11,9 +11,9 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextAreaBox<TEXTAREA>#ta phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextAreaBox<TEXTAREA>#ta phase=border-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]] owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]] text="a" owner=BlockContainer<DIV> phase=foregroundFillRect@s1/c0/e0 rect=[11,3 15x14] color=rgba(101, 2, 0, 0.8) owner=BlockContainer<DIV> phase=foreground-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]] owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]] text="bc" owner=BlockContainer<DIV> phase=foregroundFillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextAreaBox<TEXTAREA>#ta phase=outlineDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlay@@ -22,7 +22,7 @@ DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1 owDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayFillRect@s1/e0 rect=[0,23 23x16] color=rgba(101, 2, 0, 0.8) owner=BlockContainer<DIV>#txt phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#txt phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) text="def" owner=BlockContainer<DIV>#txt phase=foreground-- unfocused --AccumulatedVisualContext Tree:@@ -37,9 +37,9 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextAreaBox<TEXTAREA>#ta phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextAreaBox<TEXTAREA>#ta phase=border-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]] owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]] text="a" owner=BlockContainer<DIV> phase=foregroundFillRect@s1/c0/e0 rect=[11,3 15x14] color=rgba(16, 16, 16, 0.667) owner=BlockContainer<DIV> phase=foreground-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]] owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]] text="bc" owner=BlockContainer<DIV> phase=foregroundDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlay@@ -47,7 +47,7 @@ DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1 owDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayFillRect@s1/e0 rect=[0,23 23x16] color=rgba(16, 16, 16, 0.667) owner=BlockContainer<DIV>#txt phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#txt phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) text="def" owner=BlockContainer<DIV>#txt phase=foreground-- focused again --AccumulatedVisualContext Tree:@@ -62,9 +62,9 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextAreaBox<TEXTAREA>#ta phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextAreaBox<TEXTAREA>#ta phase=border-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]] owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]] text="a" owner=BlockContainer<DIV> phase=foregroundFillRect@s1/c0/e0 rect=[11,3 15x14] color=rgba(101, 2, 0, 0.8) owner=BlockContainer<DIV> phase=foreground-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]] owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]] text="bc" owner=BlockContainer<DIV> phase=foregroundFillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextAreaBox<TEXTAREA>#ta phase=outlineDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlay@@ -73,7 +73,7 @@ DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1 owDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayFillRect@s1/e0 rect=[0,23 23x16] color=rgba(101, 2, 0, 0.8) owner=BlockContainer<DIV>#txt phase=foreground-DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#txt phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) text="def" owner=BlockContainer<DIV>#txt phase=foreground-- caret, focused --AccumulatedVisualContext Tree:@@ -88,7 +88,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextAreaBox<TEXTAREA>#ta phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextAreaBox<TEXTAREA>#ta phase=border-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) text="abc" owner=BlockContainer<DIV> phase=foregroundPaintCaret@s1/c0/e0 rect=[19,3 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1 owner=BlockContainer<DIV> phase=foregroundFillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextAreaBox<TEXTAREA>#ta phase=outlineDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlay@@ -97,7 +97,7 @@ DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thicknesDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlay-DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#txt phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) text="def" owner=BlockContainer<DIV>#txt phase=foreground-- caret, unfocused --AccumulatedVisualContext Tree:@@ -112,14 +112,14 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextAreaBox<TEXTAREA>#ta phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextAreaBox<TEXTAREA>#ta phase=border-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) text="abc" owner=BlockContainer<DIV> phase=foregroundDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlay-DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#txt phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) text="def" owner=BlockContainer<DIV>#txt phase=foreground-- caret, focused again --AccumulatedVisualContext Tree:@@ -134,7 +134,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextAreaBox<TEXTAREA>#ta phase=backgroundFillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextAreaBox<TEXTAREA>#ta phase=border-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) text="abc" owner=BlockContainer<DIV> phase=foregroundPaintCaret@s1/c0/e0 rect=[19,3 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1 owner=BlockContainer<DIV> phase=foregroundFillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextAreaBox<TEXTAREA>#ta phase=outlineDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlay@@ -143,5 +143,5 @@ DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thicknesDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlayDrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1 owner=TextAreaBox<TEXTAREA>#ta phase=overlay-DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#txt phase=foreground+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0) text="def" owner=BlockContainer<DIV>#txt phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/perspective-basic.txt b/Tests/LibWeb/Text/expected/display_list/perspective-basic.txtindex 97cf107a97f..126ef0b107d 100644--- a/Tests/LibWeb/Text/expected/display_list/perspective-basic.txt+++ b/Tests/LibWeb/Text/expected/display_list/perspective-basic.txt@@ -9,5 +9,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s3/e0 rect=[8,8 100x100] color=rgb(0, 0, 255) owner=BlockContainer<DIV>.rotated phase=background-DrawGlyphRun@s3/e0 font_id=font1 glyphs=2 rect=[8,8 21x16] glyph_bounding_rect=[8,8 22x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.rotated phase=foreground+DrawGlyphRun@s3/e0 font_id=font1 glyphs=2 rect=[8,8 21x16] glyph_bounding_rect=[8,8 22x15] translation=[8,21] color=rgb(0, 0, 0) text="3D" owner=BlockContainer<DIV>.rotated phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/positioned-with-transformed-ancestor.txt b/Tests/LibWeb/Text/expected/display_list/positioned-with-transformed-ancestor.txtindex 5602352201c..d2a4458e37a 100644--- a/Tests/LibWeb/Text/expected/display_list/positioned-with-transformed-ancestor.txt+++ b/Tests/LibWeb/Text/expected/display_list/positioned-with-transformed-ancestor.txt@@ -10,5 +10,5 @@ DisplayList:FillRect@s2/e0 rect=[8,8 200x200] color=rgb(211, 211, 211) owner=BlockContainer<DIV>.transformed-ancestor phase=backgroundFillRect@s2/e0 rect=[8,8 200x90] color=rgb(173, 216, 230) owner=BlockContainer<DIV>.intermediate phase=backgroundFillRect@s2/e0 rect=[33,33 100x50] color=rgb(255, 127, 80) owner=BlockContainer<DIV>.positioned phase=background-DrawGlyphRun@s2/e0 font_id=font1 glyphs=10 rect=[33,33 84x16] glyph_bounding_rect=[33,34 89x15] translation=[33,46] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.positioned phase=foreground+DrawGlyphRun@s2/e0 font_id=font1 glyphs=10 rect=[33,33 84x16] glyph_bounding_rect=[33,34 89x15] translation=[33,46] color=rgb(0, 0, 0) text="Positioned" owner=BlockContainer<DIV>.positioned phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/record-owners-and-phases.txt b/Tests/LibWeb/Text/expected/display_list/record-owners-and-phases.txtindex 53502153309..e1cd8761647 100644--- a/Tests/LibWeb/Text/expected/display_list/record-owners-and-phases.txt+++ b/Tests/LibWeb/Text/expected/display_list/record-owners-and-phases.txt@@ -1,7 +1,7 @@DisplayList:FillRect@s1/e0 rect=[8,8 104x34] color=rgb(0, 128, 0) owner=BlockContainer<DIV>#box phase=backgroundFillRoundedRectRing@s1/e0 rect=[8,8 104x34] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 255) owner=BlockContainer<DIV>#box phase=border-DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[10,10 33x16] glyph_bounding_rect=[10,10 39x15] translation=[10,23] color=rgb(0, 0, 0) owner=BlockContainer<DIV>#box phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[10,10 33x16] glyph_bounding_rect=[10,10 39x15] translation=[10,23] color=rgb(0, 0, 0) text="text" owner=BlockContainer<DIV>#box phase=foregroundFillRoundedRectRing@s1/e0 rect=[5,5 110x40] top_width=3 right_width=3 bottom_width=3 left_width=3 color=rgb(255, 0, 0) owner=BlockContainer<DIV>#box phase=outlineDeclareMaskContent@s2/c0/e1 rect=[-10,-10 120x120] effect=e1 owner=SVGSVGBox<svg> phase=svgFillPath@s2/c0/e1 path_bounding_rect=[0,0 50x50] path_data=[path: M0 0L50 0L50 50L0 50L0 0Z] color=rgb(255, 255, 255) owner=SVGGeometryBox<rect> phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt b/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txtindex 839306fb788..e1e42896e82 100644--- a/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt+++ b/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt@@ -9,5 +9,5 @@ DisplayList:FillRect@s1/e0 rect=[8,8 300x300] color=rgb(211, 211, 211) owner=BlockContainer<DIV>.block-container phase=backgroundFillRect@s1/e0 rect=[8,8 100x16] color=rgb(173, 216, 230) owner=BlockContainer<DIV>.block-container phase=inline-pieceFillRect@s1/e0 rect=[13,13 100x100] color=rgb(255, 127, 80) owner=BlockContainer<SPAN>.relative-child phase=background-DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[13,13 65x16] glyph_bounding_rect=[13,14 69x15] translation=[13,26] color=rgb(0, 0, 0) owner=BlockContainer<SPAN>.relative-child phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[13,13 65x16] glyph_bounding_rect=[13,14 69x15] translation=[13,26] color=rgb(0, 0, 0) text="Relative" owner=BlockContainer<SPAN>.relative-child phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txt b/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txtindex c0343d205d5..3d0f45d6702 100644--- a/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txt+++ b/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txt@@ -21,7 +21,7 @@ CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s2 rect=[32,32 182x1FillRoundedRectRing@s0/e0 rect=[32,32 182x102] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255) owner=BlockContainer<DIV>.scroll-container phase=borderCompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[33,33 300x200] owner=BlockContainer<DIV>.scroll-content phase=scroll-metadataFillRect@s2/c0/e0 rect=[33,33 300x200] color=rgb(240, 128, 128) owner=BlockContainer<DIV>.scroll-content phase=background-DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=23 rect=[33,33 179x16] glyph_bounding_rect=[33,34 184x15] translation=[33,46] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.scroll-content phase=foreground+DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=23 rect=[33,33 179x16] glyph_bounding_rect=[33,34 184x15] translation=[33,46] color=rgb(0, 0, 0) text="Scrollable inside fixed" owner=BlockContainer<DIV>.scroll-content phase=foregroundCompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[204,35 7x48] track_rect=[204,33 9x100] expanded_gutter_rect=[198,33 15x100] expanded_thumb_rect=[200,35 11x48] scroll_size=0.48 expanded_scroll_size=0.48 max_scroll_offset=100 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayPaintScrollBar@s0/e0 scroll_node_index=s2 thumb_rect=[204,35 7x48] track_rect=[204,33 9x100] expanded_gutter_rect=[198,33 15x100] scroll_size=0.48 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayCompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[35,124 97x7] track_rect=[33,124 165x9] expanded_gutter_rect=[33,118 165x15] expanded_thumb_rect=[35,120 97x11] scroll_size=0.53671875 expanded_scroll_size=0.53671875 max_scroll_offset=120 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) owner=BlockContainer<DIV>.scroll-container phase=overlaydiff --git a/Tests/LibWeb/Text/expected/display_list/selection-highlight-painting-order.txt b/Tests/LibWeb/Text/expected/display_list/selection-highlight-painting-order.txtindex 290009e5db5..3ddacbb4fb7 100644--- a/Tests/LibWeb/Text/expected/display_list/selection-highlight-painting-order.txt+++ b/Tests/LibWeb/Text/expected/display_list/selection-highlight-painting-order.txt@@ -6,16 +6,16 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintTextShadow@s1/e0 font_id=font1 glyphs=1 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(4, 5, 6)}] shadows_bounding_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36] owner=BlockContainer<P>#target phase=foreground-PaintTextShadow@s1/e0 font_id=font1 glyphs=3 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(4, 5, 6)}] shadows_bounding_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36] owner=BlockContainer<P>#target phase=foreground-PaintTextShadow@s1/e0 font_id=font1 glyphs=1 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(4, 5, 6)}] shadows_bounding_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36] owner=BlockContainer<P>#target phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[0,20 56x20] glyph_bounding_rect=[0,20 61x18] translation=[0,36] color=rgb(1, 2, 3) inline_clips=[clip=[0,20 12x18]] owner=BlockContainer<P>#target phase=foreground+PaintTextShadow@s1/e0 font_id=font1 glyphs=1 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(4, 5, 6)}] shadows_bounding_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36] text="a" owner=BlockContainer<P>#target phase=foreground+PaintTextShadow@s1/e0 font_id=font1 glyphs=3 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(4, 5, 6)}] shadows_bounding_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36] text="bcd" owner=BlockContainer<P>#target phase=foreground+PaintTextShadow@s1/e0 font_id=font1 glyphs=1 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(4, 5, 6)}] shadows_bounding_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36] text="e" owner=BlockContainer<P>#target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[0,20 56x20] glyph_bounding_rect=[0,20 61x18] translation=[0,36] color=rgb(1, 2, 3) inline_clips=[clip=[0,20 12x18]] text="a" owner=BlockContainer<P>#target phase=foregroundFillRect@s1/e0 rect=[0,38 12x2] color=rgb(7, 8, 9) owner=BlockContainer<P>#target phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[0,20 56x20] glyph_bounding_rect=[0,20 61x18] translation=[0,36] color=rgb(1, 2, 3) inline_clips=[clip=[44,20 11x18]] owner=BlockContainer<P>#target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[0,20 56x20] glyph_bounding_rect=[0,20 61x18] translation=[0,36] color=rgb(1, 2, 3) inline_clips=[clip=[44,20 11x18]] text="e" owner=BlockContainer<P>#target phase=foregroundFillRect@s1/e0 rect=[44,38 11x2] color=rgb(7, 8, 9) owner=BlockContainer<P>#target phase=foregroundFillRect@s1/e0 rect=[12,20 32x20] color=rgb(13, 14, 15) owner=BlockContainer<P>#target phase=foreground-PaintTextShadow@s1/e0 font_id=font1 glyphs=3 layers=[{offset=[4,4] rounded_offset=[4,4] color=rgb(16, 17, 18)}] shadows_bounding_rect=[4,24 56x20] rect=[0,20 56x20] translation=[0,36] owner=BlockContainer<P>#target phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[0,20 56x20] glyph_bounding_rect=[0,20 61x18] translation=[0,36] color=rgb(10, 11, 12) inline_clips=[clip=[12,20 32x18]] owner=BlockContainer<P>#target phase=foreground+PaintTextShadow@s1/e0 font_id=font1 glyphs=3 layers=[{offset=[4,4] rounded_offset=[4,4] color=rgb(16, 17, 18)}] shadows_bounding_rect=[4,24 56x20] rect=[0,20 56x20] translation=[0,36] text="bcd" owner=BlockContainer<P>#target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[0,20 56x20] glyph_bounding_rect=[0,20 61x18] translation=[0,36] color=rgb(10, 11, 12) inline_clips=[clip=[12,20 32x18]] text="bcd" owner=BlockContainer<P>#target phase=foregroundFillRect@s1/e0 rect=[12,38 32x2] color=rgb(10, 11, 12) owner=BlockContainer<P>#target phase=foregroundFillRect@s1/e0 rect=[12,28 32x2] color=rgb(19, 20, 21) owner=BlockContainer<P>#target phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/selection-vertical-writing-mode.txt b/Tests/LibWeb/Text/expected/display_list/selection-vertical-writing-mode.txtindex 3d179452add..a350280db80 100644--- a/Tests/LibWeb/Text/expected/display_list/selection-vertical-writing-mode.txt+++ b/Tests/LibWeb/Text/expected/display_list/selection-vertical-writing-mode.txt@@ -6,8 +6,8 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[760,0 20x56] glyph_bounding_rect=[762,0 18x61] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical inline_clips=[clip=[762,0 18x12]] owner=BlockContainer<P>#target phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[760,0 20x56] glyph_bounding_rect=[762,0 18x61] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical inline_clips=[clip=[762,44 18x11]] owner=BlockContainer<P>#target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[760,0 20x56] glyph_bounding_rect=[762,0 18x61] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical inline_clips=[clip=[762,0 18x12]] text="a" owner=BlockContainer<P>#target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[760,0 20x56] glyph_bounding_rect=[762,0 18x61] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical inline_clips=[clip=[762,44 18x11]] text="e" owner=BlockContainer<P>#target phase=foregroundFillRect@s1/e0 rect=[760,12 20x32] color=rgb(1, 2, 3) owner=BlockContainer<P>#target phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[760,0 20x56] glyph_bounding_rect=[762,0 18x61] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical inline_clips=[clip=[762,12 18x32]] owner=BlockContainer<P>#target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[760,0 20x56] glyph_bounding_rect=[762,0 18x61] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical inline_clips=[clip=[762,12 18x32]] text="bcd" owner=BlockContainer<P>#target phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/sibling-overflow-containers.txt b/Tests/LibWeb/Text/expected/display_list/sibling-overflow-containers.txtindex d6dd3e29d7b..216502c6b59 100644--- a/Tests/LibWeb/Text/expected/display_list/sibling-overflow-containers.txt+++ b/Tests/LibWeb/Text/expected/display_list/sibling-overflow-containers.txt@@ -17,8 +17,8 @@ ScrollNode scroll_node_index=s3 parent_scroll_node_index=s0 scrollport_rect=[131DisplayList:FillRoundedRectRing@s1/e0 rect=[8,8 102x82] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 0) owner=BlockContainer<DIV>.scroll-box phase=borderFillRect@s2/c0/e0 rect=[9,9 150x120] color=rgb(240, 128, 128) owner=BlockContainer<DIV>.content.red phase=background-DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=13 rect=[9,9 110x16] glyph_bounding_rect=[9,10 111x15] translation=[9,22] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.content.red phase=foreground+DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=13 rect=[9,9 110x16] glyph_bounding_rect=[9,10 111x15] translation=[9,22] color=rgb(0, 0, 0) text="Left overflow" owner=BlockContainer<DIV>.content.red phase=foregroundFillRoundedRectRing@s1/e0 rect=[130,8 102x82] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 0) owner=BlockContainer<DIV>.scroll-box phase=borderFillRect@s3/c1/e0 rect=[131,9 150x120] color=rgb(144, 238, 144) owner=BlockContainer<DIV>.content.green phase=background-DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=14 rect=[131,9 119x16] glyph_bounding_rect=[131,10 120x15] translation=[131,22] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.content.green phase=foreground+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=14 rect=[131,9 119x16] glyph_bounding_rect=[131,10 120x15] translation=[131,22] color=rgb(0, 0, 0) text="Right overflow" owner=BlockContainer<DIV>.content.green phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/sibling-scrollables-in-fixed.txt b/Tests/LibWeb/Text/expected/display_list/sibling-scrollables-in-fixed.txtindex 65e6adedd08..a9ee619ce29 100644--- a/Tests/LibWeb/Text/expected/display_list/sibling-scrollables-in-fixed.txt+++ b/Tests/LibWeb/Text/expected/display_list/sibling-scrollables-in-fixed.txt@@ -27,7 +27,7 @@ CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s2 rect=[22,22 93.32FillRoundedRectRing@s0/e0 rect=[22,22 93x152] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255) owner=BlockContainer<DIV>.scroll-container phase=borderCompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[23,23 200x300] owner=BlockContainer<DIV>.scroll-content.red phase=scroll-metadataFillRect@s2/c0/e0 rect=[23,23 200x300] color=rgb(240, 128, 128) owner=BlockContainer<DIV>.scroll-content.red phase=background-DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=8 rect=[23,23 71x16] glyph_bounding_rect=[23,24 70x15] translation=[23,36] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.scroll-content.red phase=foreground+DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=8 rect=[23,23 71x16] glyph_bounding_rect=[23,24 70x15] translation=[23,36] color=rgb(0, 0, 0) text="Scroll A" owner=BlockContainer<DIV>.scroll-content.red phase=foregroundCompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[105,25 7x73] track_rect=[105,23 9x150] expanded_gutter_rect=[99,23 15x150] expanded_thumb_rect=[101,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 max_scroll_offset=150 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayPaintScrollBar@s0/e0 scroll_node_index=s2 thumb_rect=[105,25 7x73] track_rect=[105,23 9x150] expanded_gutter_rect=[99,23 15x150] scroll_size=0.4866666666666667 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayCompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[25,164 33x7] track_rect=[23,164 76x9] expanded_gutter_rect=[23,158 76x15] expanded_thumb_rect=[25,160 33x11] scroll_size=0.3617541337167505 expanded_scroll_size=0.3617541337167505 max_scroll_offset=108.671875 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) owner=BlockContainer<DIV>.scroll-container phase=overlay@@ -36,7 +36,7 @@ CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s3 rect=[125.328125,FillRoundedRectRing@s0/e0 rect=[125,22 94x152] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255) owner=BlockContainer<DIV>.scroll-container phase=borderCompositorWheelHitTestTarget@s3/c1/e0 target_scroll_node_index=s3 rect=[126.328125,23 200x300] owner=BlockContainer<DIV>.scroll-content.green phase=scroll-metadataFillRect@s3/c1/e0 rect=[126,23 200x300] color=rgb(144, 238, 144) owner=BlockContainer<DIV>.scroll-content.green phase=background-DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=8 rect=[126,23 67x16] glyph_bounding_rect=[126,24 70x15] translation=[126.328125,36] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.scroll-content.green phase=foreground+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=8 rect=[126,23 67x16] glyph_bounding_rect=[126,24 70x15] translation=[126.328125,36] color=rgb(0, 0, 0) text="Scroll B" owner=BlockContainer<DIV>.scroll-content.green phase=foregroundCompositorScrollbar@s0/e0 scroll_node_index=s3 thumb_rect=[209,25 7x73] track_rect=[209,23 9x150] expanded_gutter_rect=[203,23 15x150] expanded_thumb_rect=[205,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 max_scroll_offset=150 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayPaintScrollBar@s0/e0 scroll_node_index=s3 thumb_rect=[209,25 7x73] track_rect=[209,23 9x150] expanded_gutter_rect=[203,23 15x150] scroll_size=0.4866666666666667 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayCompositorScrollbar@s0/e0 scroll_node_index=s3 thumb_rect=[128,164 33x7] track_rect=[126,164 77x9] expanded_gutter_rect=[126,158 77x15] expanded_thumb_rect=[128,160 33x11] scroll_size=0.36180615473109 expanded_scroll_size=0.36180615473109 max_scroll_offset=108.65625 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) owner=BlockContainer<DIV>.scroll-container phase=overlay@@ -45,7 +45,7 @@ CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s4 rect=[228.67188,2FillRoundedRectRing@s0/e0 rect=[229,22 93x152] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255) owner=BlockContainer<DIV>.scroll-container phase=borderCompositorWheelHitTestTarget@s4/c2/e0 target_scroll_node_index=s4 rect=[229.67188,23 200x300] owner=BlockContainer<DIV>.scroll-content.blue phase=scroll-metadataFillRect@s4/c2/e0 rect=[230,23 200x300] color=rgb(173, 216, 230) owner=BlockContainer<DIV>.scroll-content.blue phase=background-DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=8 rect=[229,23 68x16] glyph_bounding_rect=[230,24 70x15] translation=[229.67188,36] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.scroll-content.blue phase=foreground+DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=8 rect=[229,23 68x16] glyph_bounding_rect=[230,24 70x15] translation=[229.67188,36] color=rgb(0, 0, 0) text="Scroll C" owner=BlockContainer<DIV>.scroll-content.blue phase=foregroundCompositorScrollbar@s0/e0 scroll_node_index=s4 thumb_rect=[312,25 7x73] track_rect=[312,23 9x150] expanded_gutter_rect=[306,23 15x150] expanded_thumb_rect=[308,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 max_scroll_offset=150 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayPaintScrollBar@s0/e0 scroll_node_index=s4 thumb_rect=[312,25 7x73] track_rect=[312,23 9x150] expanded_gutter_rect=[306,23 15x150] scroll_size=0.4866666666666667 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayCompositorScrollbar@s0/e0 scroll_node_index=s4 thumb_rect=[232,164 33x7] track_rect=[230,164 76x9] expanded_gutter_rect=[230,158 76x15] expanded_thumb_rect=[232,160 33x11] scroll_size=0.3617541337167505 expanded_scroll_size=0.3617541337167505 max_scroll_offset=108.671875 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) owner=BlockContainer<DIV>.scroll-container phase=overlaydiff --git a/Tests/LibWeb/Text/expected/display_list/sibling-transforms.txt b/Tests/LibWeb/Text/expected/display_list/sibling-transforms.txtindex e7715706c2e..c02e4ba5847 100644--- a/Tests/LibWeb/Text/expected/display_list/sibling-transforms.txt+++ b/Tests/LibWeb/Text/expected/display_list/sibling-transforms.txt@@ -9,7 +9,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s2/e0 rect=[8,8 80x80] color=rgb(255, 0, 0) owner=BlockContainer<DIV>.box.left phase=background-DrawGlyphRun@s2/e0 font_id=font1 glyphs=1 rect=[8,8 15x16] glyph_bounding_rect=[8,8 13x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.box.left phase=foreground+DrawGlyphRun@s2/e0 font_id=font1 glyphs=1 rect=[8,8 15x16] glyph_bounding_rect=[8,8 13x15] translation=[8,21] color=rgb(0, 0, 0) text="A" owner=BlockContainer<DIV>.box.left phase=foregroundFillRect@s3/e0 rect=[98,8 80x80] color=rgb(0, 0, 255) owner=BlockContainer<DIV>.box.right phase=background-DrawGlyphRun@s3/e0 font_id=font1 glyphs=1 rect=[98,8 10x16] glyph_bounding_rect=[98,8 13x15] translation=[98,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.box.right phase=foreground+DrawGlyphRun@s3/e0 font_id=font1 glyphs=1 rect=[98,8 10x16] glyph_bounding_rect=[98,8 13x15] translation=[98,21] color=rgb(0, 0, 0) text="B" owner=BlockContainer<DIV>.box.right phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/simple-overflow-hidden.txt b/Tests/LibWeb/Text/expected/display_list/simple-overflow-hidden.txtindex 0d5b80dbfe4..2cf35f1e933 100644--- a/Tests/LibWeb/Text/expected/display_list/simple-overflow-hidden.txt+++ b/Tests/LibWeb/Text/expected/display_list/simple-overflow-hidden.txt@@ -14,5 +14,5 @@ ScrollNode scroll_node_index=s2 parent_scroll_node_index=s0 scrollport_rect=[10,DisplayList:FillRoundedRectRing@s1/e0 rect=[8,8 204x104] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 0) owner=BlockContainer<DIV>.container phase=borderFillRect@s2/c0/e0 rect=[10,10 300x150] color=rgb(240, 128, 128) owner=BlockContainer<DIV>.inner-box phase=background-DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=4 rect=[10,10 38x16] glyph_bounding_rect=[10,10 44x15] translation=[10,23] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.inner-box phase=foreground+DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=4 rect=[10,10 38x16] glyph_bounding_rect=[10,10 44x15] translation=[10,23] color=rgb(0, 0, 0) text="Text" owner=BlockContainer<DIV>.inner-box phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/text-decoration-thin-lines-cover-whole-pixels.txt b/Tests/LibWeb/Text/expected/display_list/text-decoration-thin-lines-cover-whole-pixels.txtindex 5e99bec2739..b4f72ef2c97 100644--- a/Tests/LibWeb/Text/expected/display_list/text-decoration-thin-lines-cover-whole-pixels.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-decoration-thin-lines-cover-whole-pixels.txt@@ -6,11 +6,11 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,14 45x14] glyph_bounding_rect=[8,14 48x13] translation=[8,25] color=rgb(0, 0, 0) owner=BlockContainer<P> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,14 45x14] glyph_bounding_rect=[8,14 48x13] translation=[8,25] color=rgb(0, 0, 0) text="double" owner=BlockContainer<P> phase=text-fragmentFillRect@s1/e0 rect=[8,27 44x1] color=rgb(0, 0, 0) owner=BlockContainer<P> phase=text-fragmentFillRect@s1/e0 rect=[8,29 44x1] color=rgb(0, 0, 0) owner=BlockContainer<P> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,42 43x14] glyph_bounding_rect=[8,42 47x13] translation=[8,53] color=rgb(0, 0, 0) owner=BlockContainer<P> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,42 43x14] glyph_bounding_rect=[8,42 47x13] translation=[8,53] color=rgb(0, 0, 0) text="dotted" owner=BlockContainer<P> phase=text-fragmentStrokePath@s1/e0 dash_array=[1, 1] path_bounding_rect=[7.5,55 43x1] path_data=[path: M8 55.5L50 55.5] color=rgb(0, 0, 0) thickness=1 owner=BlockContainer<P> phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,70 46x14] glyph_bounding_rect=[8,70 51x13] translation=[8,81] color=rgb(0, 0, 0) owner=BlockContainer<P> phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,70 46x14] glyph_bounding_rect=[8,70 51x13] translation=[8,81] color=rgb(0, 0, 0) text="dashed" owner=BlockContainer<P> phase=text-fragmentStrokePath@s1/e0 dash_array=[2, 2] path_bounding_rect=[7.5,83 47x1] path_data=[path: M8 83.5L54 83.5] color=rgb(0, 0, 0) thickness=1 owner=BlockContainer<P> phase=text-fragmentdiff --git a/Tests/LibWeb/Text/expected/display_list/text-decoration-underline-partial-selection.txt b/Tests/LibWeb/Text/expected/display_list/text-decoration-underline-partial-selection.txtindex c7b17e189d0..3d5fff8763b 100644--- a/Tests/LibWeb/Text/expected/display_list/text-decoration-underline-partial-selection.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-decoration-underline-partial-selection.txt@@ -6,13 +6,13 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,-17 169x100] glyph_bounding_rect=[9,-15 191x91] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[9,-15 60x91]] owner=BlockContainer(anonymous) phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,-17 169x100] glyph_bounding_rect=[9,-15 191x91] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[9,-15 60x91]] text="x" owner=BlockContainer(anonymous) phase=text-fragmentFillRect@s1/e0 rect=[8,65 37x10] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=text-fragmentFillRect@s1/e0 rect=[57,65 10x10] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,-17 169x100] glyph_bounding_rect=[9,-15 191x91] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[116,-15 61x91]] owner=BlockContainer(anonymous) phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,-17 169x100] glyph_bounding_rect=[9,-15 191x91] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[116,-15 61x91]] text="x" owner=BlockContainer(anonymous) phase=text-fragmentFillRect@s1/e0 rect=[116,65 37x10] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=text-fragmentFillRect@s1/e0 rect=[165,65 12x10] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=text-fragmentFillRect@s1/e0 rect=[69,-17 47x100] color=rgba(101, 2, 0, 0.8) owner=BlockContainer(anonymous) phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,-17 169x100] glyph_bounding_rect=[9,-15 191x91] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[69,-15 47x91]] owner=BlockContainer(anonymous) phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,-17 169x100] glyph_bounding_rect=[9,-15 191x91] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[69,-15 47x91]] text="g" owner=BlockContainer(anonymous) phase=text-fragmentFillRect@s1/e0 rect=[109,65 7x10] color=rgb(0, 0, 0) owner=BlockContainer(anonymous) phase=text-fragmentdiff --git a/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txt b/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txtindex 2f19c176da2..64317ad2b5a 100644--- a/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txt@@ -10,6 +10,6 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c1/e0 rect=[8,11 23x13] color=rgba(101, 2, 0, 0.8) owner=BlockContainer<DIV> phase=foreground-DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=3 rect=[8,11 23x13] glyph_bounding_rect=[8,11 26x12] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=3 rect=[8,11 23x13] glyph_bounding_rect=[8,11 26x12] translation=[8,21] color=rgb(0, 0, 0) text="abc" owner=BlockContainer<DIV> phase=foregroundFillRoundedRectRing@s1/e0 rect=[6,9 160x17] corner_radii=[8x8,8x8,8x8,8x8] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextInputBox<INPUT>#input phase=outlinediff --git a/Tests/LibWeb/Text/expected/display_list/text-shadow-multiple-layers.txt b/Tests/LibWeb/Text/expected/display_list/text-shadow-multiple-layers.txtindex a424172513d..2ead60fce02 100644--- a/Tests/LibWeb/Text/expected/display_list/text-shadow-multiple-layers.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-shadow-multiple-layers.txt@@ -6,6 +6,6 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintTextShadow@s1/e0 font_id=font1 glyphs=7 layers=[{blur_radius=4 color=rgb(0, 0, 0)}, {offset=[-1,-1] rounded_offset=[-1,-1] color=rgba(45, 45, 45, 0.6)}, {offset=[1,1] rounded_offset=[1,1] color=rgba(45, 45, 45, 0.6)}, {offset=[-1,0] rounded_offset=[-1,0] color=rgba(0, 0, 0, 0.5)}, {offset=[1,0] rounded_offset=[1,0] color=rgba(0, 0, 0, 0.5)}] shadows_bounding_rect=[-8,-8 100x36] rect=[0,0 84x20] translation=[0,16] owner=BlockContainer<P> phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[0,0 84x20] glyph_bounding_rect=[0,0 88x18] translation=[0,16] color=rgb(255, 255, 255) owner=BlockContainer<P> phase=foreground+PaintTextShadow@s1/e0 font_id=font1 glyphs=7 layers=[{blur_radius=4 color=rgb(0, 0, 0)}, {offset=[-1,-1] rounded_offset=[-1,-1] color=rgba(45, 45, 45, 0.6)}, {offset=[1,1] rounded_offset=[1,1] color=rgba(45, 45, 45, 0.6)}, {offset=[-1,0] rounded_offset=[-1,0] color=rgba(0, 0, 0, 0.5)}, {offset=[1,0] rounded_offset=[1,0] color=rgba(0, 0, 0, 0.5)}] shadows_bounding_rect=[-8,-8 100x36] rect=[0,0 84x20] translation=[0,16] text="Joensuu" owner=BlockContainer<P> phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[0,0 84x20] glyph_bounding_rect=[0,0 88x18] translation=[0,16] color=rgb(255, 255, 255) text="Joensuu" owner=BlockContainer<P> phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/text-shadow-vertical-writing-mode.txt b/Tests/LibWeb/Text/expected/display_list/text-shadow-vertical-writing-mode.txtindex 17a60d405fe..109ec1b2b27 100644--- a/Tests/LibWeb/Text/expected/display_list/text-shadow-vertical-writing-mode.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-shadow-vertical-writing-mode.txt@@ -6,6 +6,6 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintTextShadow@s1/e0 font_id=font1 glyphs=3 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(255, 0, 0)}] shadows_bounding_rect=[762,2 20x35] rect=[760,0 20x35] translation=[760,16] orientation=Vertical owner=BlockContainer<P> phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[760,0 20x35] glyph_bounding_rect=[762,0 18x40] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical owner=BlockContainer<P> phase=foreground+PaintTextShadow@s1/e0 font_id=font1 glyphs=3 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(255, 0, 0)}] shadows_bounding_rect=[762,2 20x35] rect=[760,0 20x35] translation=[760,16] orientation=Vertical text="abc" owner=BlockContainer<P> phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[760,0 20x35] glyph_bounding_rect=[762,0 18x40] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical text="abc" owner=BlockContainer<P> phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt b/Tests/LibWeb/Text/expected/display_list/textarea-caret.txtindex b333956a5eb..8f7ca7eda76 100644--- a/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRectWithRoundedCorners@s1/e0 rect=[8,8 106x34] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4] owner=TextAreaBox<TEXTAREA> phase=backgroundFillRoundedRectRing@s1/e0 rect=[8,8 106x34] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118) owner=TextAreaBox<TEXTAREA> phase=border-DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=5 rect=[11,11 31x14] glyph_bounding_rect=[11,12 33x12] translation=[11,22] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=foreground+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=5 rect=[11,11 31x14] glyph_bounding_rect=[11,12 33x12] translation=[11,22] color=rgb(0, 0, 0) text="hello" owner=BlockContainer<DIV> phase=foregroundPaintCaret@s1/c0/e0 rect=[11,11 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1 owner=BlockContainer<DIV> phase=foregroundFillRoundedRectRing@s1/e0 rect=[6,6 110x38] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233) owner=TextAreaBox<TEXTAREA> phase=outlineDrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[109,39] to=[111,37] thickness=1 owner=TextAreaBox<TEXTAREA> phase=overlaydiff --git a/Tests/LibWeb/Text/expected/display_list/three-way-branch.txt b/Tests/LibWeb/Text/expected/display_list/three-way-branch.txtindex 8ec2991dfe1..153d3ca0fc8 100644--- a/Tests/LibWeb/Text/expected/display_list/three-way-branch.txt+++ b/Tests/LibWeb/Text/expected/display_list/three-way-branch.txt@@ -10,9 +10,9 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s2/e0 rect=[8,8 60x60] color=rgb(255, 0, 0) owner=BlockContainer<DIV>.box.a phase=background-DrawGlyphRun@s2/e0 font_id=font1 glyphs=1 rect=[8,8 7x16] glyph_bounding_rect=[8,8 13x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.box.a phase=foreground+DrawGlyphRun@s2/e0 font_id=font1 glyphs=1 rect=[8,8 7x16] glyph_bounding_rect=[8,8 13x15] translation=[8,21] color=rgb(0, 0, 0) text="1" owner=BlockContainer<DIV>.box.a phase=foregroundFillRect@s3/e0 rect=[73,8 60x60] color=rgb(0, 128, 0) owner=BlockContainer<DIV>.box.b phase=background-DrawGlyphRun@s3/e0 font_id=font1 glyphs=1 rect=[73,8 9x16] glyph_bounding_rect=[73,8 13x15] translation=[73,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.box.b phase=foreground+DrawGlyphRun@s3/e0 font_id=font1 glyphs=1 rect=[73,8 9x16] glyph_bounding_rect=[73,8 13x15] translation=[73,21] color=rgb(0, 0, 0) text="2" owner=BlockContainer<DIV>.box.b phase=foregroundFillRect@s4/e0 rect=[138,8 60x60] color=rgb(0, 0, 255) owner=BlockContainer<DIV>.box.c phase=background-DrawGlyphRun@s4/e0 font_id=font1 glyphs=1 rect=[138,8 10x16] glyph_bounding_rect=[138,8 13x15] translation=[138,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.box.c phase=foreground+DrawGlyphRun@s4/e0 font_id=font1 glyphs=1 rect=[138,8 10x16] glyph_bounding_rect=[138,8 13x15] translation=[138,21] color=rgb(0, 0, 0) text="3" owner=BlockContainer<DIV>.box.c phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/transform-basic.txt b/Tests/LibWeb/Text/expected/display_list/transform-basic.txtindex 880cea6a07a..3ec3d1b6ad5 100644--- a/Tests/LibWeb/Text/expected/display_list/transform-basic.txt+++ b/Tests/LibWeb/Text/expected/display_list/transform-basic.txt@@ -8,5 +8,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s2/e0 rect=[8,8 100x100] color=rgb(0, 0, 255) owner=BlockContainer<DIV>.box phase=background-DrawGlyphRun@s2/e0 font_id=font1 glyphs=4 rect=[8,8 38x16] glyph_bounding_rect=[8,8 44x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.box phase=foreground+DrawGlyphRun@s2/e0 font_id=font1 glyphs=4 rect=[8,8 38x16] glyph_bounding_rect=[8,8 44x15] translation=[8,21] color=rgb(0, 0, 0) text="Text" owner=BlockContainer<DIV>.box phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/transform-nested.txt b/Tests/LibWeb/Text/expected/display_list/transform-nested.txtindex a5c4ea22ec1..f043c7a9d19 100644--- a/Tests/LibWeb/Text/expected/display_list/transform-nested.txt+++ b/Tests/LibWeb/Text/expected/display_list/transform-nested.txt@@ -10,5 +10,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s2/e0 rect=[8,8 200x200] color=rgb(173, 216, 230) owner=BlockContainer<DIV>.outer phase=backgroundFillRect@s3/e0 rect=[8,8 100x100] color=rgb(255, 127, 80) owner=BlockContainer<DIV>.inner phase=background-DrawGlyphRun@s3/e0 font_id=font1 glyphs=6 rect=[8,8 52x16] glyph_bounding_rect=[8,8 57x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.inner phase=foreground+DrawGlyphRun@s3/e0 font_id=font1 glyphs=6 rect=[8,8 52x16] glyph_bounding_rect=[8,8 57x15] translation=[8,21] color=rgb(0, 0, 0) text="Nested" owner=BlockContainer<DIV>.inner phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/display_list/transform-with-clip.txt b/Tests/LibWeb/Text/expected/display_list/transform-with-clip.txtindex 79a39e1d225..2c820978615 100644--- a/Tests/LibWeb/Text/expected/display_list/transform-with-clip.txt+++ b/Tests/LibWeb/Text/expected/display_list/transform-with-clip.txt@@ -15,5 +15,5 @@ ScrollNode scroll_node_index=s2 parent_scroll_node_index=s0 scrollport_rect=[10,DisplayList:FillRoundedRectRing@s1/e0 rect=[8,8 154x154] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 0) owner=BlockContainer<DIV>.container phase=borderFillRect@s3/c0/e0 rect=[10,10 200x200] color=rgb(144, 238, 144) owner=BlockContainer<DIV>.transformed phase=background-DrawGlyphRun@s3/c0/e0 font_id=font1 glyphs=21 rect=[10,10 185x16] glyph_bounding_rect=[10,10 190x15] translation=[10,23] color=rgb(0, 0, 0) owner=BlockContainer<DIV>.transformed phase=foreground+DrawGlyphRun@s3/c0/e0 font_id=font1 glyphs=21 rect=[10,10 185x16] glyph_bounding_rect=[10,10 190x15] translation=[10,23] color=rgb(0, 0, 0) text="Clipped + Transformed" owner=BlockContainer<DIV>.transformed phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/text-transform-contextual-selection-offset-mapping.txt b/Tests/LibWeb/Text/expected/text-transform-contextual-selection-offset-mapping.txtindex 62778ca613e..09d980b94f2 100644--- a/Tests/LibWeb/Text/expected/text-transform-contextual-selection-offset-mapping.txt+++ b/Tests/LibWeb/Text/expected/text-transform-contextual-selection-offset-mapping.txt@@ -6,8 +6,8 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,16 55x16] glyph_bounding_rect=[8,-8 59x39] translation=[8,29] color=rgb(0, 0, 0) owner=BlockContainer<P>#selection-target phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,32 35x16] glyph_bounding_rect=[8,32 38x15] translation=[8,45] color=rgb(0, 0, 0) owner=BlockContainer<P>#selection-target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,16 55x16] glyph_bounding_rect=[8,-8 59x39] translation=[8,29] color=rgb(0, 0, 0) text="i̇́ alpha" owner=BlockContainer<P>#selection-target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,32 35x16] glyph_bounding_rect=[8,32 38x15] translation=[8,45] color=rgb(0, 0, 0) text="beta" owner=BlockContainer<P>#selection-target phase=foregroundFillRect@s1/e0 rect=[8,48 51x16] color=rgb(1, 2, 3) owner=BlockContainer<P>#selection-target phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,48 51x16] glyph_bounding_rect=[8,48 55x15] translation=[8,61] color=rgb(0, 0, 0) owner=BlockContainer<P>#selection-target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,48 51x16] glyph_bounding_rect=[8,48 55x15] translation=[8,61] color=rgb(0, 0, 0) text="gamma" owner=BlockContainer<P>#selection-target phase=foregrounddiff --git a/Tests/LibWeb/Text/expected/text-transform-selection-offset-mapping.txt b/Tests/LibWeb/Text/expected/text-transform-selection-offset-mapping.txtindex 930b5167185..f946b97cf43 100644--- a/Tests/LibWeb/Text/expected/text-transform-selection-offset-mapping.txt+++ b/Tests/LibWeb/Text/expected/text-transform-selection-offset-mapping.txt@@ -7,9 +7,9 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,8 24x16] color=rgb(1, 2, 3) owner=BlockContainer<P>#selection-target phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,8 24x16] glyph_bounding_rect=[8,8 25x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<P>#selection-target phase=foreground-DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,40 22x16] glyph_bounding_rect=[8,40 25x15] translation=[8,53] color=rgb(4, 5, 6) owner=BlockContainer<P>#capitalized phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[29,40 28x16] glyph_bounding_rect=[29,40 31x15] translation=[29.3125,53] color=rgb(0, 0, 0) owner=BlockContainer<P>#capitalized phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,8 24x16] glyph_bounding_rect=[8,8 25x15] translation=[8,21] color=rgb(0, 0, 0) text="SS" owner=BlockContainer<P>#selection-target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,40 22x16] glyph_bounding_rect=[8,40 25x15] translation=[8,53] color=rgb(4, 5, 6) text="Ss" owner=BlockContainer<P>#capitalized phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[29,40 28x16] glyph_bounding_rect=[29,40 31x15] translation=[29.3125,53] color=rgb(0, 0, 0) text="ello" owner=BlockContainer<P>#capitalized phase=text-fragmentAccumulatedVisualContext Tree:spatial:@@ -19,10 +19,10 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,8 24x16] glyph_bounding_rect=[8,8 25x15] translation=[8,21] color=rgb(0, 0, 0) owner=BlockContainer<P>#selection-target phase=foreground+DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,8 24x16] glyph_bounding_rect=[8,8 25x15] translation=[8,21] color=rgb(0, 0, 0) text="SS" owner=BlockContainer<P>#selection-target phase=foregroundFillRect@s1/e0 rect=[8,40 21x16] color=rgb(1, 2, 3) owner=BlockContainer<P>#capitalized phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,40 22x16] glyph_bounding_rect=[8,40 25x15] translation=[8,53] color=rgb(4, 5, 6) owner=BlockContainer<P>#capitalized phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[29,40 28x16] glyph_bounding_rect=[29,40 31x15] translation=[29.3125,53] color=rgb(0, 0, 0) inline_clips=[clip=[38,40 19x15]] owner=BlockContainer<P>#capitalized phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,40 22x16] glyph_bounding_rect=[8,40 25x15] translation=[8,53] color=rgb(4, 5, 6) text="Ss" owner=BlockContainer<P>#capitalized phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[29,40 28x16] glyph_bounding_rect=[29,40 31x15] translation=[29.3125,53] color=rgb(0, 0, 0) inline_clips=[clip=[38,40 19x15]] text="llo" owner=BlockContainer<P>#capitalized phase=text-fragmentFillRect@s1/e0 rect=[29,40 9x16] color=rgb(1, 2, 3) owner=BlockContainer<P>#capitalized phase=text-fragment-DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[29,40 28x16] glyph_bounding_rect=[29,40 31x15] translation=[29.3125,53] color=rgb(0, 0, 0) inline_clips=[clip=[29,40 9x15]] owner=BlockContainer<P>#capitalized phase=text-fragment+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[29,40 28x16] glyph_bounding_rect=[29,40 31x15] translation=[29.3125,53] color=rgb(0, 0, 0) inline_clips=[clip=[29,40 9x15]] text="e" owner=BlockContainer<P>#capitalized phase=text-fragmentdiff --git a/Tests/LibWeb/Text/input/css/placeholder-css-animation.html b/Tests/LibWeb/Text/input/css/placeholder-css-animation.htmlindex 21ed525495b..352b95f65b8 100644--- a/Tests/LibWeb/Text/input/css/placeholder-css-animation.html+++ b/Tests/LibWeb/Text/input/css/placeholder-css-animation.html@@ -18,7 +18,7 @@<script>test(() => {const dumpTransforms = () =>- println(internals.dumpDisplayList().split("\n").filter(line => line.includes("transform=")).join("\n"));+ println(internals.dumpDisplayList().split("\n").filter(line => /^\s+\[s\d+\] transform=/.test(line)).join("\n"));dumpTransforms();// Restyling the placeholder again keeps the animation where it was.diff --git a/Tests/LibWeb/Text/input/display_list/glyph-run-text-and-fonts.html b/Tests/LibWeb/Text/input/display_list/glyph-run-text-and-fonts.htmlnew file mode 100644index 00000000000..bfb96a21960--- /dev/null+++ b/Tests/LibWeb/Text/input/display_list/glyph-run-text-and-fonts.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<script src="../include.js"></script>+<style>+ div { white-space: pre; }+</style>+<div>short</div>+<div>"quoted" back\slash</div>+<div>a line of text that runs well past forty characters before it ends</div>+<div style="text-shadow: 1px 1px red">shadowed</div>+<script>+ test(() => {+ const glyphRunLines = dump => dump.split("\n").filter(line => line.startsWith("DrawGlyphRun") || line.startsWith("PaintTextShadow"));+ const lines = glyphRunLines(internals.dumpDisplayList());+ for (const line of lines)+ println(line.slice(0, line.indexOf(" owner=")).replace(/.* text=/, "text="));+ const withoutText = glyphRunLines(internals.dumpDisplayList({ text: false }));+ println(`without text, no glyph run names its text: ${withoutText.every(line => !line.includes(" text="))}`);+ const withFonts = glyphRunLines(internals.dumpDisplayList({ fonts: true }));+ println(`with fonts, every glyph run names its font: ${withFonts.every(line => / font="[^"]+ [\d.]+px \d+"/.test(line))}`);+ });+</script>diff --git a/Tests/LibWeb/Text/input/display_list/node-names-follow-print-order.html b/Tests/LibWeb/Text/input/display_list/node-names-follow-print-order.htmlindex 91d989be4c4..092401934a6 100644--- a/Tests/LibWeb/Text/input/display_list/node-names-follow-print-order.html+++ b/Tests/LibWeb/Text/input/display_list/node-names-follow-print-order.html@@ -14,7 +14,7 @@<div style="transform: translateX(3px); overflow: hidden"><div class="painted"></div></div><script>test(() => {- const nodeLines = dump => dump.split("\n").filter(line => line.includes("translate") || line.includes("transform=") || line.includes("clip=") || line.startsWith("FillRect"));+ const nodeLines = dump => dump.split("\n").filter(line => /^\s+\[[sc]\d+.*\] (transform|clip)=/.test(line) || line.startsWith("FillRect"));println("Named in print order:");println(nodeLines(internals.dumpDisplayList()).join("\n"));println("Named by index:");