Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-gaps/parsing/gap-decorations-rule-shorthand-invalid.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Gap Decorations: *-rule parsing</title>
<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>