shape-outside-circle-000.html (2362B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Shape Outside Circle Valid Formats</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/#funcdef-circle"> 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"> 10 <meta name="assert" content="A circular basic shape has an optional radius and position component"> 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 valid_circle_tests = [ 21 { 22 "name": "No arguments", 23 "actual": "circle()", 24 "expected_inline": "circle()", 25 "expected_computed": "circle()" 26 }, 27 { 28 "name": "Radial argument only", 29 "actual": "circle(50px)", 30 "expected_inline": "circle(50px)", 31 "expected_computed": "circle(50px)" 32 }, 33 { 34 "name": "Position argument only", 35 "actual": "circle(at 50px 50px)", 36 "expected_inline": "circle(at 50px 50px)", 37 "expected_computed": "circle(at 50px 50px)" 38 }, 39 { 40 "name": "Radial and position argument", 41 "actual": "circle(50px at 50px 50px)", 42 "expected_inline": "circle(50px at 50px 50px)", 43 "expected_computed": "circle(50px at 50px 50px)" 44 } 45 ]; 46 generate_tests( ParsingUtils.testInlineStyle, 47 ParsingUtils.buildTestCases(valid_circle_tests, 'inline') 48 ); 49 generate_tests( ParsingUtils.testComputedStyle, 50 ParsingUtils.buildTestCases(valid_circle_tests, 'computed') 51 ); 52 </script> 53 </body> 54 </html>