OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Outside Polygon - Argument Length Units</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-polygo
n"> |
| 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-
property"> |
| 10 <link rel="help" href="http://www.w3.org/TR/css3-values/#lengths"> |
| 11 <meta name="assert" content="A polygon's veritices may in percentage or
any valid <length> units."> |
| 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 arg_length_units_tests = [ |
| 21 ['%', 'px', 'px'], |
| 22 ['px', '%', 'px'], |
| 23 ['px', 'px', '%'], |
| 24 ['%', '%', '%'], |
| 25 ['em', 'em', 'ex'], |
| 26 ['vw', 'vh', '%'], |
| 27 ['cm', 'mm', 'pc'], |
| 28 ['vmin', 'vmin', 'vmax'], |
| 29 ['rem', 'ch', 'rem'], |
| 30 ['in', 'pt', '%'] |
| 31 ]; |
| 32 generate_tests( ParsingUtils.testInlineStyle, |
| 33 ParsingUtils.buildPolygonTests(arg_length_units_test
s, 'inline') ); |
| 34 generate_tests( ParsingUtils.testComputedStyle, |
| 35 ParsingUtils.buildPolygonTests(arg_length_units_test
s, 'computed') ); |
| 36 </script> |
| 37 </body> |
| 38 </html> |
OLD | NEW |