rotate-parsing-invalid.html (912B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Transform Module Level 2: parsing rotate with invalid values</title> 6 <link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-rotate"> 7 <meta name="assert" content="rotate supports only the grammar 'none | <number>{3}? <angle>'."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/parsing-testcommon.js"></script> 11 </head> 12 <body> 13 <script> 14 test_invalid_value("rotate", "100px"); 15 16 test_invalid_value("rotate", "100 400deg"); 17 test_invalid_value("rotate", "100 200 400deg"); 18 test_invalid_value("rotate", "100 200 300 500 400deg"); 19 20 test_invalid_value("rotate", "x y 45deg"); 21 test_invalid_value("rotate", "45deg x y"); 22 test_invalid_value("rotate", "z"); 23 test_invalid_value("rotate", "1 2"); 24 test_invalid_value("rotate", "1 2 3"); 25 </script> 26 </body> 27 </html>