[CSS Shapes] New positioning model: support for inset rectangle shape-outside
[WebKit-https.git] / LayoutTests / csswg / submitted / shapes / shape-outside / shape-outside-floats-inset-rectangle-001.html
1 <!DOCTYPE html>
2 <title>CSS Test: inset rectangle shape-outside on floats</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-inset-rectangle-001-reference.html">
6 <meta name="flags" content="ahem">
7 <script>
8 // This is required to run the tests in WebKit's test infrastructure.
9 if (window.internals)
10     window.internals.settings.setCSSShapesEnabled(true);
11 </script>
12 <style>
13 .container {
14     font: 20px/1 Ahem, sans-serif;
15     width: 500px;
16     height: 200px; 
17     border: 1px solid black;
18 }
19
20 .rounded-rect {
21     width: 320px;
22     height: 160px;
23     border: 1px solid blue;
24     border-radius: 60px;
25     -webkit-shape-outside: inset-rectangle(0px, 0px, 0px, 0px, 60px, 60px); /* top,right,bottom,left,rx,ry */
26 }
27 </style>
28 <body>
29 <p>The black squares should trace the right side of the rounded rectangle's blue outline.</p>
30 <div class="container">
31 X<br/>
32     <div style="float: left" class="rounded-rect"></div>
33 X<br/>
34 X<br/>
35 X<br/>
36 X<br/>
37 X<br/>
38 X<br/>
39 X<br/>
40 X<br/>
41 X
42 </div>
43
44 <p>The black squares should trace the left side of the rounded rectangle's blue outline.</p>
45 <div class="container" style="text-align: right">
46 X<br/>
47     <div style="float: right" class="rounded-rect"></div>
48 X<br/>
49 X<br/>
50 X<br/>
51 X<br/>
52 X<br/>
53 X<br/>
54 X<br/>
55 X<br/>
56 X
57 </div>
58 </body>