wpt / css / css-gaps / parsing / gap-decorations-rule-shorthand-invalid.html

Status: PASS | Duration: 40ms | Subtests: 27/27 | 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'] = "auto" should not set the property valuePASS
e.style['column-rule'] = "red 5px solid red" should not set the property valuePASS
e.style['column-rule'] = "repeat(auto, red 5px green ridge)" should not set the property valuePASS
e.style['column-rule'] = "repeat(auto, 5px solid red), 5px solid red, repeat(auto, 5px solid red)" should not set the property valuePASS
e.style['column-rule'] = "repeat(0, 5px red)" should not set the property valuePASS
e.style['column-rule'] = "repeat(-1, thin green red)" should not set the property valuePASS
e.style['column-rule'] = "repeat(auto, )" should not set the property valuePASS
e.style['column-rule'] = "repeat()" should not set the property valuePASS
e.style['column-rule'] = "" should not set the property valuePASS
e.style['row-rule'] = "auto" should not set the property valuePASS
e.style['row-rule'] = "red 5px solid red" should not set the property valuePASS
e.style['row-rule'] = "repeat(auto, red 5px green ridge)" should not set the property valuePASS
e.style['row-rule'] = "repeat(auto, 5px solid red), 5px solid red, repeat(auto, 5px solid red)" should not set the property valuePASS
e.style['row-rule'] = "repeat(0, 5px red)" should not set the property valuePASS
e.style['row-rule'] = "repeat(-1, thin green red)" should not set the property valuePASS
e.style['row-rule'] = "repeat(auto, )" should not set the property valuePASS
e.style['row-rule'] = "repeat()" should not set the property valuePASS
e.style['row-rule'] = "" should not set the property valuePASS
e.style['rule'] = "auto" should not set the property valuePASS
e.style['rule'] = "red 5px solid red" should not set the property valuePASS
e.style['rule'] = "repeat(auto, red 5px green ridge)" should not set the property valuePASS
e.style['rule'] = "repeat(auto, 5px solid red), 5px solid red, repeat(auto, 5px solid red)" should not set the property valuePASS
e.style['rule'] = "repeat(0, 5px red)" should not set the property valuePASS
e.style['rule'] = "repeat(-1, thin green red)" should not set the property valuePASS
e.style['rule'] = "repeat(auto, )" should not set the property valuePASS
e.style['rule'] = "repeat()" should not set the property valuePASS
e.style['rule'] = "" should not set the property valuePASS

/css/css-gaps/parsing/gap-decorations-rule-shorthand-invalid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Gap Decorations: *-rule parsing</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/#propdef-column-rule">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<meta name="assert" content="*-rule supports the full grammar '[ <gap-rule-list> | <gap-auto-rule-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", "row-rule", "rule"];
for (let property of properties) {
    test_invalid_value(property, "auto");

    test_invalid_value(property, "red 5px solid red");
    test_invalid_value(property, "repeat(auto, red 5px green ridge)");
    test_invalid_value(property, "repeat(auto, 5px solid red), 5px solid red, repeat(auto, 5px solid red)");
    test_invalid_value(property, "repeat(0, 5px red)");
    test_invalid_value(property, "repeat(-1, thin green red)");
    test_invalid_value(property, "repeat(auto, )");
    test_invalid_value(property, "repeat()");
    test_invalid_value(property, "");
}
</script>
</body>
</html>