offset-parsing-invalid.html (1361B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Motion Path Module Level 1: parsing offset with invalid values</title> 6 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> 7 <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-shorthand"> 8 <meta name="assert" content="offset supports only the grammar from the spec."> 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("offset", "100px 0deg path('m 0 0 h 100')"); 16 test_invalid_value("offset", "30deg path('M 20 30 A 60 70 80')"); 17 test_invalid_value("offset", "30deg"); 18 test_invalid_value("offset", "auto 30deg 90px"); 19 test_invalid_value("offset", "none / 10px 20px 30deg"); 20 test_invalid_value("offset", "none /"); 21 test_invalid_value("offset", "path('M 20 30 A 60 70 80') bottom"); 22 test_invalid_value("offset", "path('m 0 0 h 100') 100px 0"); 23 test_invalid_value("offset", "path('m 0 0 h 100') 100px 200px"); 24 test_invalid_value("offset", "path('m 0 0 h 100') 200% auto 100px"); 25 test_invalid_value("offset", "path('m 0 0 h 100') auto reverse"); 26 test_invalid_value("offset", "path('m 0 0 h 100') reverse 100px 30deg"); 27 test_invalid_value("offset", "ray(sides 0) 50% 90deg auto"); 28 </script> 29 </body> 30 </html>