| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Shape Outside Inset - positive/negative, decimal/non-decimal args
</title> | 4 <title>Shape Outside Inset - positive/negative, decimal/non-decimal args
</title> |
| 5 <link rel="author" title="Adobe" href="http://html.adobe.com/"> | 5 <link rel="author" title="Adobe" href="http://html.adobe.com/"> |
| 6 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@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 --> | 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"
> | 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"> | 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 | 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."> | 11 positive and negative and/or decimal/non-de
cimal form."> |
| 12 <meta name="flags" content="dom"> | 12 <meta name="flags" content="dom"> |
| 13 <script src="../../../../../resources/testharness.js"></script> | 13 <script src="/resources/testharness.js"></script> |
| 14 <script src="../../../../../resources/testharnessreport.js"></script> | 14 <script src="/resources/testharnessreport.js"></script> |
| 15 <script src="support/parsing-utils.js"></script> | 15 <script src="support/parsing-utils.js"></script> |
| 16 </head> | 16 </head> |
| 17 <body> | 17 <body> |
| 18 <div id="log"></div> | 18 <div id="log"></div> |
| 19 <script type="text/javascript"> | 19 <script type="text/javascript"> |
| 20 var valid_inset_args_tests = [ | 20 var valid_inset_args_tests = [ |
| 21 { | 21 { |
| 22 "actual": "inset(+10px -20px +30px -40px)", | 22 "actual": "inset(+10px -20px +30px -40px)", |
| 23 "expected_inline": "inset(10px -20px 30px -40px)", | 23 "expected_inline": "inset(10px -20px 30px -40px)", |
| 24 "expected_computed": "inset(10px -20px 30px -40px)" | 24 "expected_computed": "inset(10px -20px 30px -40px)" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 49 "expected_computed": "inset(-10.123px 20px -30.1px 40.5678
px)" | 49 "expected_computed": "inset(-10.123px 20px -30.1px 40.5678
px)" |
| 50 } | 50 } |
| 51 ]; | 51 ]; |
| 52 generate_tests( ParsingUtils.testInlineStyle, | 52 generate_tests( ParsingUtils.testInlineStyle, |
| 53 ParsingUtils.buildTestCases(valid_inset_args_tests,
"inline") ); | 53 ParsingUtils.buildTestCases(valid_inset_args_tests,
"inline") ); |
| 54 generate_tests( ParsingUtils.testComputedStyle, | 54 generate_tests( ParsingUtils.testComputedStyle, |
| 55 ParsingUtils.buildTestCases(valid_inset_args_tests,
"computed") ); | 55 ParsingUtils.buildTestCases(valid_inset_args_tests,
"computed") ); |
| 56 </script> | 56 </script> |
| 57 </body> | 57 </body> |
| 58 </html> | 58 </html> |
| OLD | NEW |