OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Polygon Valid 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 polygon's vertices can be in signed posit
ive/negative or decimal/non-decimal format"> |
| 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_points_tests = [ |
| 20 { |
| 21 "actual": "polygon(+1px +2px, +3px +4px, +5px +6px)", |
| 22 "expected_inline": "polygon(1px 2px, 3px 4px, 5px 6px)", |
| 23 "expected_computed": "polygon(1px 2px, 3px 4px, 5px 6px)" |
| 24 }, |
| 25 { |
| 26 "actual": "polygon(-1px -2px, -3px -4px, -5px -6px)", |
| 27 "expected_inline": "polygon(-1px -2px, -3px -4px, -5px -6px)", |
| 28 "expected_computed": "polygon(-1px -2px, -3px -4px, -5px -6px)
" |
| 29 }, |
| 30 { |
| 31 "actual": "polygon(+1px +2px, -3px -4px, +5px +6px)", |
| 32 "expected_inline": "polygon(1px 2px, -3px -4px, 5px 6px)", |
| 33 "expected_computed": "polygon(1px 2px, -3px -4px, 5px 6px)" |
| 34 }, |
| 35 { |
| 36 "actual": "polygon(-1px -2px, +3px +4px, -5px -6px)", |
| 37 "expected_inline": "polygon(-1px -2px, 3px 4px, -5px -6px)", |
| 38 "expected_computed": "polygon(-1px -2px, 3px 4px, -5px -6px)" |
| 39 }, |
| 40 { |
| 41 "actual": "polygon(1.0px 2.22px, 3.40px 4.555px, 5.607px 6.99p
x)", |
| 42 "expected_inline": "polygon(1px 2.22px, 3.4px 4.555px, 5.607px
6.99px)", |
| 43 "expected_computed": "polygon(1px 2.22px, 3.4px 4.555px, 5.607
px 6.99px)" |
| 44 }, |
| 45 { |
| 46 "actual": "polygon(+1.0px -2.22px, +3.40px -4.550px, 5.67px -6
.99px)", |
| 47 "expected_inline": "polygon(1px -2.22px, 3.4px -4.55px, 5.67px
-6.99px)", |
| 48 "expected_computed": "polygon(1px -2.22px, 3.4px -4.55px, 5.67
px -6.99px)" |
| 49 } |
| 50 ]; |
| 51 generate_tests( ParsingUtils.testInlineStyle, |
| 52 ParsingUtils.buildTestCases(valid_polygon_points_tes
ts, "inline") ); |
| 53 generate_tests( ParsingUtils.testComputedStyle, |
| 54 ParsingUtils.buildTestCases(valid_polygon_points_tes
ts, "computed") ); |
| 55 </script> |
| 56 </body> |
| 57 </html> |
OLD | NEW |