OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>CSS Test: circle shape-outside on floats</title> | 2 <title>Circle shape-outside on floats</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://dev.w3.org/csswg/css-shapes-1/#shape-outside-prope
rty"> | |
6 <link rel="match" href="shape-outside-floats-circle-000-ref.html"> | |
7 <meta name="flags" content="ahem"> | |
8 <style> | 3 <style> |
9 .container { | 4 .container { |
10 font: 20px/1 Ahem, sans-serif; | 5 font: 20px/1 Ahem, sans-serif; |
11 width: 500px; | 6 width: 500px; |
12 height: 200px; | 7 height: 200px; |
13 border: 1px solid black; | 8 border: 1px solid black; |
14 } | 9 } |
15 | 10 |
16 .circle { | 11 .circle { |
17 width: 160px; | 12 width: 160px; |
18 height: 160px; | 13 height: 160px; |
19 background-color: blue; | 14 background-color: blue; |
20 overflow: hidden; | 15 overflow: hidden; |
21 border-radius: 80px; | 16 border-radius: 80px; |
22 shape-outside: circle(80px, 80px, 80px); /* cx,cy,radius */ | 17 -webkit-shape-outside: circle(80px at 80px 80px); |
23 } | 18 } |
24 </style> | 19 </style> |
25 | 20 |
26 <body> | 21 <body> |
27 <p>The black squares should trace the right side of the circle's blue outline.</
p> | 22 <p>The black squares should trace the right side of the circle's blue outline.</
p> |
28 <div class="container"> | 23 <div class="container"> |
29 X<br/> | 24 X<br/> |
30 <div style="float: left" class="circle"></div> | 25 <div style="float: left" class="circle"></div> |
31 X<br/> | 26 X<br/> |
32 X<br/> | 27 X<br/> |
(...skipping 14 matching lines...) Expand all Loading... |
47 X<br/> | 42 X<br/> |
48 X<br/> | 43 X<br/> |
49 X<br/> | 44 X<br/> |
50 X<br/> | 45 X<br/> |
51 X<br/> | 46 X<br/> |
52 X<br/> | 47 X<br/> |
53 X<br/> | 48 X<br/> |
54 X | 49 X |
55 </div> | 50 </div> |
56 </body> | 51 </body> |
OLD | NEW |