OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Inset - positive/negative, decimal/non-decimal args
</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
() arguments can be numbers that are signed in |
| 11 positive and negative and/or decimal/non-de
cimal form."> |
| 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_args_tests = [ |
| 21 { |
| 22 "actual": "inset(+10px -20px +30px -40px)", |
| 23 "expected_inline": "inset(10px -20px 30px -40px)", |
| 24 "expected_computed": "inset(10px -20px 30px -40px)" |
| 25 }, |
| 26 { |
| 27 "actual": "inset(-10px +20px -30px +40px)", |
| 28 "expected_inline": "inset(-10px 20px -30px 40px)", |
| 29 "expected_computed": "inset(-10px 20px -30px 40px)" |
| 30 }, |
| 31 { |
| 32 "actual": "inset(10.1200px 20.34px 30.56px 40.780px)", |
| 33 "expected_inline": "inset(10.12px 20.34px 30.56px 40.78px)
", |
| 34 "expected_computed": "inset(10.12px 20.34px 30.56px 40.78p
x)" |
| 35 }, |
| 36 { |
| 37 "actual": "inset(10.123px 20.00px 30.10px 40.5678px)", |
| 38 "expected_inline": "inset(10.123px 20px 30.1px 40.5678px)"
, |
| 39 "expected_computed": "inset(10.123px 20px 30.1px 40.5678px
)" |
| 40 }, |
| 41 { |
| 42 "actual": "inset(+10.1200px -20.340px +30.56px -40.780px)"
, |
| 43 "expected_inline": "inset(10.12px -20.34px 30.56px -40.78p
x)", |
| 44 "expected_computed": "inset(10.12px -20.34px 30.56px -40.7
8px)" |
| 45 }, |
| 46 { |
| 47 "actual": "inset(-10.123px +20.00px -30.10px +40.5678px)", |
| 48 "expected_inline": "inset(-10.123px 20px -30.1px 40.5678px
)", |
| 49 "expected_computed": "inset(-10.123px 20px -30.1px 40.5678
px)" |
| 50 } |
| 51 ]; |
| 52 generate_tests( ParsingUtils.testInlineStyle, |
| 53 ParsingUtils.buildTestCases(valid_inset_args_tests,
"inline") ); |
| 54 generate_tests( ParsingUtils.testComputedStyle, |
| 55 ParsingUtils.buildTestCases(valid_inset_args_tests,
"computed") ); |
| 56 </script> |
| 57 </body> |
| 58 </html> |
OLD | NEW |