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-style-invalid.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Gap Decorations: column-rule-style parsing</title>
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<meta name="assert" content="*-rule-style supports only the grammar '[ <line-style-list> | <auto-line-style-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-style", "row-rule-style", "rule-style"];
for (let property of properties) {
test_invalid_value(property, "auto");
test_invalid_value(property, "dashed, dotted, solid");
test_invalid_value(property, "repeat(auto, groove, dotted, ridge)");
test_invalid_value(property, "repeat(0, dotted, solid, double)");
test_invalid_value(property, "repeat(-1, dotted, dashed, double)");
test_invalid_value(property, "repeat(auto, dotted) red repeat(auto, ridge)");
}
</script>
</body>
</html>