OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Polygon Invalid Points</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-polygo
n"> |
| 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-
property"> |
| 10 <meta name="assert" content="A polygonal basic shape's points may be eit
her lengths or percentages"> |
| 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_polygon_points_tests = [ |
| 20 {"name": "polygon()"}, |
| 21 {"name": "polygon(evenodd)"}, |
| 22 {"name": "polygon(nonzero)"}, |
| 23 {"name": "polygon(evenodd, foo bar)"}, |
| 24 {"name": "polygon(nonzero, bar foo)"}, |
| 25 {"name": "polygon(foo, 1px 2px)"}, |
| 26 {"name": "polygon(evenodd 1px 2px)"}, |
| 27 {"name": "polygon(nonzero 1px 2px)"}, |
| 28 {"name": "polygon(1px)"}, |
| 29 {"name": "polygon(1px 2px 3px)"}, |
| 30 {"name": "polygon(1px 2px 3px 4px)"}, |
| 31 {"name": "polygon(1px, 2px)"}, |
| 32 {"name": "polygon(1px 2px evenodd)"}, |
| 33 {"name": "polygon(1px 2px nonzero)"}, |
| 34 {"name": "polygon(evenodd, 10 20)"}, |
| 35 {"name": "polygon(nonzero, 10 20)"} |
| 36 ]; |
| 37 generate_tests( ParsingUtils.testInlineStyle, |
| 38 ParsingUtils.buildTestCases(invalid_polygon_points_t
ests) ); |
| 39 </script> |
| 40 </body> |
| 41 </html> |
OLD | NEW |