OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Ellipse Radii - positive/negative, decimal/non-deci
mal</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-ellips
e"> |
| 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-
property"> |
| 10 <meta name="assert" content="An ellipse's radii may be in signed positiv
e or decimal/non-decimal format. Negative |
| 11 radii are invalid."> |
| 12 <meta name="flags" content="dom"> |
| 13 <script src="../../../../../resources/testharness.js"></script> |
| 14 <script src="../../../../../resources/testharnessreport.js"></script> |
| 15 <script src="support/parsing-utils.js"></script> |
| 16 </head> |
| 17 <body> |
| 18 <div id="log"></div> |
| 19 <script type="text/javascript"> |
| 20 var valid_ellipse_radii_tests = [ |
| 21 { |
| 22 "actual": "ellipse(+10px +20px)", |
| 23 "expected_inline": "ellipse(10px 20px at 50% 50%)", |
| 24 "expected_computed": "ellipse(10px 20px at 50% 50%)" |
| 25 }, |
| 26 { |
| 27 "actual": "ellipse(+30px 40px)", |
| 28 "expected_inline": "ellipse(30px 40px at 50% 50%)", |
| 29 "expected_computed": "ellipse(30px 40px at 50% 50%)" |
| 30 }, |
| 31 { |
| 32 "actual": "ellipse(50px +60px)", |
| 33 "expected_inline": "ellipse(50px 60px at 50% 50%)", |
| 34 "expected_computed": "ellipse(50px 60px at 50% 50%)" |
| 35 }, |
| 36 { |
| 37 "actual": "ellipse(+10.00px +20.230px)", |
| 38 "expected_inline": "ellipse(10px 20.23px at 50% 50%)", |
| 39 "expected_computed": "ellipse(10px 20.23px at 50% 50%)" |
| 40 }, |
| 41 { |
| 42 "actual": "ellipse(+30.00px 40.567px)", |
| 43 "expected_inline": "ellipse(30px 40.567px at 50% 50%)", |
| 44 "expected_computed": "ellipse(30px 40.567px at 50% 50%)" |
| 45 }, |
| 46 { |
| 47 "actual": "ellipse(50.10px +60.7px)", |
| 48 "expected_inline": "ellipse(50.1px 60.7px at 50% 50%)", |
| 49 "expected_computed": "ellipse(50.1px 60.7px at 50% 50%)" |
| 50 }, |
| 51 { |
| 52 "actual": "ellipse(+10% +20%)", |
| 53 "expected_inline": "ellipse(10% 20% at 50% 50%)", |
| 54 "expected_computed": "ellipse(10% 20% at 50% 50%)" |
| 55 }, |
| 56 { |
| 57 "actual": "ellipse(+30% 40%)", |
| 58 "expected_inline": "ellipse(30% 40% at 50% 50%)", |
| 59 "expected_computed": "ellipse(30% 40% at 50% 50%)" |
| 60 }, |
| 61 { |
| 62 "actual": "ellipse(+50% +60%)", |
| 63 "expected_inline": "ellipse(50% 60% at 50% 50%)", |
| 64 "expected_computed": "ellipse(50% 60% at 50% 50%)" |
| 65 }, |
| 66 { |
| 67 "actual": "ellipse(+10.00% +20.230%)", |
| 68 "expected_inline": "ellipse(10% 20.23% at 50% 50%)", |
| 69 "expected_computed": "ellipse(10% 20.23% at 50% 50%)" |
| 70 }, |
| 71 { |
| 72 "actual": "ellipse(+30.00% 40.567%)", |
| 73 "expected_inline": "ellipse(30% 40.567% at 50% 50%)", |
| 74 "expected_computed": "ellipse(30% 40.567% at 50% 50%)" |
| 75 }, |
| 76 { |
| 77 "actual": "ellipse(50.10% +60.7%)", |
| 78 "expected_inline": "ellipse(50.1% 60.7% at 50% 50%)", |
| 79 "expected_computed": "ellipse(50.1% 60.7% at 50% 50%)" |
| 80 } |
| 81 ]; |
| 82 invalid_ellipse_radii_tests = [ |
| 83 {"name": "ellipse(-10px -20px)"}, |
| 84 {"name": "ellipse(-30px 40px)"}, |
| 85 {"name": "ellipse(50px -60px)"} |
| 86 ]; |
| 87 generate_tests( ParsingUtils.testInlineStyle, |
| 88 ParsingUtils.buildTestCases(valid_ellipse_radii_test
s, "inline") ); |
| 89 generate_tests( ParsingUtils.testComputedStyle, |
| 90 ParsingUtils.buildTestCases(valid_ellipse_radii_test
s, "computed") ); |
| 91 generate_tests( ParsingUtils.testInlineStyle, |
| 92 ParsingUtils.buildTestCases(invalid_ellipse_radii_te
sts) ); |
| 93 </script> |
| 94 </body> |
| 95 </html> |
OLD | NEW |