wpt / css / css-gaps / parsing / gap-decorations-color-invalid.html

Status: PASS | Duration: 78ms | Subtests: 18/18 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
e.style['column-rule-color'] = "auto" should not set the property valuePASS
e.style['column-rule-color'] = "red blue green" should not set the property valuePASS
e.style['column-rule-color'] = "repeat(auto, red blue green)" should not set the property valuePASS
e.style['column-rule-color'] = "repeat(0, red, blue, green)" should not set the property valuePASS
e.style['column-rule-color'] = "repeat(-1, red, blue, green)" should not set the property valuePASS
e.style['column-rule-color'] = "repeat(auto, red), red, repeat(auto, blue)" should not set the property valuePASS
e.style['row-rule-color'] = "auto" should not set the property valuePASS
e.style['row-rule-color'] = "red blue green" should not set the property valuePASS
e.style['row-rule-color'] = "repeat(auto, red blue green)" should not set the property valuePASS
e.style['row-rule-color'] = "repeat(0, red, blue, green)" should not set the property valuePASS
e.style['row-rule-color'] = "repeat(-1, red, blue, green)" should not set the property valuePASS
e.style['row-rule-color'] = "repeat(auto, red), red, repeat(auto, blue)" should not set the property valuePASS
e.style['rule-color'] = "auto" should not set the property valuePASS
e.style['rule-color'] = "red blue green" should not set the property valuePASS
e.style['rule-color'] = "repeat(auto, red blue green)" should not set the property valuePASS
e.style['rule-color'] = "repeat(0, red, blue, green)" should not set the property valuePASS
e.style['rule-color'] = "repeat(-1, red, blue, green)" should not set the property valuePASS
e.style['rule-color'] = "repeat(auto, red), red, repeat(auto, blue)" should not set the property valuePASS

/css/css-gaps/parsing/gap-decorations-color-invalid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Gap Decorations: column-rule-color parsing</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/#column-row-rule-color">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<meta name="assert" content="*-rule-color supports only the grammar '[ <line-color-list> | <auto-line-color-list> ]'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
const properties = ["column-rule-color", "row-rule-color", "rule-color"];
for (let property of properties) {
    test_invalid_value(property, "auto");

    test_invalid_value(property, "red blue green");
    test_invalid_value(property, "repeat(auto, red blue green)");
    test_invalid_value(property, "repeat(0, red, blue, green)");
    test_invalid_value(property, "repeat(-1, red, blue, green)");
    test_invalid_value(property, "repeat(auto, red), red, repeat(auto, blue)");
}
</script>
</body>
</html>