OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Circle Position Arguments - positive/negative, deci
mal/non-decimal</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-circle
"> |
| 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-
property"> |
| 10 <meta name="assert" content="A circle's position arguments may be in sig
ned positive/negative or |
| 11 decimal/non-decimal format."> |
| 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_circle_radii_tests = [ |
| 21 { |
| 22 "actual": "circle(at +50px)", |
| 23 "expected_inline": "circle(at 50px 50%)", |
| 24 "expected_computed": "circle(at 50px 50%)" |
| 25 }, |
| 26 { |
| 27 "actual": "circle(at -50px)", |
| 28 "expected_inline": "circle(at -50px 50%)", |
| 29 "expected_computed": "circle(at -50px 50%)" |
| 30 }, |
| 31 { |
| 32 "actual": "circle(at +50%)", |
| 33 "expected_inline": "circle(at 50% 50%)", |
| 34 "expected_computed": "circle(at 50% 50%)" |
| 35 }, |
| 36 { |
| 37 "actual": "circle(at -50%)", |
| 38 "expected_inline": "circle(at -50% 50%)", |
| 39 "expected_computed": "circle(at -50% 50%)" |
| 40 }, |
| 41 { |
| 42 "actual": "circle(at left +50px)", |
| 43 "expected_inline": "circle(at 0% 50px)", |
| 44 "expected_computed": "circle(at 0% 50px)" |
| 45 }, |
| 46 { |
| 47 "actual": "circle(at left +50%)", |
| 48 "expected_inline": "circle(at 0% 50%)", |
| 49 "expected_computed": "circle(at 0% 50%)" |
| 50 }, |
| 51 { |
| 52 "actual": "circle(at right -50px)", |
| 53 "expected_inline": "circle(at 100% -50px)", |
| 54 "expected_computed": "circle(at 100% -50px)" |
| 55 }, |
| 56 { |
| 57 "actual": "circle(at right -50%)", |
| 58 "expected_inline": "circle(at 100% -50%)", |
| 59 "expected_computed": "circle(at 100% -50%)" |
| 60 }, |
| 61 { |
| 62 "actual": "circle(at +50px top)", |
| 63 "expected_inline": "circle(at 50px 0%)", |
| 64 "expected_computed": "circle(at 50px 0%)" |
| 65 }, |
| 66 { |
| 67 "actual": "circle(at +50% top)", |
| 68 "expected_inline": "circle(at 50% 0%)", |
| 69 "expected_computed": "circle(at 50% 0%)" |
| 70 }, |
| 71 { |
| 72 "actual": "circle(at -50px bottom)", |
| 73 "expected_inline": "circle(at -50px 100%)", |
| 74 "expected_computed": "circle(at -50px 100%)" |
| 75 }, |
| 76 { |
| 77 "actual": "circle(at -50% bottom)", |
| 78 "expected_inline": "circle(at -50% 100%)", |
| 79 "expected_computed": "circle(at -50% 100%)" |
| 80 }, |
| 81 { |
| 82 "actual": "circle(at +50px +50px)", |
| 83 "expected_inline": "circle(at 50px 50px)", |
| 84 "expected_computed": "circle(at 50px 50px)" |
| 85 }, |
| 86 { |
| 87 "actual": "circle(at +50% +50%)", |
| 88 "expected_inline": "circle(at 50% 50%)", |
| 89 "expected_computed": "circle(at 50% 50%)" |
| 90 }, |
| 91 { |
| 92 "actual": "circle(at -50px -50px)", |
| 93 "expected_inline": "circle(at -50px -50px)", |
| 94 "expected_computed": "circle(at -50px -50px)" |
| 95 }, |
| 96 { |
| 97 "actual": "circle(at +50px -50px)", |
| 98 "expected_inline": "circle(at 50px -50px)", |
| 99 "expected_computed": "circle(at 50px -50px)" |
| 100 }, |
| 101 { |
| 102 "actual": "circle(at -50px +50px)", |
| 103 "expected_inline": "circle(at -50px 50px)", |
| 104 "expected_computed": "circle(at -50px 50px)" |
| 105 }, |
| 106 { |
| 107 "actual": "circle(at +50% -50%)", |
| 108 "expected_inline": "circle(at 50% -50%)", |
| 109 "expected_computed": "circle(at 50% -50%)" |
| 110 }, |
| 111 { |
| 112 "actual": "circle(at -50% +50%)", |
| 113 "expected_inline": "circle(at -50% 50%)", |
| 114 "expected_computed": "circle(at -50% 50%)" |
| 115 } |
| 116 ]; |
| 117 generate_tests( ParsingUtils.testInlineStyle, |
| 118 ParsingUtils.buildTestCases(valid_circle_radii_tests
, 'inline') ); |
| 119 generate_tests( ParsingUtils.testComputedStyle, |
| 120 ParsingUtils.buildTestCases(valid_circle_radii_tests
, 'computed') ); |
| 121 </script> |
| 122 </body> |
| 123 </html> |
OLD | NEW |