[CSS Shapes] Floats with shape-outside aren't painting in the correct order
[WebKit-https.git] / LayoutTests / csswg / submitted / shapes / shape-outside / shape-outside-floats-rounded-rectangle-001.html
1 <!DOCTYPE html>
2 <title>shape-outside-floats-rounded-rectangle-001.html</title>
3 <link rel="author" title="Adobe" href="http://html.adobe.com/">
4 <link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com">
5 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property">
6 <link rel="match" href="shape-outside-floats-rounded-rectangle-001-ref.html">
7 <meta name="flags" content="ahem">
8 <style>
9 .container {
10     font: 20px/1 Ahem, sans-serif;
11     line-height: 20px;
12     width: 500px;
13     height: 200px; 
14     border: 1px solid black;
15 }
16
17 .rounded-rect {
18     width: 320px;
19     height: 160px;
20     border: 1px solid blue;
21     border-radius: 60px;
22     -webkit-shape-outside: rectangle(0px, 0px, 320px, 160px, 60px, 60px); /* x,y,width,height,rx,ry */
23 }
24 </style>
25
26 <body>
27 <p>The black squares should trace the right side of the rounded rectangle's blue outline.</p>
28 <div class="container">
29 X<br/>
30     <div style="float: left" class="rounded-rect"></div>
31 X<br/>
32 X<br/>
33 X<br/>
34 X<br/>
35 X<br/>
36 X<br/>
37 X<br/>
38 X<br/>
39 X
40 </div>
41
42 <p>The black squares should trace the left side of the rounded rectangle's blue outline.</p>
43 <div class="container" style="text-align: right">
44 X<br/>
45     <div style="float: right" class="rounded-rect"></div>
46 X<br/>
47 X<br/>
48 X<br/>
49 X<br/>
50 X<br/>
51 X<br/>
52 X<br/>
53 X<br/>
54 X
55 </div>
56 </body>