From ac4c7bca081efae702fc43f4da6084cb67aaa11a Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Fri, 13 Mar 2026 09:01:56 -0400 Subject: [PATCH] Issue #2862 - Change tests from lowering to flattening --- layout/style/test/mochitest.ini | 6 +++--- ...owering.html => test_basic_nesting_flattening.html} | 10 +++++----- ....html => test_nesting_flattening_parser_edges.html} | 4 ++-- ...very.html => test_nesting_flattening_recovery.html} | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) rename layout/style/test/{test_basic_nesting_lowering.html => test_basic_nesting_flattening.html} (93%) rename layout/style/test/{test_nesting_lowering_parser_edges.html => test_nesting_flattening_parser_edges.html} (97%) rename layout/style/test/{test_nesting_lowering_recovery.html => test_nesting_flattening_recovery.html} (98%) diff --git a/layout/style/test/mochitest.ini b/layout/style/test/mochitest.ini index 926c47542b..f9874a52af 100644 --- a/layout/style/test/mochitest.ini +++ b/layout/style/test/mochitest.ini @@ -71,9 +71,9 @@ support-files = file_animations_with_disabled_properties.html [test_at_rule_parse_serialize.html] [test_attribute_selector_eof_behavior.html] [test_background_blend_mode.html] -[test_basic_nesting_lowering.html] -[test_nesting_lowering_parser_edges.html] -[test_nesting_lowering_recovery.html] +[test_basic_nesting_flattening.html] +[test_nesting_flattening_parser_edges.html] +[test_nesting_flattening_recovery.html] [test_box_size_keywords.html] [test_bug73586.html] [test_bug74880.html] diff --git a/layout/style/test/test_basic_nesting_lowering.html b/layout/style/test/test_basic_nesting_flattening.html similarity index 93% rename from layout/style/test/test_basic_nesting_lowering.html rename to layout/style/test/test_basic_nesting_flattening.html index 6c08934a11..b24af42e76 100644 --- a/layout/style/test/test_basic_nesting_lowering.html +++ b/layout/style/test/test_basic_nesting_flattening.html @@ -2,7 +2,7 @@ - Test for Basic CSS Nesting Lowering + Test for Basic CSS Nesting Flattening @@ -68,15 +68,15 @@ function runChecks(style, report) { colorOf(window, scope, "color"), "rgb(1, 2, 3)"); report(colorOf(window, desc, "color") === "rgb(4, 5, 6)", - "nested descendant rule should be lowered", + "nested descendant rule should be flattened", colorOf(window, desc, "color"), "rgb(4, 5, 6)"); report(colorOf(window, desc, "border-left-color") === "rgb(19, 20, 21)", - "nested type selector rule should be lowered", + "nested type selector rule should be flattened", colorOf(window, desc, "border-left-color"), "rgb(19, 20, 21)"); report(colorOf(window, desc, "border-bottom-color") === "rgb(22, 23, 24)", - "nested type selector pseudos should be lowered", + "nested type selector pseudos should be flattened", colorOf(window, desc, "border-bottom-color"), "rgb(22, 23, 24)"); report(colorOf(window, scope, "background-color") === "rgb(7, 8, 9)", @@ -96,7 +96,7 @@ function runChecks(style, report) { colorOf(window, scope, "border-right-color"), "rgb(16, 17, 18)"); report(style.sheet.cssRules.length === 9, - "lowering should produce flat top-level rules", + "flattening should produce flat top-level rules", String(style.sheet.cssRules.length), "9"); } diff --git a/layout/style/test/test_nesting_lowering_parser_edges.html b/layout/style/test/test_nesting_flattening_parser_edges.html similarity index 97% rename from layout/style/test/test_nesting_lowering_parser_edges.html rename to layout/style/test/test_nesting_flattening_parser_edges.html index 9ab78ac501..100ff1bf1d 100644 --- a/layout/style/test/test_nesting_lowering_parser_edges.html +++ b/layout/style/test/test_nesting_flattening_parser_edges.html @@ -2,7 +2,7 @@ - Test CSS Nesting Lowering Parser Edges + Test CSS Nesting Flattening Parser Edges @@ -71,7 +71,7 @@ function runChecks(style, report) { var payload = propOf(window, scope, "--payload"); report(payload.indexOf("alpha") !== -1 && payload.indexOf("beta") !== -1, - "custom property payload should survive lowering", + "custom property payload should survive flattening", payload, "contains alpha and beta"); diff --git a/layout/style/test/test_nesting_lowering_recovery.html b/layout/style/test/test_nesting_flattening_recovery.html similarity index 98% rename from layout/style/test/test_nesting_lowering_recovery.html rename to layout/style/test/test_nesting_flattening_recovery.html index 3e3184931f..63eed9091b 100644 --- a/layout/style/test/test_nesting_lowering_recovery.html +++ b/layout/style/test/test_nesting_flattening_recovery.html @@ -2,7 +2,7 @@ - Test CSS Nesting Lowering Recovery Paths + Test CSS Nesting Flattening Recovery Paths