Re-import the css/css-shapes WPT
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-shapes / shape-outside / supported-shapes / circle / shape-outside-circle-018.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <title>CSS Test: left float, circle + shape-margin in % units</title>
5         <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
6         <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-circle">
7         <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property">
8         <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-property">
9         <link rel="match" href="reference/shape-outside-circle-013-ref.html">
10         <meta name="flags" content="ahem" />
11         <meta name="assert" content="The test verifies that text wraps around a
12                                      left float with a shape-outside defined as
13                                      a circle with a shape-margin in percentage units.">
14     </head>
15     <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
16     <style>
17     body {
18         margin: 0;
19     }
20     #container {
21         position: relative;
22     }
23     #test-container {
24         font: 40px/1 Ahem, sans-serif;
25         width: 300px;
26         height: 200px;
27         color: green;
28     }
29     #test-shape {
30         float: left;
31         width: 140px;
32         height: 140px;
33         margin: 10px;
34         padding: 10px;
35         border: 10px solid transparent;
36         shape-margin: 10%;
37         shape-outside: circle(40px);
38     }
39     #line {
40         position: absolute;
41         top: 0px;
42         left: 168px;
43         width: 2px;
44         height: 200px;
45         border-left: 2px solid blue;
46     }
47     #failure {
48         position: absolute;
49         top: 80px;
50         left: 170px;
51         width: 40px;
52         height: 40px;
53         background-color: red;
54         z-index: -1;
55     }
56     </style>
57     <body>
58     <p>The test passes if there is a green square to the right of the blue line. There should be no red.</p>
59     <div id="container">
60         <div id="test-container">
61             <div id="test-shape"></div>
62             <br/>
63             <br/>
64             X
65         </div>
66         <div id="line"></div>
67         <div id="failure"></div>
68     </div>
69     </body>
70 </html>
71