| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <title>CSS Test: circle shape-outside on floats with percentage radius</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-001-ref.html"> | |
| 7 <meta name="flags" content="ahem"> | |
| 8 <style> | |
| 9 .container { | |
| 10 font: 40px/1 Ahem, sans-serif; | |
| 11 line-height: 40px; | |
| 12 width: 110px; | |
| 13 height: 40px; | |
| 14 overflow: hidden; | |
| 15 white-space: nowrap; | |
| 16 background-color: red; | |
| 17 color: green; | |
| 18 } | |
| 19 | |
| 20 .circle { | |
| 21 width: 80px; | |
| 22 height: 40px; | |
| 23 background-color: green; | |
| 24 shape-outside: circle(50%, 50%, 50%) content-box; /* cx,cy,radius */ | |
| 25 } | |
| 26 </style> | |
| 27 | |
| 28 <body> | |
| 29 <p>You should see a green rectangle. You shouldn't see any red.</p> | |
| 30 <div class="container"> | |
| 31 <div style="float: left; margin-right: 40px;" class="circle"></div> | |
| 32 X | |
| 33 </div> | |
| 34 | |
| 35 <div class="container" style="text-align: right"> | |
| 36 <div style="float: right; margin-left: 40px;" class="circle"></div> | |
| 37 X | |
| 38 </div> | |
| 39 </body> | |
| OLD | NEW |