shape-outside-box-000.html (2155B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Shape Outside Box Valid Values</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/css-shapes-1/#typedef-shape-box"> 10 <meta name="assert" content="Shape-outside may be one of the box model box values"> 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_shape_boxes = [ 21 { 22 "actual": "content-box", 23 "expected_inline": "content-box", 24 "expected_computed": "content-box" 25 }, 26 { 27 "actual": "padding-box", 28 "expected_inline": "padding-box", 29 "expected_computed": "padding-box" 30 }, 31 { 32 "actual": "border-box", 33 "expected_inline": "border-box", 34 "expected_computed": "border-box" 35 }, 36 { 37 "actual": "margin-box", 38 "expected_inline": "margin-box", 39 "expected_computed": "margin-box" 40 } 41 ]; 42 generate_tests( ParsingUtils.testInlineStyle, 43 ParsingUtils.buildTestCases(valid_shape_boxes, 'inline') ); 44 generate_tests( ParsingUtils.testComputedStyle, 45 ParsingUtils.buildTestCases(valid_shape_boxes, 'computed') ); 46 </script> 47 </body> 48 </html>