OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Basic Shape Computed Percentage Lengths</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/#shape-outside-
property"> |
| 9 <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#computed"> |
| 10 <meta name="assert" content="The basic shape can contain percentages, wh
ich remain unchanged when computed"> |
| 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": "inset", |
| 22 "actual": "inset(10% 20% 30% 40% round 10% 20% 30% 40% / 10%
20% 30% 40%)", |
| 23 "expected_computed": "inset(10% 20% 30% 40% round 10% 20% 30
% 40%)" |
| 24 }, |
| 25 { |
| 26 "name": "circle", |
| 27 "actual": "circle(10% at 10% 20%)", |
| 28 "expected_computed": "circle(10% at 10% 20%)" |
| 29 }, |
| 30 { |
| 31 "name": "ellipse", |
| 32 "actual": "ellipse(10% 20% at 10% 20%)", |
| 33 "expected_computed": "ellipse(10% 20% at 10% 20%)" |
| 34 }, |
| 35 { |
| 36 "name": "polygon", |
| 37 "actual": "polygon(nonzero, 10% 20%, 30% 40%, 50% 60%)", |
| 38 "expected_computed": "polygon(10% 20%, 30% 40%, 50% 60%)" |
| 39 } |
| 40 ]; |
| 41 |
| 42 generate_tests( ParsingUtils.testComputedStyle, |
| 43 ParsingUtils.buildTestCases(valid_polygon_tests, "co
mputed") ); |
| 44 </script> |
| 45 </body> |
| 46 </html> |
OLD | NEW |