OLD | NEW |
(Empty) | |
| 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 bo
rder radii that follow the border-radius format"> |
| 11 <meta name="flags" content="dom"> |
| 12 <script src="../../../../../resources/testharness.js"></script> |
| 13 <script src="../../../../../resources/testharnessreport.js"></script> |
| 14 <script src="support/parsing-utils.js"></script> |
| 15 </head> |
| 16 <body> |
| 17 <div id="log"></div> |
| 18 <script type="text/javascript"> |
| 19 var valid_inset_tests = [ |
| 20 { |
| 21 "name": "1 inset", |
| 22 "actual": "inset(10px)", |
| 23 "expected_inline": "inset(10px)", |
| 24 "expected_computed": "inset(10px)" |
| 25 }, |
| 26 { |
| 27 "name": "2 insets", |
| 28 "actual": "inset(10px 20px)", |
| 29 "expected_inline": "inset(10px 20px)", |
| 30 "expected_computed": "inset(10px 20px)" |
| 31 }, |
| 32 { |
| 33 "name": "3 insets", |
| 34 "actual": "inset(10px 20px 30px)", |
| 35 "expected_inline": "inset(10px 20px 30px)", |
| 36 "expected_computed": "inset(10px 20px 30px)" |
| 37 }, |
| 38 { |
| 39 "name": "4 insets", |
| 40 "actual": "inset(10px 20px 30px 40px)", |
| 41 "expected_inline": "inset(10px 20px 30px 40px)", |
| 42 "expected_computed": "inset(10px 20px 30px 40px)" |
| 43 }, |
| 44 { |
| 45 "name": "1 inset and round", |
| 46 "actual": "inset(10px round 20px)", |
| 47 "expected_inline": "inset(10px round 20px)", |
| 48 "expected_computed": "inset(10px round 20px)" |
| 49 }, |
| 50 { |
| 51 "name": "2 insets and round", |
| 52 "actual": "inset(10px 20px round 30px)", |
| 53 "expected_inline": "inset(10px 20px round 30px)", |
| 54 "expected_computed": "inset(10px 20px round 30px)" |
| 55 }, |
| 56 { |
| 57 "name": "3 insets and round", |
| 58 "actual": "inset(10px 20px 30px round 40px)", |
| 59 "expected_inline": "inset(10px 20px 30px round 40px)", |
| 60 "expected_computed": "inset(10px 20px 30px round 40px)" |
| 61 }, |
| 62 { |
| 63 "name": "4 insets and round", |
| 64 "actual": "inset(10px 20px 30px 40px round 50px)", |
| 65 "expected_inline": "inset(10px 20px 30px 40px round 50px)"
, |
| 66 "expected_computed": "inset(10px 20px 30px 40px round 50px
)" |
| 67 } |
| 68 ]; |
| 69 generate_tests( ParsingUtils.testInlineStyle, |
| 70 ParsingUtils.buildTestCases(valid_inset_tests, "inli
ne") ); |
| 71 generate_tests( ParsingUtils.testComputedStyle, |
| 72 ParsingUtils.buildTestCases(valid_inset_tests, "comp
uted") ); |
| 73 </script> |
| 74 </body> |
| 75 </html> |
OLD | NEW |