OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Inset - Invalid args</title> |
| 5 <link rel="author" title="Adobe" href="http://html.adobe.com/"> |
| 6 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"> |
| 7 <link rel="reviewer" title="Alan Stearns" href="mailto:stearns@adobe.com
"> <!-- 2014-03-04 --> |
| 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-inset"
> |
| 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-
property"> |
| 10 <meta name="assert" content="These tests verifies that invalid inset() a
rguments don't parse."> |
| 11 <meta name="flags" content="dom"> |
| 12 <script src="../../../../../resources/testharness.js"></script> |
| 13 <script src="../../../../../resources/testharnessreport.js"></script> |
| 14 <script src="support/parsing-utils.js"></script> |
| 15 </head> |
| 16 <body> |
| 17 <div id="log"></div> |
| 18 <script type="text/javascript"> |
| 19 var invalid_inset_args_tests = [ |
| 20 // no units |
| 21 {"name": "inset(10 20px 30px 40px)"}, |
| 22 {"name": "inset(10px 20 30px 40px)"}, |
| 23 {"name": "inset(10px, 20px 30 40px)"}, |
| 24 {"name": "inset(10px 20px 30px 40)"}, |
| 25 {"name": "inset(10 20 30 40)"}, |
| 26 // comma delimited args |
| 27 {"name": "inset(10px, 20px, 30px, 40px)"}, |
| 28 {"name": "inset(10px, 20px, 30px 40px)"}, |
| 29 {"name": "inset(10px, 20px 30px 40px)"}, |
| 30 {"name": "inset(10px 20px, 30px, 40px)"}, |
| 31 {"name": "inset(10px 20px 30px, 40px)"}, |
| 32 // bogus args |
| 33 {"name": "inset(foo bar blah woo)"}, |
| 34 {"name": "inset(10px roo 30px coo)"}, |
| 35 {"name": "inset(may 20px blah 40px)"} |
| 36 ]; |
| 37 generate_tests(ParsingUtils.testInlineStyle, |
| 38 ParsingUtils.buildTestCases(invalid_inset_args_tests)
); |
| 39 </script> |
| 40 </body> |
| 41 </html> |
OLD | NEW |