shape-outside-shape-notation-000.html (2111B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Shape Outside Valid Basic Shape Functional Notation</title> 5 <link rel="author" title="Adobe" href="http://html.adobe.com/"> 6 <link rel="author" title="Bear Travis" href="mailto:betravis@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/#shape-outside-property"> 9 <link rel="help" href="http://www.w3.org/TR/cssom-1/#serializing-css-values"> 10 <meta name="assert" content="Basic shapes use functional notation, and may contain optional whitespace inside the parentheses"> 11 <meta name="flags" content="ahem dom"> 12 <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"> 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 shape_functional_notation_tests = [ 21 { 22 "name": "No whitespace", 23 "actual": "polygon(nonzero,1px 2px,3px 4px)", 24 "expected_inline": "polygon(1px 2px, 3px 4px)", 25 "expected_computed": "polygon(1px 2px, 3px 4px)" 26 }, 27 { 28 "name": "Extra whitespace", 29 "actual": "polygon( nonzero , 1px 2px\n\t,\n\t3px\n\t4px\n\t)", 30 "expected_inline": "polygon(1px 2px, 3px 4px)", 31 "expected_computed": "polygon(1px 2px, 3px 4px)" 32 } 33 ]; 34 generate_tests( ParsingUtils.testInlineStyle, 35 ParsingUtils.buildTestCases(shape_functional_notation_tests, "inline") ); 36 generate_tests( ParsingUtils.testComputedStyle, 37 ParsingUtils.buildTestCases(shape_functional_notation_tests, "computed") ); 38 </script> 39 </body> 40 </html>