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