| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Shape Margin Invalid Values</title> | 4 <title>Shape Margin Invalid Values</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="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-p
roperty"> | 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-p
roperty"> |
| 8 <meta name="assert" content="shape-margin values may only be positive le
ngth units."> | 8 <meta name="assert" content="shape-margin values may only be positive le
ngth units."> |
| 9 <meta name="flags" content="dom"> | 9 <meta name="flags" content="dom"> |
| 10 <script src="../../../../../resources/testharness.js"></script> | 10 <script src="/resources/testharness.js"></script> |
| 11 <script src="../../../../../resources/testharnessreport.js"></script> | 11 <script src="/resources/testharnessreport.js"></script> |
| 12 <script src="support/parsing-utils.js"></script> | 12 <script src="support/parsing-utils.js"></script> |
| 13 </head> | 13 </head> |
| 14 <body> | 14 <body> |
| 15 <div id="log"></div> | 15 <div id="log"></div> |
| 16 <script type="text/javascript"> | 16 <script type="text/javascript"> |
| 17 var shape_margin_invalid_tests = [ | 17 var shape_margin_invalid_tests = [ |
| 18 {"name": "-20px"}, | 18 {"name": "-20px"}, |
| 19 {"name": "-.4567px"}, | 19 {"name": "-.4567px"}, |
| 20 {"name": "nonLength"}, | 20 {"name": "nonLength"}, |
| 21 {"name": "10"} | 21 {"name": "10"} |
| 22 ]; | 22 ]; |
| 23 generate_tests( ParsingUtils.testShapeMarginInlineStyle, | 23 generate_tests( ParsingUtils.testShapeMarginInlineStyle, |
| 24 ParsingUtils.buildTestCases(shape_margin_invalid_tests,
"inline - invalid")); | 24 ParsingUtils.buildTestCases(shape_margin_invalid_tests,
"inline - invalid")); |
| 25 generate_tests( ParsingUtils.testShapeMarginComputedStyle, | 25 generate_tests( ParsingUtils.testShapeMarginComputedStyle, |
| 26 ParsingUtils.buildTestCases(shape_margin_invalid_tests,
"computed - invalid")); | 26 ParsingUtils.buildTestCases(shape_margin_invalid_tests,
"computed - invalid")); |
| 27 </script> | 27 </script> |
| 28 </body> | 28 </body> |
| 29 </html> | 29 </html> |
| OLD | NEW |