Truly independent web browser
LibWeb: Keep styles where a media flip moves only rules that lose
Andreas Kling1b31ab7501a9
diff --git a/Libraries/LibWeb/Rust/src/css/style/pipeline/differential_tests.rs b/Libraries/LibWeb/Rust/src/css/style/pipeline/differential_tests.rsindex cdb15242ff8..58a41cceb5d 100644--- a/Libraries/LibWeb/Rust/src/css/style/pipeline/differential_tests.rs+++ b/Libraries/LibWeb/Rust/src/css/style/pipeline/differential_tests.rs@@ -11,6 +11,7 @@use super::super::bridge::element_adjustment_fact;use super::super::*;use super::counters::StyleCounter;+use super::rules::SEGMENT_MIN_ENTRIES;use super::test_support::{add_class, add_feature, add_rules, add_sheet, add_user_agent_sheet, allocate_nodes, assert_live_matches_cold, atom,attach_shadow_tree, describe, document_with_children, hosted_engine, linear_document, nested_document, relations,@@ -91,6 +92,36 @@ fn declaration_of(index: usize) -> String {format!("{declaration}{important}")}+/// The style rule of `index` for the workload of rules that mostly lose to one another: selectors reaching+/// across siblings, over a few properties, written as longhands, logically, as shorthands and to roll back.+fn losing_rule_source(index: usize) -> String {+ let a = class_name(index % CLASSES);+ let b = class_name((index + 3) % CLASSES);+ let selector = match index % 7 {+ 0 => format!(".{a}"),+ 1 => format!(".{a}.{b}"),+ 2 => format!(".{a} + .{b}"),+ 3 => format!(".{a} ~ .{b}"),+ 4 => format!(".{a} .{b}"),+ 5 => format!(".{a}:not(.{b})"),+ _ => "div".to_owned(),+ };+ let value = index + 1;+ let declaration = match index % 11 {+ 0 | 1 => format!("color: rgb({value}, 0, 0)"),+ 2 => format!("color: rgb({value}, 0, 0) !important"),+ 3 => "color: revert-layer".to_owned(),+ 4 => "color: var(--undefined, revert)".to_owned(),+ 5 => format!("margin-left: {value}px"),+ 6 => format!("margin-inline-start: {value}px"),+ 7 => format!("margin: {value}px"),+ 8 => format!("color: rgb({value}, 0, 0); margin-left: {value}px"),+ 9 => "all: unset".to_owned(),+ _ => format!("font-size: {value}px; width: 2em"),+ };+ format!("{selector} {{ {declaration}; }}")+}+/// The style rule of `index` for the `:has()` workload: one of twelve shapes of `:has()` over/// three of the classes, whose arguments go down, to a child, or sideways from the anchor, as a/// subject or a non-subject compound, nested in `:is()` and `:not()`.@@ -501,6 +532,13 @@ fn seeded_transactions_restyle_live_as_a_cold_pass_does() {}}+#[test]+fn seeded_transactions_restyle_rules_that_lose_as_a_cold_pass_does() {+ for seed_index in 0..seeds() {+ run_seed(seed_index, losing_rule_source);+ }+}+#[test]fn seeded_transactions_restyle_has_anchors_as_a_cold_pass_does() {for seed_index in 0..seeds() {@@ -623,6 +661,77 @@ fn seeded_transactions_restyle_nested_combinators_alike_on_one_thread_and_on_sev}}+#[test]+fn a_media_flip_keeps_styles_by_what_the_rules_that_flipped_declare_however_many_of_their_sheet_flipped() {+ // NB: The sheet has enough selectors for a segment. Where every rule of it flips the segment is let+ // go of, and where a few do its entries die in place.+ for flipped_rules in [SEGMENT_MIN_ENTRIES, 2] {+ let (mut engine, nodes) = linear_document();+ let staying = add_sheet(&mut engine, TreeScopeID::DOCUMENT);+ // NB: The first rule of the document matches nothing, and declares what the rule that stays does.+ add_rules(+ &mut engine,+ staying,+ ".first-rule { color: rgb(9, 9, 9); }\n.stays.stays { color: rgb(1, 1, 1); }",+ );+ let flipping = add_sheet(&mut engine, TreeScopeID::DOCUMENT);+ let mut source =+ String::from(".loses { color: rgb(2, 2, 2); }\n.decides { background-color: rgb(2, 2, 2); }\n");+ for index in 2..SEGMENT_MIN_ENTRIES {+ source += &format!(".filler-{index} {{ width: 1px; }}\n");+ }+ let rules = add_rules(&mut engine, flipping, &source);+ for (node, class) in [(nodes[1], "loses"), (nodes[2], "decides")] {+ add_class(&mut engine, node, "stays");+ add_class(&mut engine, node, class);+ }+ start_live(&mut engine, nodes[0]);+ assert_live_matches_cold(&mut engine, nodes[0]);++ for &rule in &rules[..flipped_rules] {+ engine.set_rule_conditions_hold(rule, false);+ }+ run_style_update(&mut engine, nodes[0]);+ let styled = styled_by_a_targeted_pass(&mut engine, nodes[0]);+ assert!(!styled.contains(&nodes[1]), "with {flipped_rules} rules flipping");+ assert!(styled.contains(&nodes[2]), "with {flipped_rules} rules flipping");+ assert_live_matches_cold(&mut engine, nodes[0]);+ }+}++#[test]+fn a_media_flip_keeps_styles_only_as_far_as_what_decides_them_is_worth_reading() {+ // NB: Each rule that flips is looked for among the rules that stay, from the last down to its winner.+ for (flipped_rules, keeps) in [(4, true), (256, false)] {+ let (mut engine, nodes) = linear_document();+ let sheet = add_sheet(&mut engine, TreeScopeID::DOCUMENT);+ let mut source = String::new();+ for index in 0..flipped_rules {+ source += &format!(".target {{ color: rgb({}, 0, 0); }}\n", index % 256);+ }+ source += ".target { color: rgb(1, 1, 1); }\n";+ for index in 0..flipped_rules {+ source += &format!(".target {{ margin-left: {index}px; }}\n");+ }+ let rules = add_rules(&mut engine, sheet, &source);+ add_class(&mut engine, nodes[1], "target");+ start_live(&mut engine, nodes[0]);+ assert_live_matches_cold(&mut engine, nodes[0]);++ for &rule in &rules[..flipped_rules] {+ engine.set_rule_conditions_hold(rule, false);+ }+ run_style_update(&mut engine, nodes[0]);+ let styled = styled_by_a_targeted_pass(&mut engine, nodes[0]);+ assert_eq!(+ styled.contains(&nodes[1]),+ !keeps,+ "with {flipped_rules} rules flipping"+ );+ assert_live_matches_cold(&mut engine, nodes[0]);+ }+}+#[test]fn a_move_within_a_parent_after_a_matching_sibling_restyles_it_as_a_cold_pass_does() {let (mut engine, nodes) = linear_document();diff --git a/Libraries/LibWeb/Rust/src/css/style/pipeline/live.rs b/Libraries/LibWeb/Rust/src/css/style/pipeline/live.rsindex 529d9063265..7ae303d7c8b 100644--- a/Libraries/LibWeb/Rust/src/css/style/pipeline/live.rs+++ b/Libraries/LibWeb/Rust/src/css/style/pipeline/live.rs@@ -93,6 +93,8 @@ pub(in super::super) struct Live {pending_index_rebuild: bool,/// The rules changed since the last pass, which the rule index indexes again.changed_rules: HashSet<RuleID>,+ /// Those of `changed_rules` where more than their conditions moved.+ changed_rule_contents: HashSet<RuleID>,/// The sheets attached, detached, enabled or disabled since the last pass, or whose/// conditions moved, which the rule index indexes again where they started or stopped/// deciding.@@ -842,6 +844,8 @@ impl Live {self.note_custom_functions_moved(state);}self.changed_rules.extend(changes.rules.iter().copied());+ self.changed_rule_contents+ .extend(changes.rules_with_moved_contents.iter().copied());self.changed_sheets.extend(changes.sheets.iter().copied());self.reordered_scopes.extend(changes.reordered_scopes.iter().copied());self.layered_scopes.extend(changes.layered_scopes.iter().copied());@@ -1929,6 +1933,7 @@ impl Live {let keyframes_moved = std::mem::take(&mut self.keyframes_moved);let keyframes_moved = (!keyframes_moved.is_empty()).then_some(keyframes_moved);let changed_rules = std::mem::take(&mut self.changed_rules);+ let changed_rule_contents = std::mem::take(&mut self.changed_rule_contents);let changed_sheets = std::mem::take(&mut self.changed_sheets);let reordered_scopes = std::mem::take(&mut self.reordered_scopes);let layered_scopes = std::mem::take(&mut self.layered_scopes);@@ -1943,6 +1948,7 @@ impl Live {state.process_rule_indexes(),&IndexChanges {rules: &changed_rules,+ rule_contents: &changed_rule_contents,sheets: &changed_sheets,reordered_scopes: &reordered_scopes,layered_scopes: &layered_scopes,@@ -1954,17 +1960,26 @@ impl Live {let hints = &mut self.hints;// NB: Entries numbered anew leave no entry to rematch an element for alone.let renumbers_entries = self.index.wants_compaction() || changes.user_agent_moved;- changes.for_each_restyled(state, &self.index, &self.records, &roots, |node, arrived| match arrived- .filter(|_| !renumbers_entries)- {- None => hints.add(node, RESTYLE_SELF),- Some(arrived) => {- hints.mark(node, RESTYLE_SELF | RECOMPUTE_SELF);- for matched in arrived {- hints.add_for(node, RESTYLE_SELF, matched.entry);+ let mut kept_styles: Vec<(StyleNodeID, super::records::MatchList)> = Vec::new();+ changes.for_each_restyled(+ state,+ &self.index,+ &self.records,+ &roots,+ |node, arrived| match arrived.filter(|_| !renumbers_entries) {+ None => hints.add(node, RESTYLE_SELF),+ Some(arrived) => {+ hints.mark(node, RESTYLE_SELF | RECOMPUTE_SELF);+ for matched in arrived {+ hints.add_for(node, RESTYLE_SELF, matched.entry);+ }}- }- });+ },+ |node, matches| kept_styles.push((node, matches)),+ );+ for (node, matches) in kept_styles {+ self.records.replace_matches(node, matches);+ }}// The elements a pass does not restyle keep their matches, but for those matching// an entry that died, which match again.@@ -3999,6 +4014,7 @@ impl StyleEngine {pending_everything: false,pending_index_rebuild: false,changed_rules: HashSet::default(),+ changed_rule_contents: HashSet::default(),changed_sheets: HashSet::default(),reordered_scopes: HashSet::default(),layered_scopes: HashSet::default(),diff --git a/Libraries/LibWeb/Rust/src/css/style/pipeline/records.rs b/Libraries/LibWeb/Rust/src/css/style/pipeline/records.rsindex 975091f58ae..3ed8535584a 100644--- a/Libraries/LibWeb/Rust/src/css/style/pipeline/records.rs+++ b/Libraries/LibWeb/Rust/src/css/style/pipeline/records.rs@@ -1464,6 +1464,13 @@ impl RetainedRecords {}}+ /// Have `node` hold `matches` in place of the entries it matched, where it holds a record.+ pub(super) fn replace_matches(&mut self, node: StyleNodeID, matches: MatchList) {+ if let Some(held) = self.slot_mut(node.element_slot()).and_then(|slot| slot.held.as_mut()) {+ held.matches = Some(matches);+ }+ }+/// Have `node` hold `installed` in place of its record at the address `own`, which holds what/// `installed` does, where it still holds that record.pub(super) fn adopt(&mut self, node: StyleNodeID, own: usize, installed: Arc<Record>) {diff --git a/Libraries/LibWeb/Rust/src/css/style/pipeline/rule_changes.rs b/Libraries/LibWeb/Rust/src/css/style/pipeline/rule_changes.rsindex 784c3b19fe8..5f30b38ceda 100644--- a/Libraries/LibWeb/Rust/src/css/style/pipeline/rule_changes.rs+++ b/Libraries/LibWeb/Rust/src/css/style/pipeline/rule_changes.rs@@ -14,8 +14,11 @@use super::super::*;use super::bloom::AncestorFilter;use super::matching::{ElementMatch, Matcher};-use super::records::RetainedRecords;-use super::rules::{RuleIndex, ScopeGroupID};+use super::records::{MatchList, RetainedRecords};+use super::rules::{BoundSegment, RuleIndex, ScopeGroupID};+use crate::css::property_metadata::{FIRST_LONGHAND_PROPERTY_ID, LAST_LONGHAND_PROPERTY_ID};+use smallvec::SmallVec;+use std::collections::hash_map::Entry;/// The entries of the rule index an update changed.#[derive(Default)]@@ -42,8 +45,16 @@ pub(super) struct RuleIndexChanges {/// The shadow trees that stopped deciding with the entries of one group, or started deciding/// with those of another that was there before.regrouped: Vec<Regrouped>,+ /// Whether the entries that died declared what their rules declare now, and those that stayed+ /// stand as they stood, which lets what they decide be told from their rules.+ conditions_moved_alone: bool,+ /// The segments the update let go of, which alone still tell what their entries were.+ pub(super) let_go: Vec<BoundSegment>,}+/// The list an element holding one list comes to hold as the given entries arrive, if it keeps its style.+type KeptLists<'a> = HashMap<(&'a [u32], SmallVec<[u32; 4]>), Option<MatchList>>;+/// A shadow tree whose sheets or layers moved, which decides with the entries of another group of/// trees: the elements that matched an entry of the group it left, or that match one of the/// group it joined, are restyled.@@ -79,11 +90,15 @@ struct Ranks {impl Ranks {fn of(entries: &super::rules::IndexEntries, id: u32) -> Self {- let placement = entries.placement(id as usize);+ Self::of_view(entries, entries.view(id as usize))+ }++ fn of_view(entries: &super::rules::IndexEntries, view: super::rules::EntryView<'_>) -> Self {+ let placement = entries.placement_of(view);Self {layer: placement.layer_rank,sheet: placement.sheet_rank,- rule: entries.view(id as usize).rule_rank(),+ rule: view.rule_rank(),}}}@@ -99,8 +114,9 @@ pub(super) fn note_moved(entries: &super::rules::IndexEntries, stayed: &[StayedE.iter().filter(|stayed| !important || entries.entry(stayed.id as usize).declares_important()).collect();- let now = |stayed: &StayedEntry| cascade_key(entries, stayed.id, Ranks::of(entries, stayed.id), important);- let before = |stayed: &StayedEntry| cascade_key(entries, stayed.id, stayed.ranks, important);+ let view = |stayed: &StayedEntry| entries.view(stayed.id as usize);+ let now = |stayed: &StayedEntry| cascade_key(entries, view(stayed), Ranks::of(entries, stayed.id), important);+ let before = |stayed: &StayedEntry| cascade_key(entries, view(stayed), stayed.ranks, important);order.sort_unstable_by_key(|stayed| (now(stayed), before(stayed)));let keys: Vec<_> = order.iter().map(|stayed| before(stayed)).collect();let kept = longest_ordered_run(&keys);@@ -122,6 +138,7 @@ impl RuleIndexChanges {added: &[u32],user_agent_moved: bool,regrouped: Vec<Regrouped>,+ conditions_moved_alone: bool,) -> Self {let mut before = vec![false; index.entries.len()];let mut scopes: Vec<TreeScopeID> = Vec::new();@@ -161,6 +178,8 @@ impl RuleIndexChanges {first_arrived_entry: added.iter().copied().min(),scopes,regrouped,+ conditions_moved_alone,+ let_go: Vec::new(),}}@@ -192,7 +211,8 @@ impl RuleIndexChanges {/// Visit each element under `roots` in the flat tree that the changes restyle, where `records`/// holds what the elements matched against the index before and `index` is the updated one,/// with the entries that arrived it matches, where those and what left its matches are all- /// that moved of them, and none where it has to be matched anew.+ /// that moved of them, and none where it has to be matched anew. An element where what moved+ /// of its matches decides nothing goes to `keep` instead, with the matches it has now.////// NB: No other entry's answer depends on the sheets: its selector and `@scope` levels are/// its own. What an entry that died matched leaves the element's matches as it is renumbered.@@ -203,6 +223,7 @@ impl RuleIndexChanges {records: &RetainedRecords,roots: &[StyleNodeID],mut visit: impl FnMut(StyleNodeID, Option<&[ElementMatch]>),+ mut keep: impl FnMut(StyleNodeID, MatchList),) {let mut matcher = Matcher::reaching(index, &self.arrived, state);// NB: The arrived entries are few, and each is evaluated where an element reaches its@@ -212,7 +233,11 @@ impl RuleIndexChanges {let mut matches = Vec::new();let left_any = self.before.iter().any(|&changed| changed);// NB: Match lists are interned, and a run of alike elements holds one of them.- let mut last_list: Option<(&super::records::MatchList, bool)> = None;+ let mut last_list: Option<(&MatchList, bool)> = None;+ // NB: Entries numbered anew leave no list of them to keep.+ let keeps_styles = self.conditions_moved_alone && !index.wants_compaction();+ // NB: Elements alike hold one list, and what arrives for them is alike too.+ let mut kept_lists: KeptLists<'_> = HashMap::default();// NB: An element sharing no bit with these reaches no bucket of the entries that arrived,// and so matches none of them. Elements compare to selectors folded where ids and// classes do, which the bits are not.@@ -253,9 +278,24 @@ impl RuleIndexChanges {continue;}}- if matched_one || !matches.is_empty() {- visit(node, Some(&matches));+ if !matched_one && matches.is_empty() {+ continue;+ }+ if let Some(matched) = records.matches_of(node).filter(|_| keeps_styles) {+ let arrived: SmallVec<[u32; 4]> = matches.iter().map(|arrived| arrived.entry).collect();+ let list = match kept_lists.entry((&matched[..], arrived)) {+ Entry::Occupied(found) => found.into_mut(),+ Entry::Vacant(vacant) => {+ let list = self.matches_keeping_style(state, index, matched, &vacant.key().1);+ vacant.insert(list)+ }+ };+ if let Some(list) = list {+ keep(node, list.clone());+ continue;+ }}+ visit(node, Some(&matches));}}for regrouped in &self.regrouped {@@ -263,6 +303,30 @@ impl RuleIndexChanges {}}+ /// The entries an element holding the record of `matched` matches, where those that died left+ /// it and `arrived` joined it, if its style stays as it is for all of them.+ fn matches_keeping_style(+ &self,+ state: &RetainedState,+ index: &RuleIndex,+ matched: &[u32],+ arrived: &[u32],+ ) -> Option<MatchList> {+ let stayed: SmallVec<[u32; 16]> = matched+ .iter()+ .copied()+ .filter(|&entry| !self.before[entry as usize])+ .collect();+ let left = matched.iter().copied().filter(|&entry| self.before[entry as usize]);+ if !all_lose_every_longhand(state, index, &self.let_go, left.chain(arrived.iter().copied()), &stayed) {+ return None;+ }+ let mut now: Vec<u32> = stayed.iter().chain(arrived).copied().collect();+ now.sort_unstable();+ now.dedup();+ Some(std::sync::Arc::new(now.into_boxed_slice()))+ }+/// Visit each element the shadow tree of `regrouped` reaches whose matches can have moved with/// the group its entries are of: one that matched an entry of the group it left, or that/// matches one of the group it joined.@@ -323,17 +387,105 @@ impl RuleIndexChanges {}}+/// How many matches and declarations a check of what moved of an element's matches reads at most. Past+/// that the check costs more than the cascade it would save, and the element is restyled.+const MOST_READ_FOR_KEEPING_A_STYLE: usize = 1 << 14;++/// Whether an element matching the entries of `stayed` cascades alike with `moved` and without them, as+/// [`loses_every_longhand`] says of each, as far as is worth reading to tell. The update of the rule+/// index let go of the segments `let_go`, if any.+pub(super) fn all_lose_every_longhand(+ state: &RetainedState,+ index: &RuleIndex,+ let_go: &[BoundSegment],+ moved: impl IntoIterator<Item = u32>,+ stayed: &[u32],+) -> bool {+ let mut reads_left = MOST_READ_FOR_KEEPING_A_STYLE;+ moved+ .into_iter()+ .all(|entry| loses_every_longhand(state, index, let_go, entry, stayed, &mut reads_left))+}++/// Whether an element matching the entries of `stayed` cascades alike with `entry` and without it:+/// each longhand it declares goes to an entry of `stayed` above it, and it declares nothing else.+/// Answers no once it has read all of `reads_left`.+///+/// NB: A `revert` or `revert-layer` that rolls back past the entry above, as declared or substituted,+/// rolls back past this one in the layer they share too, which then decides nothing either.+fn loses_every_longhand(+ state: &RetainedState,+ index: &RuleIndex,+ let_go: &[BoundSegment],+ entry: u32,+ stayed: &[u32],+ reads_left: &mut usize,+) -> bool {+ let entries = &index.entries;+ let Some(view) = entries.try_view_before(let_go, entry as usize) else {+ return false;+ };+ // NB: The entries that apply under container conditions leave what they read in the record, and+ // may not apply. Those of a pseudo-element decide for it alone.+ let holds_by_its_rule =+ |view: super::rules::EntryView<'_>| !view.pseudo_element() && !view.scoped() && !view.gated();+ let placement = entries.placement_of(view);+ if !holds_by_its_rule(view)+ || view.declares_custom_properties()+ || view.declares_important()+ || placement.group != ScopeGroupID::DOCUMENT+ {+ return false;+ }+ let rule = index.rule_of_view(view);+ *reads_left = reads_left.saturating_sub(stayed.len());+ // NB: The entries of a rule decide by the greatest specificity among them.+ if stayed+ .iter()+ .any(|&other| index.rule_of_view(entries.view(other as usize)) == rule)+ {+ return false;+ }+ let declared = state.rules.declared_properties_of(rule);+ let priority = cascade_key(entries, view, Ranks::of_view(entries, view), false);+ !declared.is_empty()+ && declared.iter().all(|declaration| {+ (FIRST_LONGHAND_PROPERTY_ID..=LAST_LONGHAND_PROPERTY_ID).contains(&declaration.property())+ // NB: What decides an element mostly comes late in the cascade.+ && stayed.iter().rev().any(|&other| {+ if *reads_left == 0 {+ return false;+ }+ *reads_left -= 1;+ let other_view = entries.view(other as usize);+ let other_placement = entries.placement_of(other_view);+ if !holds_by_its_rule(other_view)+ || other_placement.group != placement.group+ || other_placement.origin != placement.origin+ || other_placement.layer_rank != placement.layer_rank+ || cascade_key(entries, other_view, Ranks::of_view(entries, other_view), false) <= priority+ {+ return false;+ }+ let above = state.rules.declared_properties_of(index.rule_of_view(other_view));+ *reads_left = reads_left.saturating_sub(above.len());+ above+ .iter()+ .any(|above| above.property() == declaration.property() && !above.important())+ })+ })+}+/// Where the declarations of `entry` of the given importance stand in the cascade order against/// those of the other entries of its tree scope. Entries of different scopes reach an element/// from different encapsulation contexts, which the tree orders, or from different origins.fn cascade_key(entries: &super::rules::IndexEntries,- id: u32,+ entry: super::rules::EntryView<'_>,ranks: Ranks,important: bool,) -> (ScopeGroupID, CascadePriority) {- let entry = entries.view(id as usize);- let placement = entries.placement(id as usize);+ let placement = entries.placement_of(entry);(placement.group,CascadePriority::new(PriorityInputs {diff --git a/Libraries/LibWeb/Rust/src/css/style/pipeline/rule_store/staging.rs b/Libraries/LibWeb/Rust/src/css/style/pipeline/rule_store/staging.rsindex a9a48dd3b39..fbee55ecbac 100644--- a/Libraries/LibWeb/Rust/src/css/style/pipeline/rule_store/staging.rs+++ b/Libraries/LibWeb/Rust/src/css/style/pipeline/rule_store/staging.rs@@ -216,6 +216,9 @@ pub(crate) struct RuleChanges {/// The rules whose contents, conditions, layering or existence moved. A rule of a sheet that was/// attached nowhere before the transaction is left out: what it decides arrives with the sheet.pub(crate) rules: Vec<RuleID>,+ /// Those of `rules` where more than their conditions moved, whose declarations and gates may+ /// not be the ones their entries were indexed with.+ pub(crate) rules_with_moved_contents: Vec<RuleID>,/// The sheets that were attached to or detached from a scope, or whose activation moved.pub(crate) sheets: Vec<SheetID>,/// The scopes whose sheet order or layer order moved, which reorders declarations that already@@ -548,16 +551,22 @@ impl StyleEngine {let program = &self.retained.rules;let mut changes = RuleChanges::default();- let mut rules: Vec<RuleID> = moved(staging.rule_conditions.pairs())- .chain(moved(staging.rule_declarations.pairs()))+ let attached = |rule: &RuleID| !program.sheet_scopes(program.rule_sheet(*rule)).is_empty();+ changes.rules_with_moved_contents = moved(staging.rule_declarations.pairs()).chain(moved(staging.rule_versions.pairs())).chain(moved(staging.rule_in_a_layer.pairs())).chain(moved(staging.rule_gated_by_container_query.pairs())).chain(moved(staging.rule_liveness.pairs()))+ .filter(attached)+ .collect();+ changes.rules_with_moved_contents.sort_unstable();+ changes.rules_with_moved_contents.dedup();+ let mut rules: Vec<RuleID> = moved(staging.rule_conditions.pairs())+ .filter(attached)+ .chain(changes.rules_with_moved_contents.iter().copied()).collect();rules.sort_unstable();rules.dedup();- rules.retain(|&rule| !program.sheet_scopes(program.rule_sheet(rule)).is_empty());changes.rules = rules;changes.sheets = moved(staging.sheet_conditions.pairs())diff --git a/Libraries/LibWeb/Rust/src/css/style/pipeline/rules.rs b/Libraries/LibWeb/Rust/src/css/style/pipeline/rules.rsindex 9e91f442f20..2feabad3b15 100644--- a/Libraries/LibWeb/Rust/src/css/style/pipeline/rules.rs+++ b/Libraries/LibWeb/Rust/src/css/style/pipeline/rules.rs@@ -348,7 +348,7 @@ impl EntryView<'_> {self.flags().has(EntryFlags::LIVE)}- fn gated(&self) -> bool {+ pub(super) fn gated(&self) -> bool {self.flags().has(EntryFlags::GATED)}@@ -1127,6 +1127,20 @@ impl IndexEntries {}}+ /// The entry numbered `id`, if any has the number, as it was before the update that let go of+ /// the segments `let_go`, which took what their entries were with them.+ pub(super) fn try_view_before<'a>(&'a self, let_go: &'a [BoundSegment], id: usize) -> Option<EntryView<'a>> {+ let number = u32::try_from(id).expect("rule entry space exhausted");+ match let_go.iter().find(|bound| bound.holds(number)) {+ Some(bound) => Some(EntryView::Bound {+ bound,+ entry: &bound.segment.entries[(number - bound.first) as usize],+ dead: true,+ }),+ None => self.try_view(id),+ }+ }+/// How many entries the user agent index the document shares has.fn user_agent_count(&self) -> usize {self.user_agent@@ -1227,7 +1241,7 @@ impl UserAgentIndex {/// The fewest entries a sheet has for its entries to be bucketed in a segment the process shares./// Matching probes the buckets of each segment apart, which costs more than a few entries of the/// document's own buckets save.-const SEGMENT_MIN_ENTRIES: usize = 64;+pub(super) const SEGMENT_MIN_ENTRIES: usize = 64;/// One entry of a sheet segment, which every document binding the segment shares: what the entry/// is relative to its sheet. The binding says the rest: the rule the offsets count from, and the@@ -1720,6 +1734,8 @@ struct Indexed {pub(super) struct IndexChanges<'a> {/// The rules whose contents, conditions, layering or existence moved.pub(super) rules: &'a HashSet<RuleID>,+ /// Those of `rules` where more than their conditions moved.+ pub(super) rule_contents: &'a HashSet<RuleID>,/// The sheets attached to or detached from a scope, or whose activation moved.pub(super) sheets: &'a HashSet<SheetID>,/// The scopes whose sheets or layers were reordered.@@ -2578,8 +2594,10 @@ impl RuleIndex {/// Let go of the segment of the entries of `sheet` deciding in `group`, or of every sheet/// deciding in it where `sheet` is none, whose entries die, noting each in `died`. Their numbers- /// keep only where they decided, which what changed tells the trees of.- fn drop_segments(&mut self, sheet: Option<SheetID>, group: ScopeGroupID, died: &mut Vec<u32>) {+ /// keep only where they decided, which what changed tells the trees of. Answers the segments,+ /// which alone still tell the rest of what their entries were.+ fn drop_segments(&mut self, sheet: Option<SheetID>, group: ScopeGroupID, died: &mut Vec<u32>) -> Vec<BoundSegment> {+ let mut dropped = Vec::new();for place in (0..self.entries.segments.len()).rev() {let bound = &self.entries.segments[place];if bound.group != group || sheet.is_some_and(|sheet| bound.sheet != sheet) {@@ -2598,7 +2616,9 @@ impl RuleIndex {died.push(id);}}+ dropped.push(bound);}+ dropped}/// Index the entries of `rule` deciding in `group`, appending their numbers to `added`, which@@ -2845,11 +2865,12 @@ impl RuleIndex {let live = program.rules_in_sheet(*sheet);!live.is_empty() && live.iter().all(|rule| rules.binary_search(rule).is_ok())});+ let mut let_go: Vec<BoundSegment> = Vec::new();for &sheet in &replaced {let groups: SmallVec<[ScopeGroupID; 4]> =self.indexed.sheets[&sheet].iter().map(|&(group, _)| group).collect();for group in groups {- self.drop_segments(Some(sheet), group, &mut died);+ let_go.extend(self.drop_segments(Some(sheet), group, &mut died));}}for &rule in &rules {@@ -3016,11 +3037,13 @@ impl RuleIndex {let mut relabeled: Vec<SheetID> = rules.iter().map(|&rule| program.rule_sheet(rule)).collect();relabeled.sort_unstable();relabeled.dedup();+ let mut any_relabeled = false;for sheet in relabeled {let relabels = program.rule_order_relabels(sheet);if self.indexed.rule_order_relabels.insert(sheet, relabels) == Some(relabels) {continue;}+ any_relabeled = true;// NB: The documents sharing a segment share the rule order its entries hold.for place in (0..self.entries.segments.len()).rev() {let bound = &self.entries.segments[place];@@ -3110,7 +3133,38 @@ impl RuleIndex {}self.share_entries(process_indexes);- RuleIndexChanges::new(self, died, &moved, &added, user_agent_moved, regrouped)+ // NB: An entry that died where only the conditions of its rule moved declared what the rule+ // declares now. So nothing but those conditions moved the entries of an update where the+ // rule of each is one of them, and no sheet or layer moved. A rule order relabeled gives+ // new ranks to the entries that stayed alone, which those that died no longer compare to.+ let contents_moved: HashSet<RuleID> = changes+ .rule_contents+ .iter()+ .flat_map(|&rule| program.rule_subtree(rule))+ .collect();+ let conditions_moved_alone = changes.sheets.is_empty()+ && changes.reordered_scopes.is_empty()+ && changes.layered_scopes.is_empty()+ && !user_agent_moved+ && !any_relabeled+ && moved.is_empty()+ && regrouped.is_empty()+ && died.iter().all(|&id| {+ self.entries+ .try_view_before(&let_go, id as usize)+ .is_some_and(|view| !contents_moved.contains(&self.rule_of_view(view)))+ });+ let mut rule_index_changes = RuleIndexChanges::new(+ self,+ died,+ &moved,+ &added,+ user_agent_moved,+ regrouped,+ conditions_moved_alone,+ );+ rule_index_changes.let_go = let_go;+ rule_index_changes}/// The buckets holding the entries `entries` alone, where they are live.@@ -3453,6 +3507,7 @@ mod tests {None,&IndexChanges {rules: &HashSet::default(),+ rule_contents: &HashSet::default(),sheets: &[sheet].into_iter().collect(),reordered_scopes: &HashSet::default(),layered_scopes: &HashSet::default(),@@ -3639,6 +3694,7 @@ mod tests {Some(&indexes),&IndexChanges {rules: &moved,+ rule_contents: &moved,sheets: &HashSet::default(),reordered_scopes: &HashSet::default(),layered_scopes: &HashSet::default(),diff --git a/Tests/LibWeb/Text/expected/css/media-flip-as-the-rule-order-relabels.txt b/Tests/LibWeb/Text/expected/css/media-flip-as-the-rule-order-relabels.txtnew file mode 100644index 00000000000..852357b1f8a--- /dev/null+++ b/Tests/LibWeb/Text/expected/css/media-flip-as-the-rule-order-relabels.txt@@ -0,0 +1,3 @@+Dark: rgb(2, 2, 2)+Dark, with the rules after the winner gone: rgb(2, 2, 2)+Light, as the rule order relabels: rgb(1, 1, 1)diff --git a/Tests/LibWeb/Text/expected/css/media-flip-below-the-winner-against-a-cold-copy.txt b/Tests/LibWeb/Text/expected/css/media-flip-below-the-winner-against-a-cold-copy.txtnew file mode 100644index 00000000000..31d2f14d3f2--- /dev/null+++ b/Tests/LibWeb/Text/expected/css/media-flip-below-the-winner-against-a-cold-copy.txt@@ -0,0 +1,700 @@+simple, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, light: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|0px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+shorthand-loser, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-winner, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+font-shorthand, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-longhand, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|rgb(1, 1, 1)+border-reset, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|0px|0px|0px|1px|solid|1|none|0s|ltr|+duplicate-declarations, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+animation, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|393px|0px|16px|400|7px|0px|0px|0px|none|1|slide|0s|ltr|+unset-later, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, light: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, light: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|7px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, light: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, light: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+simple, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, dark: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, dark: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+shorthand-loser, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|2px|0px|none|1|none|0s|ltr|+shorthand-winner, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+font-shorthand, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-longhand, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|rgb(1, 1, 1)+border-reset, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|0px|0px|0px|1px|solid|1|none|0s|ltr|+duplicate-declarations, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+animation, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|393px|0px|16px|400|7px|0px|0px|0px|none|1|slide|0s|ltr|+unset-later, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, dark: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, dark: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|7px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, dark: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, dark: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, dark: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+simple, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, light again: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|0px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+shorthand-loser, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-winner, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+font-shorthand, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-longhand, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|rgb(1, 1, 1)+border-reset, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|0px|0px|0px|1px|solid|1|none|0s|ltr|+duplicate-declarations, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+animation, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|393px|0px|16px|400|7px|0px|0px|0px|none|1|slide|0s|ltr|+unset-later, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, light again: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, light again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|7px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, light again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, light again: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+simple, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|0px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-winner, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-shorthand, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-longhand, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+border-reset, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+duplicate-declarations, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+animation, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unset-later, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, light without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, light without the winner: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, light without the winner: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+simple, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgb(2, 2, 2)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, dark without the winner: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|2px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|2px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|2px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|0px|2px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|2px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|396px|0px|16px|400|2px|2px|2px|0px|none|1|none|0s|ltr|+shorthand-loser, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|396px|0px|16px|400|2px|2px|2px|0px|none|1|none|0s|ltr|+shorthand-winner, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|2px|0px|0px|0px|none|1|none|0s|ltr|+font-shorthand, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|20px|700|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|396px|0px|16px|400|2px|2px|2px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|2px|0px|0px|0px|none|1|none|0s|ltr|+variable-longhand, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+border-reset, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|2px|none|0s|ltr|+duplicate-declarations, dark without the winner: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|20px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|100s|ltr|+animation, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unset-later, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgb(2, 2, 2)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, dark without the winner: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, dark without the winner: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, dark without the winner: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+simple, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, dark with the winner again: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+shorthand-loser, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|2px|0px|none|1|none|0s|ltr|+shorthand-winner, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+font-shorthand, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-longhand, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|rgb(1, 1, 1)+border-reset, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|0px|0px|0px|1px|solid|1|none|0s|ltr|+duplicate-declarations, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+animation, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|393px|0px|16px|400|7px|0px|0px|0px|none|1|slide|0s|ltr|+unset-later, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, dark with the winner again: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|7px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, dark with the winner again: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, dark with the winner again: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, dark with the winner again: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+simple, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|0px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-winner, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-shorthand, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-longhand, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+border-reset, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+duplicate-declarations, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+animation, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unset-later, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, light as the winner leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, light as the winner leaves: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, light as the winner leaves: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+simple, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, dark as the winner arrives: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+shorthand-loser, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|2px|0px|none|1|none|0s|ltr|+shorthand-winner, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+font-shorthand, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-longhand, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|rgb(1, 1, 1)+border-reset, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|0px|0px|0px|1px|solid|1|none|0s|ltr|+duplicate-declarations, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+animation, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|393px|0px|16px|400|7px|0px|0px|0px|none|1|slide|0s|ltr|+unset-later, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, dark as the winner arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|7px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, dark as the winner arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, dark as the winner arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, dark as the winner arrives: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+simple, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|0px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+shorthand-loser, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-winner, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+font-shorthand, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-longhand, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|rgb(1, 1, 1)+border-reset, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|0px|0px|0px|1px|solid|1|none|0s|ltr|+duplicate-declarations, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+animation, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|393px|0px|16px|400|7px|0px|0px|0px|none|1|slide|0s|ltr|+unset-later, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|7px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, light as the class of the rule leaves: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, light as the class of the rule leaves: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+simple, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-specificity-loser, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+selector-list, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+is-specificity, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+where-specificity, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+winner-in-its-list, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-rule, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-loser, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-winner, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+both-important, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+important-sibling, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+lower-layer, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+higher-layer, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-layer, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+same-layer, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-in-layer, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+below-revert, dark as the class of the rule arrives: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+unlayered-winner, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-display, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+revert-substituted, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+invalid-at-computed-value, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherit, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+logical-loser, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+physical-loser, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-both, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+logical-rtl, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|0px|0px|none|1|none|0s|rtl|+logical-writing-mode, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|2px|1px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+between-logical, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|399px|0px|16px|400|1px|0px|0px|0px|none|1|none|0s|ltr|+all-loser, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-winner, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-revert, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+all-both, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|inline|0px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+shorthand-both, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+shorthand-loser, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|1px|2px|2px|0px|none|1|none|0s|ltr|+shorthand-winner, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+font-shorthand, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+variable-shorthand, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-shorthand-winner, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|1px|1px|1px|0px|none|1|none|0s|ltr|+variable-longhand, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+custom-winner, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|rgb(1, 1, 1)+border-reset, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|398px|0px|16px|400|0px|0px|0px|1px|solid|1|none|0s|ltr|+duplicate-declarations, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+not-loser, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+own-pseudo-element, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherited-into-pseudo-element, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-flips, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-element-winner, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+marker-flips, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|list-item|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+first-line-flips, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+font-relative, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|10px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+transition, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+animation, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|393px|0px|16px|400|7px|0px|0px|0px|none|1|slide|0s|ltr|+unset-later, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+nested-loser, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgb(1, 1, 1)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inline-style, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+inherits-from-parent, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+root-font-reader, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|32px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-loser, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-winner, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-read, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|200px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+container-unit, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|20px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-loser, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-read, dark as the class of the rule arrives: as a cold copy, rgb(0, 0, 0)|rgba(0, 0, 0, 0)|block|7px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+attribute-value, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+pseudo-attribute, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|16px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-loser, dark as the class of the rule arrives: as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+scoped-winner, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|400px|0px|16px|400|0px|0px|0px|0px|none|1|none|0s|ltr|+host-element, dark as the class of the rule arrives: as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|+part-flip, dark as the class of the rule arrives: as a cold copy, rgb(3, 3, 3)|rgba(0, 0, 0, 0)|block|397px|0px|16px|400|3px|0px|0px|0px|none|1|none|0s|ltr|diff --git a/Tests/LibWeb/Text/expected/css/media-flip-of-a-rule-below-the-winner.txt b/Tests/LibWeb/Text/expected/css/media-flip-of-a-rule-below-the-winner.txtnew file mode 100644index 00000000000..87d7cf7c9c5--- /dev/null+++ b/Tests/LibWeb/Text/expected/css/media-flip-of-a-rule-below-the-winner.txt@@ -0,0 +1,98 @@+Light:+ loser: rgb(1, 1, 1)+ partial: rgb(1, 1, 1)+ important: rgb(1, 1, 1)+ container: rgb(0, 0, 0)+ later: rgb(0, 0, 0)+ later-winner: rgb(1, 1, 1)+ custom: rgb(1, 1, 1)+ layered: rgb(0, 0, 0)+ substituted: rgb(0, 0, 0)+ loser-child: rgb(1, 1, 1)+ partial background: rgba(0, 0, 0, 0)+ pseudo before: rgb(1, 1, 1)+ custom property:+Dark:+ loser: rgb(1, 1, 1)+ partial: rgb(1, 1, 1)+ important: rgb(2, 2, 2)+ container: rgb(2, 2, 2)+ later: rgb(2, 2, 2)+ later-winner: rgb(2, 2, 2)+ custom: rgb(1, 1, 1)+ layered: rgb(2, 2, 2)+ substituted: rgb(2, 2, 2)+ loser-child: rgb(1, 1, 1)+ partial background: rgb(2, 2, 2)+ pseudo before: rgb(2, 2, 2)+ custom property: rgb(2, 2, 2)+Dark, without the winner:+ loser: rgb(2, 2, 2)+ partial: rgb(1, 1, 1)+ important: rgb(2, 2, 2)+ container: rgb(2, 2, 2)+ later: rgb(2, 2, 2)+ later-winner: rgb(2, 2, 2)+ custom: rgb(1, 1, 1)+ layered: rgb(2, 2, 2)+ substituted: rgb(2, 2, 2)+ loser-child: rgb(2, 2, 2)+ partial background: rgb(2, 2, 2)+ pseudo before: rgb(2, 2, 2)+ custom property: rgb(2, 2, 2)+Light again:+ loser: rgb(1, 1, 1)+ partial: rgb(1, 1, 1)+ important: rgb(1, 1, 1)+ container: rgb(0, 0, 0)+ later: rgb(0, 0, 0)+ later-winner: rgb(1, 1, 1)+ custom: rgb(1, 1, 1)+ layered: rgb(0, 0, 0)+ substituted: rgb(0, 0, 0)+ loser-child: rgb(1, 1, 1)+ partial background: rgba(0, 0, 0, 0)+ pseudo before: rgb(1, 1, 1)+ custom property:+Light, without the winner:+ loser: rgb(0, 0, 0)+ partial: rgb(1, 1, 1)+ important: rgb(1, 1, 1)+ container: rgb(0, 0, 0)+ later: rgb(0, 0, 0)+ later-winner: rgb(1, 1, 1)+ custom: rgb(1, 1, 1)+ layered: rgb(0, 0, 0)+ substituted: rgb(0, 0, 0)+ loser-child: rgb(0, 0, 0)+ partial background: rgba(0, 0, 0, 0)+ pseudo before: rgb(1, 1, 1)+ custom property:+Dark again:+ loser: rgb(1, 1, 1)+ partial: rgb(1, 1, 1)+ important: rgb(2, 2, 2)+ container: rgb(2, 2, 2)+ later: rgb(2, 2, 2)+ later-winner: rgb(2, 2, 2)+ custom: rgb(1, 1, 1)+ layered: rgb(2, 2, 2)+ substituted: rgb(2, 2, 2)+ loser-child: rgb(1, 1, 1)+ partial background: rgb(2, 2, 2)+ pseudo before: rgb(2, 2, 2)+ custom property: rgb(2, 2, 2)+Dark again, without the winner:+ loser: rgb(2, 2, 2)+ partial: rgb(1, 1, 1)+ important: rgb(2, 2, 2)+ container: rgb(2, 2, 2)+ later: rgb(2, 2, 2)+ later-winner: rgb(2, 2, 2)+ custom: rgb(1, 1, 1)+ layered: rgb(2, 2, 2)+ substituted: rgb(2, 2, 2)+ loser-child: rgb(2, 2, 2)+ partial background: rgb(2, 2, 2)+ pseudo before: rgb(2, 2, 2)+ custom property: rgb(2, 2, 2)diff --git a/Tests/LibWeb/Text/expected/css/rule-below-the-winner-with-rules-moving.txt b/Tests/LibWeb/Text/expected/css/rule-below-the-winner-with-rules-moving.txtnew file mode 100644index 00000000000..166944e4670--- /dev/null+++ b/Tests/LibWeb/Text/expected/css/rule-below-the-winner-with-rules-moving.txt@@ -0,0 +1,440 @@+Root, alone:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(1, 1, 1) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Root, with the winner:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(1, 1, 1) none 0px 0px 20px+ class-flip-as-winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(1, 1, 1) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(1, 1, 1) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(1, 1, 1) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(1, 1, 1) none 0px 0px 784px+ winner-keyframes: rgb(1, 1, 1) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Root, with the loser below the winner:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(1, 1, 1) none 0px 0px 20px+ class-flip-as-winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(1, 1, 1) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(1, 1, 1) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(1, 1, 1) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(1, 1, 1) none 0px 0px 784px+ winner-keyframes: rgb(1, 1, 1) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Root, with the loser alone:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(2, 2, 2) none 0px 0px 40px+ class-flip-as-winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(1, 1, 1) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(2, 2, 2) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(2, 2, 2) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(2, 2, 2) none 0px 0px 784px+ winner-keyframes: rgb(2, 2, 2) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Winner deleted as the class of the rule below it arrives:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(1, 1, 1) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+The class of the rule below the winner arrived:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(1, 1, 1) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Rule below the winner deleted as its class leaves:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(1, 1, 1) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+The winner over the rule deleted leaves:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Dark, before a sheet moves:+ declares-otherwise: rgb(1, 1, 1) none 5px 0px 779px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(2, 2, 2) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(1, 1, 1) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(2, 2, 2) none 0px 0px 784px+ layer-order: rgb(1, 1, 1) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 2px 1px 782px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Light as the sheet moves:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(1, 1, 1) none 0px 1px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Without the winner over the rule that moved:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(2, 2, 2) none 0px 0px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Dark, with the rule declaring what wins:+ declares-otherwise: rgb(1, 1, 1) none 5px 0px 779px+ moved-loser: rgb(2, 2, 2) none 0px 2px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(2, 2, 2) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(1, 1, 1) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(2, 2, 2) none 0px 0px 784px+ layer-order: rgb(1, 1, 1) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 2px 1px 782px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Light, with the rule declaring otherwise:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(2, 2, 2) none 0px 0px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Light:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(2, 2, 2) none 0px 0px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Dark:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(2, 2, 2) none 0px 2px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(2, 2, 2) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(1, 1, 1) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(2, 2, 2) none 0px 0px 784px+ layer-order: rgb(1, 1, 1) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 2px 1px 782px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Light again:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(2, 2, 2) none 0px 0px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(1, 1, 1) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(0, 0, 0) none 0px 0px 784px+ selector-moves: rgb(1, 1, 1) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(1, 1, 1) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Dark with rules moving in the same update:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(2, 2, 2) none 0px 2px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(2, 2, 2) none 0px 0px 784px+ winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(1, 1, 1) none 0px 0px 784px+ selector-moves: rgb(2, 2, 2) none 0px 0px 784px+ winner-flips-too: rgb(1, 1, 1) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(2, 2, 2) none 0px 0px 784px+ layer-order: rgb(1, 1, 1) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 2px 1px 782px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(2, 2, 2) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Light with the rules moved back:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(2, 2, 2) none 0px 0px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(0, 0, 0) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(1, 1, 1) none 0px 0px 784px+ selector-moves: rgb(0, 0, 0) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(0, 0, 0) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Dark with the rules moved back:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(2, 2, 2) none 0px 2px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(1, 1, 1) none 0px 0px 784px+ selector-moves: rgb(2, 2, 2) none 0px 0px 784px+ winner-flips-too: rgb(1, 1, 1) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(2, 2, 2) none 0px 0px 784px+ layer-order: rgb(1, 1, 1) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 2px 1px 782px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(2, 2, 2) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784px+Light with the media text moved:+ declares-otherwise: rgb(1, 1, 1) none 0px 0px 784px+ moved-loser: rgb(2, 2, 2) none 0px 0px 784px+ reads-root-font: rgb(0, 0, 0) none 0px 0px 32px+ class-flip-as-winner-deleted: rgb(2, 2, 2) none 0px 0px 784px+ class-flip-as-loser-deleted: rgb(0, 0, 0) none 0px 0px 784px+ declarations-move: rgb(1, 1, 1) none 0px 0px 784px+ winner-deleted: rgb(0, 0, 0) none 0px 0px 784px+ loser-moves: rgb(1, 1, 1) none 0px 0px 784px+ new-winner: rgb(1, 1, 1) none 0px 0px 784px+ selector-moves: rgb(0, 0, 0) none 0px 0px 784px+ winner-flips-too: rgb(0, 0, 0) none 0px 0px 784px+ winner-leaves-as-loser-arrives: rgb(1, 1, 1) none 0px 0px 784px+ layer-order: rgb(2, 2, 2) none 0px 0px 784px+ layer-order-of-winner: rgb(1, 1, 1) none 0px 0px 784px+ nested-media: rgb(1, 1, 1) none 0px 0px 784px+ media-text-moves: rgb(1, 1, 1) none 0px 0px 784px+ keyframes-flip: rgb(0, 0, 0) none 0px 0px 784px+ winner-keyframes: rgb(0, 0, 0) flip-again 1px 1px 783px+ sheet-media: rgb(1, 1, 1) none 0px 0px 784px+ sheet-disabled: rgb(0, 0, 0) none 0px 0px 784px+ sheet-moved: rgb(1, 1, 1) none 0px 0px 784pxdiff --git a/Tests/LibWeb/Text/expected/css/rule-index-updates-that-keep-no-style.txt b/Tests/LibWeb/Text/expected/css/rule-index-updates-that-keep-no-style.txtnew file mode 100644index 00000000000..a184ede6195--- /dev/null+++ b/Tests/LibWeb/Text/expected/css/rule-index-updates-that-keep-no-style.txt@@ -0,0 +1,6 @@+Sheets in order: rgb(2, 2, 2)+Sheets swapped: rgb(1, 1, 1)+Sheets swapped back: rgb(2, 2, 2)+Dark: rgb(1, 1, 1)+Light: rgb(2, 2, 2)+Dark again: rgb(1, 1, 1)diff --git a/Tests/LibWeb/Text/expected/css/sheet-moving-whole-against-a-cold-copy.txt b/Tests/LibWeb/Text/expected/css/sheet-moving-whole-against-a-cold-copy.txtnew file mode 100644index 00000000000..42d56509a4a--- /dev/null+++ b/Tests/LibWeb/Text/expected/css/sheet-moving-whole-against-a-cold-copy.txt@@ -0,0 +1,84 @@+Light: decides as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: decides ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: loses as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: decides-and-loses as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: decides-and-loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: important as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: important ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: custom as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: custom ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: pseudo as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: pseudo ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: container as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light: container ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark: decides as a cold copy, rgb(1, 1, 1)|rgb(2, 2, 2)|+Dark: decides ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark: loses as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark: loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark: decides-and-loses as a cold copy, rgb(1, 1, 1)|rgb(2, 2, 2)|+Dark: decides-and-loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark: important as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|+Dark: important ::before as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|+Dark: custom as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|rgb(2, 2, 2)+Dark: custom ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|rgb(2, 2, 2)+Dark: pseudo as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark: pseudo ::before as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|+Dark: container as a cold copy, rgb(1, 1, 1)|rgb(2, 2, 2)|+Dark: container ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: decides as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: decides ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: loses as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: decides-and-loses as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: decides-and-loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: important as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: important ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: custom as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: custom ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: pseudo as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: pseudo ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: container as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Light again: container ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark again: decides as a cold copy, rgb(1, 1, 1)|rgb(2, 2, 2)|+Dark again: decides ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark again: loses as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark again: loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark again: decides-and-loses as a cold copy, rgb(1, 1, 1)|rgb(2, 2, 2)|+Dark again: decides-and-loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark again: important as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|+Dark again: important ::before as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|+Dark again: custom as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|rgb(2, 2, 2)+Dark again: custom ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|rgb(2, 2, 2)+Dark again: pseudo as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Dark again: pseudo ::before as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|+Dark again: container as a cold copy, rgb(1, 1, 1)|rgb(2, 2, 2)|+Dark again: container ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Adopted: decides as a cold copy, rgb(1, 1, 1)|rgb(2, 2, 2)|+Adopted: decides ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Adopted: loses as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Adopted: loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Adopted: decides-and-loses as a cold copy, rgb(1, 1, 1)|rgb(2, 2, 2)|+Adopted: decides-and-loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Adopted: important as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|+Adopted: important ::before as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|+Adopted: custom as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|rgb(2, 2, 2)+Adopted: custom ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|rgb(2, 2, 2)+Adopted: pseudo as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Adopted: pseudo ::before as a cold copy, rgb(2, 2, 2)|rgba(0, 0, 0, 0)|+Adopted: container as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Adopted: container ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: decides as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: decides ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: loses as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: decides-and-loses as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: decides-and-loses ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: important as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: important ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: custom as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: custom ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: pseudo as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: pseudo ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: container as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|+Replaced: container ::before as a cold copy, rgb(1, 1, 1)|rgba(0, 0, 0, 0)|diff --git a/Tests/LibWeb/Text/input/css/media-flip-as-the-rule-order-relabels.html b/Tests/LibWeb/Text/input/css/media-flip-as-the-rule-order-relabels.htmlnew file mode 100644index 00000000000..6ce5d1aafd1--- /dev/null+++ b/Tests/LibWeb/Text/input/css/media-flip-as-the-rule-order-relabels.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<style id="sheet"></style>+<div id="target" class="target"></div>+<script src="../include.js"></script>+<script>+test(() => {+ const sheet = document.getElementById("sheet").sheet;+ const report = title => {+ internals.updateStyle();+ println(`${title}: ${getComputedStyle(document.getElementById("target")).color}`);+ };++ sheet.insertRule(".target { color: rgb(1, 1, 1); }", 0);+ sheet.insertRule("@media (prefers-color-scheme: dark) { .target { color: rgb(2, 2, 2); } }", 1);+ for (let i = 0; i < 1000; ++i)+ sheet.insertRule(`.filler-${i} { color: rgb(9, 9, 9); }`, sheet.cssRules.length);+ internals.setPreferredColorScheme("dark");+ report("Dark");++ while (sheet.cssRules.length > 2)+ sheet.deleteRule(sheet.cssRules.length - 1);+ report("Dark, with the rules after the winner gone");++ // Rules arriving one after the other run out of room between their ranks, and the sheet ranks its rules anew. The+ // rule that wins leaves in the same update, with the rank it had.+ for (let i = 0; i < 100; ++i)+ sheet.insertRule(`.filler-${i} { color: rgb(9, 9, 9); }`, sheet.cssRules.length);+ internals.setPreferredColorScheme("light");+ report("Light, as the rule order relabels");++ internals.setPreferredColorScheme("auto");+});+</script>diff --git a/Tests/LibWeb/Text/input/css/media-flip-below-the-winner-against-a-cold-copy.html b/Tests/LibWeb/Text/input/css/media-flip-below-the-winner-against-a-cold-copy.htmlnew file mode 100644index 00000000000..2e6e569c058--- /dev/null+++ b/Tests/LibWeb/Text/input/css/media-flip-below-the-winner-against-a-cold-copy.html@@ -0,0 +1,400 @@+<!DOCTYPE html>+<style id="sheet">+ /* Each case's element holds `w`, the winner's class, and a flip of the color scheme flips the loser. */+ #cases { width: 400px; }+ #sentinel.on { color: rgb(9, 9, 9); }++ @media (prefers-color-scheme: dark) { .simple.l { color: rgb(2, 2, 2); } }+ .simple.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .higher-specificity-loser.l.l.l { color: rgb(2, 2, 2); } }+ .higher-specificity-loser.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .selector-list.l, .selector-list.l.m.n.o { color: rgb(2, 2, 2); } }+ .selector-list.w.w.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { :is(.is-specificity.l, #never#never) { color: rgb(2, 2, 2); } }+ .is-specificity.w.w.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .where-specificity:where(.l) { color: rgb(2, 2, 2); } }+ .where-specificity.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .winner-in-its-list.l.l { color: rgb(2, 2, 2); } }+ .winner-in-its-list.w, #never.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .same-rule.l, .same-rule.w { color: rgb(2, 2, 2); } }++ @media (prefers-color-scheme: dark) { .important-loser.l { color: rgb(2, 2, 2) !important; } }+ .important-loser.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .important-winner.l { color: rgb(2, 2, 2); } }+ .important-winner.w { color: rgb(1, 1, 1) !important; }++ @media (prefers-color-scheme: dark) { .both-important.l { color: rgb(2, 2, 2) !important; } }+ .both-important.w { color: rgb(1, 1, 1) !important; }++ @media (prefers-color-scheme: dark) { .important-sibling.l { color: rgb(2, 2, 2); background-color: rgb(2, 2, 2); } }+ .important-sibling.w { color: rgb(1, 1, 1); background-color: rgb(1, 1, 1) !important; }++ @layer low, high;+ @layer low {+ @media (prefers-color-scheme: dark) { .lower-layer.l { color: rgb(2, 2, 2); } }+ .higher-layer.w { color: rgb(1, 1, 1); }+ @media (prefers-color-scheme: dark) { .revert-layer.l { color: rgb(2, 2, 2); } }+ @media (prefers-color-scheme: dark) { .same-layer.l { color: rgb(2, 2, 2); } }+ .same-layer.w { color: rgb(1, 1, 1); }+ @media (prefers-color-scheme: dark) { .revert-in-layer.l { color: rgb(2, 2, 2); } }+ .revert-in-layer.w { color: revert-layer; }+ @media (prefers-color-scheme: dark) { .below-revert.l { color: rgb(3, 3, 3); } }+ }+ @layer high {+ .lower-layer.w { color: rgb(1, 1, 1); }+ @media (prefers-color-scheme: dark) { .higher-layer.l { color: rgb(2, 2, 2); } }+ .revert-layer.w { color: revert-layer; }+ .below-revert.m { color: rgb(2, 2, 2); }+ .below-revert.w { color: revert-layer; }+ }+ .unlayered-winner.w { color: rgb(1, 1, 1); }+ @layer low { @media (prefers-color-scheme: dark) { .unlayered-winner.l { color: rgb(2, 2, 2); } } }++ @media (prefers-color-scheme: dark) { .revert.l { color: rgb(2, 2, 2); } }+ .revert.w { color: revert; }++ @media (prefers-color-scheme: dark) { .revert-display.l { display: inline; } }+ .revert-display.w { display: revert; }++ @media (prefers-color-scheme: dark) { .revert-substituted.l { color: rgb(2, 2, 2); } }+ .revert-substituted.w { color: var(--undefined, revert); }++ @media (prefers-color-scheme: dark) { .invalid-at-computed-value.l { color: rgb(2, 2, 2); } }+ .invalid-at-computed-value.w { color: var(--undefined); }++ @media (prefers-color-scheme: dark) { .inherit.l { color: rgb(2, 2, 2); } }+ .inherit.w { color: inherit; }++ @media (prefers-color-scheme: dark) { .logical-loser.l { margin-inline-start: 2px; } }+ .logical-loser.w { margin-left: 1px; }++ @media (prefers-color-scheme: dark) { .physical-loser.l { margin-left: 2px; } }+ .physical-loser.w { margin-inline-start: 1px; }++ @media (prefers-color-scheme: dark) { .logical-both.l { margin-inline-start: 2px; } }+ .logical-both.w { margin-inline-start: 1px; }++ @media (prefers-color-scheme: dark) { .logical-rtl.l { margin-inline-start: 2px; } }+ .logical-rtl.w { margin-left: 1px; }+ .logical-rtl { direction: rtl; }++ @media (prefers-color-scheme: dark) { .logical-writing-mode.l { width: 2px; } }+ .logical-writing-mode.w { inline-size: 1px; }+ .logical-writing-mode.m { block-size: 3px; }+ .logical-writing-mode { writing-mode: vertical-rl; }++ @media (prefers-color-scheme: dark) { .between-logical.l { margin-inline-start: 2px; } }+ .between-logical.m { margin-left: 3px; }+ .between-logical.w { margin-inline-start: 1px; }++ @media (prefers-color-scheme: dark) { .all-loser.l { all: unset; } }+ .all-loser.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .all-winner.l { color: rgb(2, 2, 2); } }+ .all-winner.w { all: initial; }++ @media (prefers-color-scheme: dark) { .all-revert.l { color: rgb(2, 2, 2); } }+ .all-revert.w { all: revert; }++ @media (prefers-color-scheme: dark) { .all-both.l { all: unset; } }+ .all-both.w { all: initial; }++ @media (prefers-color-scheme: dark) { .shorthand-both.l { margin: 2px; } }+ .shorthand-both.w { margin: 1px; }++ @media (prefers-color-scheme: dark) { .shorthand-loser.l { margin: 2px; } }+ .shorthand-loser.w { margin-left: 1px; }++ @media (prefers-color-scheme: dark) { .shorthand-winner.l { margin-left: 2px; } }+ .shorthand-winner.w { margin: 1px; }++ @media (prefers-color-scheme: dark) { .font-shorthand.l { font-size: 20px; font-weight: 700; } }+ .font-shorthand.w { font: 10px serif; }++ @media (prefers-color-scheme: dark) { .variable-shorthand.l { margin: var(--two, 2px); } }+ .variable-shorthand.w { margin-left: 1px; margin-right: 1px; margin-top: 1px; margin-bottom: 1px; }++ @media (prefers-color-scheme: dark) { .variable-shorthand-winner.l { margin-left: 2px; } }+ .variable-shorthand-winner.w { margin: var(--one, 1px); }++ @media (prefers-color-scheme: dark) { .variable-longhand.l { color: var(--two, rgb(2, 2, 2)); } }+ .variable-longhand.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .custom-winner.l { color: rgb(2, 2, 2); } }+ .custom-winner.w { --one: rgb(1, 1, 1); color: var(--one); }++ @media (prefers-color-scheme: dark) { .border-reset.l { border-image-width: 2px; border-top-width: 2px; } }+ .border-reset.w { border: 1px solid rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .duplicate-declarations.l { color: rgb(2, 2, 2); color: rgb(3, 3, 3); } }+ .duplicate-declarations.w { color: rgb(1, 1, 1); color: not-a-color; }++ @media (prefers-color-scheme: dark) { .attribute-loser[data-l] { color: rgb(2, 2, 2); } }+ .attribute-loser.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .attribute-read[data-l] { width: 2px; } }+ .attribute-read.w { width: attr(data-l px, 5px); }++ @media (prefers-color-scheme: dark) { .attribute-value[data-v="x"] { color: rgb(2, 2, 2); } }+ .attribute-value.w { color: rgb(1, 1, 1); }++ .pseudo-attribute::before { content: attr(data-l); }+ @media (prefers-color-scheme: dark) { .pseudo-attribute[data-l] { color: rgb(2, 2, 2); } }+ .pseudo-attribute.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .has-loser:has(> .l) { color: rgb(2, 2, 2); } }+ .has-loser.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .has-winner.l { color: rgb(2, 2, 2); } }+ .has-winner:has(> .w) { color: rgb(1, 1, 1); }++ .not-loser:not(.l) { color: rgb(2, 2, 2); }+ .not-loser.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .sibling-loser.l + .target { color: rgb(2, 2, 2); } }+ .target.w { color: rgb(1, 1, 1); }++ .own-pseudo-element::before { content: "before"; color: rgb(4, 4, 4); }+ @media (prefers-color-scheme: dark) { .own-pseudo-element.l { color: rgb(2, 2, 2); } }+ .own-pseudo-element.w { color: rgb(1, 1, 1); }++ .inherited-into-pseudo-element::before { content: "before"; }+ @media (prefers-color-scheme: dark) { .inherited-into-pseudo-element.l { color: rgb(2, 2, 2); } }+ .inherited-into-pseudo-element.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .pseudo-element-flips.l::before { content: "flipped"; color: rgb(2, 2, 2); } }+ .pseudo-element-flips::before { content: "before"; color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .pseudo-element-winner.l { color: rgb(2, 2, 2); } }+ .pseudo-element-winner.w::before { color: rgb(1, 1, 1); content: "x"; }++ @media (prefers-color-scheme: dark) { .marker-flips.l::marker { color: rgb(2, 2, 2); } }+ .marker-flips { display: list-item; }++ @media (prefers-color-scheme: dark) { .first-line-flips.l::first-line { color: rgb(2, 2, 2); } }++ .box { container-type: inline-size; width: 200px; }+ @container (min-width: 100px) {+ @media (prefers-color-scheme: dark) { .container-loser.l { color: rgb(2, 2, 2); } }+ .container-winner.w { color: rgb(1, 1, 1); }+ .container-read.w { color: rgb(1, 1, 1); }+ }+ .container-loser.w { color: rgb(1, 1, 1); }+ @media (prefers-color-scheme: dark) { .container-winner.l { color: rgb(2, 2, 2); } }+ @media (prefers-color-scheme: dark) { .container-read.l { color: rgb(2, 2, 2); } }+ @media (prefers-color-scheme: dark) { .container-unit.l { width: 2px; } }+ .container-unit.w { width: 10cqw; }++ @media (prefers-color-scheme: dark) { .font-relative.l { font-size: 20px; } }+ .font-relative.w { font-size: 10px; width: 2em; }++ .root-font-reader { width: 2rem; }++ .presentational-hint[bgcolor] { color: rgb(2, 2, 2); }+ .presentational-hint.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .inline-style.l { color: rgb(2, 2, 2); } }+ .inline-style.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .inherits-from-parent.l { color: rgb(2, 2, 2); } }+ .inherits-from-parent.w { color: inherit; }++ @media (prefers-color-scheme: dark) { .transition.l { color: rgb(2, 2, 2); transition: margin-top 100s; } }+ .transition.w { color: rgb(1, 1, 1); transition: none; }++ @media (prefers-color-scheme: dark) { .animation.l { animation-name: none; } }+ .animation.w { animation-name: slide; animation-duration: 100s; animation-play-state: paused; }+ @keyframes slide { from { margin-left: 7px; } to { margin-left: 7px; } }++ @scope (.scope-root) {+ @media (prefers-color-scheme: dark) { .scoped-loser.l { color: rgb(2, 2, 2); } }+ .scoped-winner.w { color: rgb(1, 1, 1); }+ }+ .scoped-loser.w { color: rgb(1, 1, 1); }+ @media (prefers-color-scheme: dark) { .scoped-winner.l { color: rgb(2, 2, 2); } }++ @media (prefers-color-scheme: dark) { .host-element.l { color: rgb(2, 2, 2); } }+ .host-element.w { color: rgb(1, 1, 1); }++ host-loser::part(thing) { color: rgb(2, 2, 2); }+ @media (prefers-color-scheme: dark) { .part-flip.l::part(thing) { color: rgb(3, 3, 3); } }+ .part-flip.w::part(thing) { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .nested-loser.l { color: rgb(2, 2, 2); & .never { color: rgb(9, 9, 9); } background-color: rgb(2, 2, 2); } }+ .nested-loser.w { color: rgb(1, 1, 1); background-color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .unset-later.l { color: rgb(2, 2, 2); } }+ .unset-later.w { color: unset; }+</style>+<div id="sentinel"></div>+<div id="cases"></div>+<template id="shadow-template"><style>:host(.l) { color: rgb(3, 3, 3); } :host(.w) { margin-left: 3px; }</style><span part="thing"></span></template>+<script src="../include.js"></script>+<script>+// NB: Which classes each element takes and what wraps it, by case: the name is a class too.+const cases = {+ default: ["simple", "higher-specificity-loser", "selector-list", "is-specificity", "where-specificity",+ "winner-in-its-list", "same-rule", "important-loser", "important-winner", "both-important",+ "important-sibling", "lower-layer", "higher-layer", "revert-layer", "same-layer", "revert-in-layer",+ "below-revert", "unlayered-winner", "revert", "revert-display", "revert-substituted",+ "invalid-at-computed-value", "inherit", "logical-loser", "physical-loser", "logical-both", "logical-rtl",+ "logical-writing-mode", "between-logical", "all-loser", "all-winner", "all-revert", "all-both",+ "shorthand-both", "shorthand-loser", "shorthand-winner", "font-shorthand", "variable-shorthand",+ "variable-shorthand-winner", "variable-longhand", "custom-winner", "border-reset",+ "duplicate-declarations", "not-loser", "own-pseudo-element", "inherited-into-pseudo-element",+ "pseudo-element-flips", "pseudo-element-winner", "marker-flips", "first-line-flips", "font-relative",+ "transition", "animation", "unset-later", "nested-loser", "inline-style", "inherits-from-parent",+ "root-font-reader"],+};++const properties = ["color", "background-color", "display", "width", "height", "font-size", "font-weight", "margin-left", "margin-right",+ "margin-top", "border-top-width", "border-top-style", "border-image-width", "animation-name", "transition-duration", "direction", "--one"];+const describeStyle = (element, pseudo) => {+ const style = getComputedStyle(element, pseudo);+ return properties.map(property => style.getPropertyValue(property)).join("|");+};++function elementsToCheck(root) {+ return [...root.querySelectorAll("*")].filter(element => !["STYLE", "SCRIPT", "TEMPLATE"].includes(element.tagName));+}++// A frame holding the same rules, where a copy of a case is styled from nothing as it arrives.+let frame = null;+function coldCopyOf(subtree) {+ if (!frame) {+ frame = document.createElement("iframe");+ document.body.append(frame);+ const copy = frame.contentDocument;+ copy.open();+ copy.write(`<!DOCTYPE html><style>${document.getElementById("sheet").textContent}</style><div id="cases"></div>`);+ copy.close();+ }+ const cases = frame.contentDocument.getElementById("cases");+ cases.innerHTML = subtree.outerHTML;+ const copied = cases.firstElementChild;+ for (const host of subtree.matches(".has-shadow") ? [subtree] : subtree.querySelectorAll(".has-shadow"))+ (host === subtree ? copied : copied.querySelector(`#${host.id}`)).attachShadow({ mode: "open" }).innerHTML = host.shadowRoot.innerHTML;+ return copied;+}++const pseudos = [undefined, "::before", "::first-line", "::marker"];+const withItself = subtree => [subtree, ...elementsToCheck(subtree)];+function compareWithCold(title, element) {+ // NB: A self-check runs where an update installs styles, which keeping every style does not.+ document.getElementById("sentinel").classList.toggle("on");+ internals.updateStyle();+ let subtree = element;+ while (subtree.parentElement.id !== "cases")+ subtree = subtree.parentElement;+ const copied = coldCopyOf(subtree);+ const live = withItself(subtree);+ const cold = withItself(copied);+ let differences = 0;+ live.forEach((element, index) => {+ for (const pseudo of pseudos) {+ const liveStyle = describeStyle(element, pseudo);+ const coldStyle = frame.contentWindow.getComputedStyle(cold[index], pseudo);+ const coldDescription = properties.map(property => coldStyle.getPropertyValue(property)).join("|");+ if (liveStyle !== coldDescription) {+ println(`${title}: ${element.id} ${pseudo ?? ""} differs:`);+ println(` live ${liveStyle}`);+ println(` cold ${coldDescription}`);+ ++differences;+ }+ }+ });+ if (differences === 0)+ println(`${title}: as a cold copy, ${describeStyle(element)}`);+}++test(() => {+ const container = document.getElementById("cases");+ const make = (name, classes = "", parent = container) => {+ const element = document.createElement("div");+ element.id = name;+ element.className = `${name} ${classes}`;+ parent.append(element);+ return element;+ };++ const flipped = [];+ const add = (name, element) => flipped.push({ name, element });+ const addWithLoser = (name, parent = container) => {+ const element = make(name, "w l", parent);+ element.setAttribute("data-l", "7");+ element.setAttribute("data-v", "x");+ add(name, element);+ return element;+ };++ for (const name of cases.default)+ addWithLoser(name);+ const box = document.createElement("div");+ box.className = "box";+ box.id = "box";+ container.append(box);+ for (const name of ["container-loser", "container-winner", "container-read", "container-unit"])+ addWithLoser(name, box);+ for (const name of ["attribute-loser", "attribute-read", "attribute-value", "pseudo-attribute"])+ addWithLoser(name);+ const scopeRoot = make("scope-root", "scope-root");+ for (const name of ["scoped-loser", "scoped-winner"])+ addWithLoser(name, scopeRoot);+ const shadowHost = name => {+ const host = document.createElement("div");+ host.id = name;+ host.className = `${name} has-shadow w l`;+ host.attachShadow({ mode: "open" }).append(document.getElementById("shadow-template").content.cloneNode(true));+ container.append(host);+ add(name, host);+ };+ shadowHost("host-element");+ shadowHost("part-flip");++ const compareAll = title => {+ for (const { name, element } of flipped)+ compareWithCold(`${name}, ${title}`, element);+ };+ const flip = scheme => internals.setPreferredColorScheme(scheme);++ flip("light");+ compareAll("light");+ flip("dark");+ compareAll("dark");+ flip("light");+ compareAll("light again");+ for (const { element } of flipped)+ element.classList.remove("w");+ compareAll("light without the winner");+ flip("dark");+ compareAll("dark without the winner");+ for (const { element } of flipped)+ element.classList.add("w");+ compareAll("dark with the winner again");+ // The two moving in one update, either way.+ for (const { element } of flipped)+ element.classList.remove("w");+ flip("light");+ compareAll("light as the winner leaves");+ for (const { element } of flipped)+ element.classList.add("w");+ flip("dark");+ compareAll("dark as the winner arrives");+ for (const { element } of flipped)+ element.classList.remove("l");+ flip("light");+ compareAll("light as the class of the rule leaves");+ for (const { element } of flipped)+ element.classList.add("l");+ flip("dark");+ compareAll("dark as the class of the rule arrives");+ flip("auto");+});+</script>diff --git a/Tests/LibWeb/Text/input/css/media-flip-of-a-rule-below-the-winner.html b/Tests/LibWeb/Text/input/css/media-flip-of-a-rule-below-the-winner.htmlnew file mode 100644index 00000000000..d8d5764f74e--- /dev/null+++ b/Tests/LibWeb/Text/input/css/media-flip-of-a-rule-below-the-winner.html@@ -0,0 +1,93 @@+<!DOCTYPE html>+<style>+ .target { color: rgb(0, 0, 0); }++ .target.winner { color: rgb(1, 1, 1); }+ @media (prefers-color-scheme: dark) {+ .loser { color: rgb(2, 2, 2); }+ .partial { color: rgb(2, 2, 2); background-color: rgb(2, 2, 2); }+ .important { color: rgb(2, 2, 2) !important; }+ .container { color: rgb(2, 2, 2); }+ .later { color: rgb(2, 2, 2); }+ .pseudo::before { color: rgb(2, 2, 2); }+ .custom { --custom: rgb(2, 2, 2); color: var(--custom, rgb(3, 3, 3)); }+ }++ .later-winner { color: rgb(1, 1, 1); }+ @media (prefers-color-scheme: dark) {+ .later-winner { color: rgb(2, 2, 2); }+ }++ @layer low, high;+ @layer low {+ @media (prefers-color-scheme: dark) {+ .layered { color: rgb(2, 2, 2); }+ }+ }+ @layer high {+ .layered.layered { color: revert-layer; }+ .substituted.substituted { color: var(--undefined, revert-layer); }+ }+ @layer low {+ @media (prefers-color-scheme: dark) {+ .substituted { color: rgb(2, 2, 2); }+ }+ }++ .box { container-type: inline-size; width: 10px; }+ @container (min-width: 1000px) {+ .container.target.winner { color: rgb(1, 1, 1); }+ }+</style>+<div id="loser" class="loser target winner"><span id="loser-child"></span></div>+<div id="partial" class="partial target winner"></div>+<div id="important" class="important target winner"></div>+<div class="box"><div id="container" class="container target"></div></div>+<div id="later" class="later target"></div>+<div id="later-winner" class="later-winner"></div>+<div id="pseudo" class="pseudo target winner"></div>+<div id="custom" class="custom target winner"></div>+<div id="layered" class="layered"></div>+<div id="substituted" class="substituted"></div>+<script src="../include.js"></script>+<script>+test(() => {+ const color = (id, pseudo) => getComputedStyle(document.getElementById(id), pseudo).color;+ const report = title => {+ internals.updateStyle();+ println(`${title}:`);+ for (const id of ["loser", "partial", "important", "container", "later", "later-winner", "custom", "layered", "substituted"])+ println(` ${id}: ${color(id)}`);+ println(` loser-child: ${color("loser-child")}`);+ println(` partial background: ${getComputedStyle(document.getElementById("partial")).backgroundColor}`);+ println(` pseudo before: ${color("pseudo", "::before")}`);+ println(` custom property: ${getComputedStyle(document.getElementById("custom")).getPropertyValue("--custom")}`);+ };++ internals.setPreferredColorScheme("light");+ report("Light");++ internals.setPreferredColorScheme("dark");+ report("Dark");++ // A rule that arrived below the winner decides once the winner leaves.+ document.getElementById("loser").classList.remove("winner");+ report("Dark, without the winner");+ document.getElementById("loser").classList.add("winner");++ // A rule that left below the winner decides nothing once the winner leaves too.+ internals.setPreferredColorScheme("light");+ report("Light again");+ document.getElementById("loser").classList.remove("winner");+ report("Light, without the winner");+ document.getElementById("loser").classList.add("winner");++ // Flipping again finds the entries the rules are indexed with now.+ internals.setPreferredColorScheme("dark");+ report("Dark again");+ document.getElementById("loser").classList.remove("winner");+ report("Dark again, without the winner");++ internals.setPreferredColorScheme("auto");+});+</script>diff --git a/Tests/LibWeb/Text/input/css/rule-below-the-winner-with-rules-moving.html b/Tests/LibWeb/Text/input/css/rule-below-the-winner-with-rules-moving.htmlnew file mode 100644index 00000000000..dad91a62005--- /dev/null+++ b/Tests/LibWeb/Text/input/css/rule-below-the-winner-with-rules-moving.html@@ -0,0 +1,194 @@+<!DOCTYPE html>+<style id="sheet">+ @media (prefers-color-scheme: dark) { .declares-otherwise { margin-left: 5px; } }+ .declares-otherwise.w { color: rgb(1, 1, 1); }++ .root-loser { font-size: 20px; color: rgb(2, 2, 2); }+ .root-winner { font-size: 10px; color: rgb(1, 1, 1); }+ .reads-root-font { width: 2rem; }++ .class-flip-as-winner-deleted.l { color: rgb(2, 2, 2); }+ .class-flip-as-winner-deleted.w { color: rgb(1, 1, 1); }++ .class-flip-as-loser-deleted.l { color: rgb(2, 2, 2); }+ .class-flip-as-loser-deleted.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .declarations-move { color: rgb(2, 2, 2); } }+ .declarations-move.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .winner-deleted { color: rgb(2, 2, 2); } }+ .winner-deleted.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .loser-moves { color: rgb(2, 2, 2); } }+ .loser-moves.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .new-winner { color: rgb(2, 2, 2); } }++ @media (prefers-color-scheme: dark) { .selector-moves { color: rgb(2, 2, 2); } }+ .selector-moves.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) {+ .winner-flips-too { color: rgb(2, 2, 2); }+ .winner-flips-too.w { color: rgb(1, 1, 1); }+ }++ @media (prefers-color-scheme: light) { .winner-leaves-as-loser-arrives.w { color: rgb(1, 1, 1); } }+ @media (prefers-color-scheme: dark) { .winner-leaves-as-loser-arrives { color: rgb(2, 2, 2); } }++ @media (prefers-color-scheme: dark) {+ @layer flipping-first;+ }+ @layer flipping-second { .layer-order.w { color: rgb(1, 1, 1); } }+ @layer flipping-first { .layer-order.w { color: rgb(2, 2, 2); } }++ @media (prefers-color-scheme: dark) {+ @layer first-when-dark;+ }+ @layer second-when-dark { .layer-order-of-winner { color: rgb(1, 1, 1); } }+ @layer first-when-dark { @media (prefers-color-scheme: dark) { .layer-order-of-winner.w { color: rgb(2, 2, 2); } } }++ @media (prefers-color-scheme: dark) { @media (min-width: 1px) { .nested-media { color: rgb(2, 2, 2); } } }+ .nested-media.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .media-text-moves { color: rgb(2, 2, 2); } }+ .media-text-moves.w { color: rgb(1, 1, 1); }++ @media (prefers-color-scheme: dark) { .keyframes-flip { animation: flip 100s paused; } }+ .keyframes-flip.w { animation: none; }+ @media (prefers-color-scheme: dark) { @keyframes flip { from { margin-left: 3px; } to { margin-left: 3px; } } }++ @media (prefers-color-scheme: dark) { .winner-keyframes { margin-top: 2px; } }+ .winner-keyframes.w { margin-top: 1px; animation: flip-again 100s paused; }+ @keyframes flip-again { from { margin-left: 1px; } to { margin-left: 1px; } }+ @media (prefers-color-scheme: dark) { @keyframes flip-again { from { margin-left: 2px; } to { margin-left: 2px; } } }+</style>+<style id="moved-loser-sheet">.moved-loser { color: rgb(2, 2, 2); }</style>+<style id="flipped-loser-sheet">@media (prefers-color-scheme: dark) { .moved-loser { margin-top: 2px; } }</style>+<style>.moved-loser.w { color: rgb(1, 1, 1); margin-top: 1px; }</style>+<style id="flipped-sheet" media="(prefers-color-scheme: dark)">.sheet-media { color: rgb(2, 2, 2); }</style>+<style>.sheet-media.w { color: rgb(1, 1, 1); }</style>+<style id="disabled-sheet">@media (prefers-color-scheme: dark) { .sheet-disabled { color: rgb(2, 2, 2); } }</style>+<style id="winner-sheet">.sheet-disabled.w { color: rgb(1, 1, 1); }</style>+<style id="moved-sheet">.sheet-moved.w { color: rgb(1, 1, 1); }</style>+<style>@media (prefers-color-scheme: dark) { .sheet-moved { color: rgb(2, 2, 2); } }</style>+<div id="cases">+ <div id="declares-otherwise" class="declares-otherwise w"></div>+ <div id="moved-loser" class="moved-loser w"></div>+ <div id="reads-root-font" class="reads-root-font"></div>+ <div id="class-flip-as-winner-deleted" class="class-flip-as-winner-deleted w"></div>+ <div id="class-flip-as-loser-deleted" class="class-flip-as-loser-deleted w"></div>+ <div id="declarations-move" class="declarations-move w"></div>+ <div id="winner-deleted" class="winner-deleted w"></div>+ <div id="loser-moves" class="loser-moves w"></div>+ <div id="new-winner" class="new-winner"></div>+ <div id="selector-moves" class="selector-moves w"></div>+ <div id="winner-flips-too" class="winner-flips-too w"></div>+ <div id="winner-leaves-as-loser-arrives" class="winner-leaves-as-loser-arrives w"></div>+ <div id="layer-order" class="layer-order w"></div>+ <div id="layer-order-of-winner" class="layer-order-of-winner w"></div>+ <div id="nested-media" class="nested-media w"></div>+ <div id="media-text-moves" class="media-text-moves w"></div>+ <div id="keyframes-flip" class="keyframes-flip w"></div>+ <div id="winner-keyframes" class="winner-keyframes w"></div>+ <div id="sheet-media" class="sheet-media w"></div>+ <div id="sheet-disabled" class="sheet-disabled w"></div>+ <div id="sheet-moved" class="sheet-moved w"></div>+</div>+<script src="../include.js"></script>+<script>+test(() => {+ const report = title => {+ internals.updateStyle();+ println(`${title}:`);+ for (const element of document.getElementById("cases").children) {+ const style = getComputedStyle(element);+ println(` ${element.id}: ${style.color} ${style.animationName} ${style.marginLeft} ${style.marginTop} ${style.width}`);+ }+ };+ const sheet = document.getElementById("sheet").sheet;+ const ruleMatching = text => {+ for (const rule of sheet.cssRules) {+ if (rule.cssText.startsWith(text))+ return rule;+ }+ throw new Error(`No rule ${text}`);+ };+ const indexOf = rule => [...sheet.cssRules].indexOf(rule);+ const flip = scheme => internals.setPreferredColorScheme(scheme);++ // The rule that loses on the root element changes no font a length reads.+ const root = document.documentElement;+ report("Root, alone");+ root.classList.add("root-winner");+ report("Root, with the winner");+ root.classList.add("root-loser");+ report("Root, with the loser below the winner");+ root.classList.remove("root-winner");+ report("Root, with the loser alone");+ root.classList.remove("root-loser");++ // A class flips the entry in the update that removes the rule above it, and the one below it.+ document.getElementById("class-flip-as-winner-deleted").classList.add("l");+ sheet.deleteRule(indexOf(ruleMatching(".class-flip-as-winner-deleted.w")));+ report("Winner deleted as the class of the rule below it arrives");+ const loserDeleted = document.getElementById("class-flip-as-loser-deleted");+ loserDeleted.classList.add("l");+ report("The class of the rule below the winner arrived");+ loserDeleted.classList.remove("l");+ sheet.deleteRule(indexOf(ruleMatching(".class-flip-as-loser-deleted.l")));+ report("Rule below the winner deleted as its class leaves");+ loserDeleted.classList.remove("w");+ report("The winner over the rule deleted leaves");++ // The rule moves in the sheets as a media query flips. It still matches once the winner above it leaves.+ flip("dark");+ report("Dark, before a sheet moves");+ const movedLoser = document.getElementById("moved-loser");+ document.head.insertBefore(document.getElementById("moved-loser-sheet"), document.getElementById("flipped-loser-sheet").nextSibling);+ flip("light");+ report("Light as the sheet moves");+ movedLoser.classList.remove("w");+ report("Without the winner over the rule that moved");++ // The rule that held the winning value declares what it lost to now, as its media query flips off.+ const declaresOtherwise = sheet.cssRules[0].cssRules[0];+ flip("dark");+ report("Dark, with the rule declaring what wins");+ declaresOtherwise.style.removeProperty("margin-left");+ declaresOtherwise.style.setProperty("color", "rgb(2, 2, 2)");+ flip("light");+ report("Light, with the rule declaring otherwise");++ flip("light");+ report("Light");+ flip("dark");+ report("Dark");+ flip("light");+ report("Light again");++ // Each moves in the update that flips the media query.+ ruleMatching(".declarations-move.w").style.removeProperty("color");+ sheet.deleteRule(indexOf(ruleMatching(".winner-deleted.w")));+ sheet.insertRule(".new-winner.new-winner { color: rgb(1, 1, 1); }", sheet.cssRules.length);+ ruleMatching(".selector-moves.w").selectorText = ".selector-moves.unmatched";+ document.getElementById("disabled-sheet").sheet.disabled = false;+ document.getElementById("winner-sheet").sheet.disabled = true;+ document.head.append(document.getElementById("moved-sheet"));+ flip("dark");+ report("Dark with rules moving in the same update");++ flip("light");+ ruleMatching(".declarations-move.w").style.setProperty("color", "rgb(1, 1, 1)");+ sheet.deleteRule(indexOf(ruleMatching("@media (prefers-color-scheme: dark) {\n .loser-moves")));+ report("Light with the rules moved back");++ flip("dark");+ report("Dark with the rules moved back");++ ruleMatching("@media (prefers-color-scheme: dark) {\n .media-text-moves").media.mediaText = "(prefers-color-scheme: light)";+ flip("light");+ report("Light with the media text moved");++ flip("auto");+});+</script>diff --git a/Tests/LibWeb/Text/input/css/rule-index-updates-that-keep-no-style.html b/Tests/LibWeb/Text/input/css/rule-index-updates-that-keep-no-style.htmlnew file mode 100644index 00000000000..c9a127ae65a--- /dev/null+++ b/Tests/LibWeb/Text/input/css/rule-index-updates-that-keep-no-style.html@@ -0,0 +1,60 @@+<!DOCTYPE html>+<style id="first">+ .swapped { color: rgb(1, 1, 1); }+</style>+<style id="second">+ .swapped { color: rgb(2, 2, 2); }+</style>+<div id="swapped" class="swapped"></div>+<div id="outer"></div>+<template id="tree">+ <style>+ @media (prefers-color-scheme: dark) {+ .slotted { color: rgb(1, 1, 1); }+ }+ ::slotted(.slotted) { color: rgb(2, 2, 2); }+ </style>+ <slot></slot>+</template>+<script src="../include.js"></script>+<script>+test(() => {+ // Sheets swapped: the rule that loses now won before, which what it declares and where it stands no longer tell.+ const swapped = document.getElementById("swapped");+ const reportSwapped = title => {+ internals.updateStyle();+ println(`${title}: ${getComputedStyle(swapped).color}`);+ };+ reportSwapped("Sheets in order");+ document.getElementById("first").before(document.getElementById("second"));+ reportSwapped("Sheets swapped");+ document.getElementById("second").before(document.getElementById("first"));+ reportSwapped("Sheets swapped back");++ // Two shadow trees alike reach an element in the outer one, whose rule wins from there though the other is later.+ const tree = document.getElementById("tree");+ const attachTree = host => {+ const root = host.attachShadow({ mode: "open" });+ root.append(tree.content.cloneNode(true));+ return root;+ };+ const outer = attachTree(document.getElementById("outer"));+ const inner = document.createElement("div");+ outer.append(inner);+ attachTree(inner);+ const slotted = document.createElement("div");+ slotted.className = "slotted";+ inner.append(slotted);+ const reportSlotted = title => {+ internals.updateStyle();+ println(`${title}: ${getComputedStyle(slotted).color}`);+ };+ internals.setPreferredColorScheme("dark");+ reportSlotted("Dark");+ internals.setPreferredColorScheme("light");+ reportSlotted("Light");+ internals.setPreferredColorScheme("dark");+ reportSlotted("Dark again");+ internals.setPreferredColorScheme("auto");+});+</script>diff --git a/Tests/LibWeb/Text/input/css/sheet-moving-whole-against-a-cold-copy.html b/Tests/LibWeb/Text/input/css/sheet-moving-whole-against-a-cold-copy.htmlnew file mode 100644index 00000000000..47b3c16caae--- /dev/null+++ b/Tests/LibWeb/Text/input/css/sheet-moving-whole-against-a-cold-copy.html@@ -0,0 +1,97 @@+<!DOCTYPE html>+<style id="stays">+ /* NB: The first rule of the document, which no case matches. */+ .first-rule { color: rgb(9, 9, 9); }+ #sentinel.on { color: rgb(9, 9, 9); }+ .stays.stays { color: rgb(1, 1, 1); }+ #cases { container-type: inline-size; width: 400px; }+</style>+<div id="sentinel"></div>+<div id="cases"></div>+<script src="../include.js"></script>+<script>+// NB: Each case's element holds `stays`, whose rule above declares what the first rule does, and+// matches one rule of the sheet that moves as a whole.+const cases = {+ "decides": "background-color: rgb(2, 2, 2);",+ "loses": "color: rgb(2, 2, 2);",+ "decides-and-loses": "color: rgb(2, 2, 2); background-color: rgb(2, 2, 2);",+ "important": "color: rgb(2, 2, 2) !important;",+ "custom": "--custom: rgb(2, 2, 2);",+};+const filler = Array.from({ length: 64 }, (_, index) => `.filler-${index} { width: 1px; }`).join("\n");+const rulesOf = prefix => [+ ...Object.entries(cases).map(([name, declarations]) => `.${prefix}${name} { ${declarations} }`),+ `.${prefix}pseudo::before { content: "x"; color: rgb(2, 2, 2); }`,+].join("\n");++const properties = ["color", "background-color", "--custom"];+const describeStyle = (view, element, pseudo) => {+ const style = view.getComputedStyle(element, pseudo);+ return properties.map(property => style.getPropertyValue(property)).join("|");+};++function compareWithCold(title, sheetTexts) {+ // NB: A self-check runs where an update installs styles, which keeping every style does not.+ document.getElementById("sentinel").classList.toggle("on");+ internals.updateStyle();+ const frame = document.createElement("iframe");+ document.body.append(frame);+ const copy = frame.contentDocument;+ copy.open();+ copy.write(`<!DOCTYPE html>${sheetTexts.map(text => `<style>${text}</style>`).join("")}${document.getElementById("cases").outerHTML}`);+ copy.close();+ for (const element of document.getElementById("cases").children) {+ const coldElement = copy.getElementById(element.id);+ for (const pseudo of [undefined, "::before"]) {+ const live = describeStyle(window, element, pseudo);+ const cold = describeStyle(frame.contentWindow, coldElement, pseudo);+ if (live === cold)+ println(`${title}: ${element.id} ${pseudo ?? ""} as a cold copy, ${live}`);+ else+ println(`${title}: ${element.id} ${pseudo ?? ""} differs: live ${live}, cold ${cold}`);+ }+ }+ frame.remove();+}++test(() => {+ const container = document.getElementById("cases");+ for (const name of [...Object.keys(cases), "pseudo", "container"]) {+ const element = document.createElement("div");+ element.id = name;+ element.className = `stays ${name} replaced-${name}`;+ container.append(element);+ }+ const stays = document.getElementById("stays").textContent;++ // A sheet whose rules all sit in one block of a flipping media query, which holds enough+ // selectors for the process to index it in a segment.+ internals.setPreferredColorScheme("light");+ const rules = `${rulesOf("")}\n@container (min-width: 1px) { .container { background-color: rgb(2, 2, 2); } }\n${filler}`;+ const block = `@media (prefers-color-scheme: dark) { ${rules} }`;+ const flipping = document.createElement("style");+ flipping.textContent = block;+ document.head.append(flipping);+ compareWithCold("Light", [stays, block]);+ internals.setPreferredColorScheme("dark");+ compareWithCold("Dark", [stays, block]);+ internals.setPreferredColorScheme("light");+ compareWithCold("Light again", [stays, block]);+ internals.setPreferredColorScheme("dark");+ compareWithCold("Dark again", [stays, block]);+ internals.setPreferredColorScheme("auto");+ flipping.remove();++ // A sheet whose text is replaced, whose rules keep their identities by position.+ const sheet = new CSSStyleSheet();+ const before = `${rulesOf("replaced-")}\n${filler}`;+ sheet.replaceSync(before);+ document.adoptedStyleSheets = [sheet];+ compareWithCold("Adopted", [stays, before]);+ // NB: No case matches what arrives in place of the rules it matched.+ const after = `${rulesOf("gone-")}\n${filler}`;+ sheet.replaceSync(after);+ compareWithCold("Replaced", [stays, after]);+});+</script>