border-image-slice-invalid.html (989B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Backgrounds and Borders Module Level 3: parsing border-image-slice with invalid values</title> 6 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> 7 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-slice"> 8 <meta name="assert" content="border-image-slice supports only the grammar '[<number> | <percentage>]{1,4} && fill?'."> 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 test_invalid_value("border-image-slice", "fill"); 16 17 test_invalid_value("border-image-slice", "1 -2% fill"); 18 test_invalid_value("border-image-slice", "-1 2% fill"); 19 20 test_invalid_value("border-image-slice", "1 2 3 4 5"); 21 22 test_invalid_value("border-image-slice", "1% fill 2%"); 23 24 test_invalid_value("border-image-slice", "-10"); 25 </script> 26 </body> 27 </html>