Issue #2862 - Change tests from lowering to flattening

This commit is contained in:
Basilisk-Dev 2026-03-13 09:01:56 -04:00 committed by wuggy
commit df9550ae5a
4 changed files with 11 additions and 11 deletions

View file

@ -72,9 +72,9 @@ support-files = file_animations_with_disabled_properties.html
[test_attribute_selector_eof_behavior.html]
[test_aspect_ratio_property.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_css_math_functions.html]

View file

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Test for Basic CSS Nesting Lowering</title>
<title>Test for Basic CSS Nesting Flattening</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
</head>
@ -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");
}

View file

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Test CSS Nesting Lowering Parser Edges</title>
<title>Test CSS Nesting Flattening Parser Edges</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
</head>
@ -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");

View file

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Test CSS Nesting Lowering Recovery Paths</title>
<title>Test CSS Nesting Flattening Recovery Paths</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
</head>