gap-decorations-width-invalid.html (1271B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Gap Decorations: column-rule-width parsing</title> 6 <link rel="help" href="https://kbabbitt.github.io/css-gap-decorations/#column-row-rule-width"> 7 <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> 8 <meta name="assert" content="*-rule-width supports only the grammar '[ <line-width-list> | <auto-line-width-list> ]'."> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <script src="/css/support/parsing-testcommon.js"></script> 12 </head> 13 <body> 14 <script> 15 const properties = ["column-rule-width", "row-rule-width", "rule-width"]; 16 for (let property of properties) { 17 test_invalid_value(property, "auto"); 18 19 test_invalid_value(property, "thin, medium, thick"); 20 test_invalid_value(property, "repeat(auto, thin, 10px, thick)"); 21 test_invalid_value(property, "repeat(0, 10px, 20px, 30px)"); 22 test_invalid_value(property, "repeat(-1, 10px, thin, medium)"); 23 test_invalid_value(property, "repeat(auto, 10px) thin repeat(auto, thick)"); 24 test_invalid_value(property, "10 20 30"); 25 test_invalid_value(property, "repeat(2, -20px)"); 26 test_invalid_value(property, "30%"); 27 } 28 29 </script> 30 </body> 31 </html>