perspective-origin-invalid.html (1375B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Transform Module Level 2: parsing perspective-origin with invalid values</title> 6 <link rel="help" href="https://drafts.csswg.org/css-transforms-2/#perspective-origin-property"> 7 <meta name="assert" content="perspective-origin supports only the '<position>' grammar."> 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("perspective-origin", "auto"); 15 test_invalid_value("perspective-origin", "1px 2px 3px"); 16 test_invalid_value("perspective-origin", "left right"); 17 test_invalid_value("perspective-origin", "bottom 10% top 20%"); 18 19 // The following were supported in an earlier version of the spec. 20 // https://github.com/w3c/csswg-drafts/issues/2140 21 test_invalid_value("perspective-origin", "center left 1px"); 22 test_invalid_value("perspective-origin", "center top 2px"); 23 test_invalid_value("perspective-origin", "right 3% center"); 24 test_invalid_value("perspective-origin", "left 4px top"); 25 test_invalid_value("perspective-origin", "right top 5px"); 26 test_invalid_value("perspective-origin", "bottom 6% center"); 27 test_invalid_value("perspective-origin", "bottom 7% left"); 28 test_invalid_value("perspective-origin", "bottom right 8%"); 29 30 </script> 31 </body> 32 </html>