OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Polygon Valid Formats</title> |
| 5 <link rel="author" title="Adobe" href="http://html.adobe.com/"> |
| 6 <link rel="author" title="Bear Travis" href="mailto:betravis@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 has an optional fil
l-rule and one or more pairs of coordinates"> |
| 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 valid_polygon_tests = [ |
| 20 { |
| 21 "name": "Single point", |
| 22 "actual": "polygon(1px 2px)", |
| 23 "expected_inline": "polygon(1px 2px)", |
| 24 "expected_computed": "polygon(1px 2px)" |
| 25 }, |
| 26 { |
| 27 "name": "Single point with fill-rule", |
| 28 "actual": "polygon(evenodd, 1px 2px)", |
| 29 "expected_inline": "polygon(evenodd, 1px 2px)", |
| 30 "expected_computed": "polygon(evenodd, 1px 2px)" |
| 31 }, |
| 32 { |
| 33 "name": "Multiple points", |
| 34 "actual": "polygon(1px 2px, 3px 4px, 5px 6px)", |
| 35 "expected_inline": "polygon(1px 2px, 3px 4px, 5px 6px)", |
| 36 "expected_computed": "polygon(1px 2px, 3px 4px, 5px 6px)" |
| 37 }, |
| 38 { |
| 39 "name": "Multiple points with fill-rule", |
| 40 "actual": "polygon(evenodd, 1px 2px, 3px 4px, 5px 6px)", |
| 41 "expected_inline": "polygon(evenodd, 1px 2px, 3px 4px, 5px
6px)", |
| 42 "expected_computed": "polygon(evenodd, 1px 2px, 3px 4px, 5
px 6px)" |
| 43 } |
| 44 ]; |
| 45 generate_tests( ParsingUtils.testInlineStyle, |
| 46 ParsingUtils.buildTestCases(valid_polygon_tests, "in
line") ); |
| 47 generate_tests( ParsingUtils.testComputedStyle, |
| 48 ParsingUtils.buildTestCases(valid_polygon_tests, "co
mputed") ); |
| 49 </script> |
| 50 </body> |
| 51 </html> |
OLD | NEW |