inset-invalid.html (1200B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Positioned Layout Module: parsing inset with invalid values</title> 6 <link rel="help" href="https://drafts.csswg.org/css-position/#insets"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="/css/support/parsing-testcommon.js"></script> 10 </head> 11 <body> 12 <script> 13 const single_values = [ 14 "0deg", 15 "calc(20deg)", 16 "10" 17 ]; 18 const double_values = [ 19 "inherit auto", 20 "inherit inherit" 21 ]; 22 function test_inset_longhand(longhand_property) { 23 for (let value of single_values) 24 test_invalid_value(longhand_property, value); 25 } 26 function test_inset_shorthand(shorthand_property) { 27 for (let value of single_values) 28 test_invalid_value(shorthand_property, value); 29 for (let value of double_values) 30 test_invalid_value(shorthand_property, value); 31 } 32 33 test_inset_longhand("inset-block-start"); 34 test_inset_longhand("inset-block-end"); 35 test_inset_longhand("inset-inline-start"); 36 test_inset_longhand("inset-inline-end"); 37 38 test_inset_shorthand("inset-block"); 39 test_inset_shorthand("inset-inline"); 40 </script> 41 </body> 42 </html>