shape-outside-inset-000.html (3773B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Shape Outside Inset 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-inset"> 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"> 10 <meta name="assert" content="An inset has 1 to 4 insets, and optional border radii that follow the border-radius format"> 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_inset_tests = [ 21 { 22 "name": "1 inset", 23 "actual": "inset(10px)", 24 "expected_inline": "inset(10px)", 25 "expected_computed": "inset(10px)" 26 }, 27 { 28 "name": "2 insets", 29 "actual": "inset(10px 20px)", 30 "expected_inline": "inset(10px 20px)", 31 "expected_computed": "inset(10px 20px)" 32 }, 33 { 34 "name": "3 insets", 35 "actual": "inset(10px 20px 30px)", 36 "expected_inline": "inset(10px 20px 30px)", 37 "expected_computed": "inset(10px 20px 30px)" 38 }, 39 { 40 "name": "4 insets", 41 "actual": "inset(10px 20px 30px 40px)", 42 "expected_inline": "inset(10px 20px 30px 40px)", 43 "expected_computed": "inset(10px 20px 30px 40px)" 44 }, 45 { 46 "name": "1 inset and round", 47 "actual": "inset(10px round 20px)", 48 "expected_inline": "inset(10px round 20px)", 49 "expected_computed": "inset(10px round 20px)" 50 }, 51 { 52 "name": "2 insets and round", 53 "actual": "inset(10px 20px round 30px)", 54 "expected_inline": "inset(10px 20px round 30px)", 55 "expected_computed": "inset(10px 20px round 30px)" 56 }, 57 { 58 "name": "3 insets and round", 59 "actual": "inset(10px 20px 30px round 40px)", 60 "expected_inline": "inset(10px 20px 30px round 40px)", 61 "expected_computed": "inset(10px 20px 30px round 40px)" 62 }, 63 { 64 "name": "4 insets and round", 65 "actual": "inset(10px 20px 30px 40px round 50px)", 66 "expected_inline": "inset(10px 20px 30px 40px round 50px)", 67 "expected_computed": "inset(10px 20px 30px 40px round 50px)" 68 } 69 ]; 70 generate_tests( ParsingUtils.testInlineStyle, 71 ParsingUtils.buildTestCases(valid_inset_tests, "inline") ); 72 generate_tests( ParsingUtils.testComputedStyle, 73 ParsingUtils.buildTestCases(valid_inset_tests, "computed") ); 74 </script> 75 </body> 76 </html>