OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Inset Radial Args - positive/negative, decimal/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-inset"
> |
| 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-
property"> |
| 10 <meta name="assert" content="These tests verify that shape-outside inset
() radial component can be numbers that are in |
| 11 signed positive and/or decimal/non-decimal
form. Negative values are not allowed"> |
| 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_inset_radial_args_tests = [ |
| 21 { |
| 22 "actual": "inset(10px round +10px +20px +30px +40px)", |
| 23 "expected_inline": "inset(10px round 10px 20px 30px 40px)", |
| 24 "expected_computed": "inset(10px round 10px 20px 30px 40px)" |
| 25 }, |
| 26 { |
| 27 "actual": "inset(10px round 10.1200px 20.34px 30.56px 40.780px
)", |
| 28 "expected_inline": "inset(10px round 10.12px 20.34px 30.56px 4
0.78px)", |
| 29 "expected_computed": "inset(10px round 10.12px 20.34px 30.56px
40.78px)" |
| 30 }, |
| 31 { |
| 32 "actual": "inset(10px round 10.123px 20.00px 30.10px 40.5678px
)", |
| 33 "expected_inline": "inset(10px round 10.123px 20px 30.1px 40.5
678px)", |
| 34 "expected_computed": "inset(10px round 10.123px 20px 30.1px 40
.5678px)" |
| 35 }, |
| 36 { |
| 37 "actual": "inset(10px round +10.1200px +20.340px +30.56px +40.
780px)", |
| 38 "expected_inline": "inset(10px round 10.12px 20.34px 30.56px 4
0.78px)", |
| 39 "expected_computed": "inset(10px round 10.12px 20.34px 30.56px
40.78px)" |
| 40 }, |
| 41 { |
| 42 "actual": "inset(10px round +10px +20px +30px +40px / +10px +2
0px +30px +40px )", |
| 43 "expected_inline": "inset(10px round 10px 20px 30px 40px)", |
| 44 "expected_computed": "inset(10px round 10px 20px 30px 40px)" |
| 45 }, |
| 46 { |
| 47 "actual": "inset(10px round 10.1200px 20.34px 30.56px 40.780px
/ 10.1200px 20.34px 30.56px 40.780px)", |
| 48 "expected_inline": "inset(10px round 10.12px 20.34px 30.56px 4
0.78px)", |
| 49 "expected_computed": "inset(10px round 10.12px 20.34px 30.56px
40.78px)" |
| 50 }, |
| 51 { |
| 52 "actual": "inset(10px round 10.123px 20.00px 30.10px 40.5678px
/ 10.123px 20.00px 30.10px 40.5678px)", |
| 53 "expected_inline": "inset(10px round 10.123px 20px 30.1px 40.5
678px)", |
| 54 "expected_computed": "inset(10px round 10.123px 20px 30.1px 40
.5678px)" |
| 55 }, |
| 56 { |
| 57 "actual": "inset(10px round +10.1200px +20.340px +30.56px +40.
780px / +10.1200px +20.340px +30.56px +40.780px)", |
| 58 "expected_inline": "inset(10px round 10.12px 20.34px 30.56px 4
0.78px)", |
| 59 "expected_computed": "inset(10px round 10.12px 20.34px 30.56px
40.78px)" |
| 60 }, |
| 61 { |
| 62 "actual": "inset(10px round +10.123px +20.00px +30.10px +40.56
78px / 10.123px +20.00px +30.10px +40.5678px)", |
| 63 "expected_inline": "inset(10px round 10.123px 20px 30.1px 40.5
678px)", |
| 64 "expected_computed": "inset(10px round 10.123px 20px 30.1px 40
.5678px)" |
| 65 } |
| 66 ]; |
| 67 invalid_radial_args_tests = [ |
| 68 {"name": "inset(10px round -10px -20px -30px -40px)"}, |
| 69 {"name": "inset(10px round -10.1200px -20.340px -30.56px -40.780
px)"}, |
| 70 {"name": "inset(10px round -10px -20px -30px -40px / -10px -20px
-30px -40px)"}, |
| 71 {"name": "inset(10px round -10.123px -20.00px -30.10px -40.5678p
x / 10.123px -20.00px -30.10px -40.5678px)"} |
| 72 ]; |
| 73 generate_tests( ParsingUtils.testInlineStyle, |
| 74 ParsingUtils.buildTestCases(valid_inset_radial_args_
tests, 'inline') ); |
| 75 generate_tests( ParsingUtils.testComputedStyle, |
| 76 ParsingUtils.buildTestCases(valid_inset_radial_args_
tests, 'computed') ); |
| 77 generate_tests( ParsingUtils.testInlineStyle, |
| 78 ParsingUtils.buildTestCases(invalid_radial_args_test
s) ); |
| 79 </script> |
| 80 </body> |
| 81 </html> |
OLD | NEW |