image-orientation-invalid.html (1398B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Images Module Level 3: parsing image-orientation 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-images-3/#propdef-image-orientation"> 8 <meta name="assert" content="image-orientation supports only the grammar 'from-image | none'."> 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("image-orientation", "auto"); 16 test_invalid_value("image-orientation", "0"); 17 test_invalid_value("image-orientation", "0 flip"); 18 test_invalid_value("image-orientation", "0deg from-image"); 19 test_invalid_value("image-orientation", "flip 0deg"); 20 test_invalid_value("image-orientation", "flip from-image"); 21 test_invalid_value("image-orientation", "from-image 0deg"); 22 test_invalid_value("image-orientation", "from-image flip"); 23 24 // An older version of the spec allowed [ <angle> | <angle>? flip ] values, 25 // so test that we no longer support them. 26 test_invalid_value("image-orientation", "30deg"); 27 test_invalid_value("image-orientation", "flip"); 28 test_invalid_value("image-orientation", "0deg flip"); 29 test_invalid_value("image-orientation", "-1.25turn flip"); 30 </script> 31 </body> 32 </html>