Re-import the css/css-shapes WPT
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-shapes / shape-outside / values / shape-outside-box-000.html
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         <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_shape_boxes = [
20                 {
21                    "actual": "content-box",
22                    "expected_inline": "content-box",
23                    "expected_computed": "content-box"
24                 },
25                 {
26                    "actual": "padding-box",
27                    "expected_inline": "padding-box",
28                    "expected_computed": "padding-box"
29                 },
30                 {
31                    "actual": "border-box",
32                    "expected_inline": "border-box",
33                    "expected_computed": "border-box"
34                 },
35                 {
36                    "actual": "margin-box",
37                    "expected_inline": "margin-box",
38                    "expected_computed": "margin-box"
39                 }
40             ];
41             generate_tests( ParsingUtils.testInlineStyle,
42                             ParsingUtils.buildTestCases(valid_shape_boxes, 'inline') );
43             generate_tests( ParsingUtils.testComputedStyle,
44                             ParsingUtils.buildTestCases(valid_shape_boxes, 'computed') );
45         </script>
46     </body>
47 </html>