| <!DOCTYPE html> |
| <title>shape-outside-floats-rounded-rectangle-003.html</title> |
| <link rel="author" title="Adobe" href="http://html.adobe.com/"> |
| <link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com"> |
| <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"> |
| <link rel="match" href="shape-outside-floats-rounded-rectangle-003-ref.html"> |
| <meta name="flags" content="ahem"> |
| <style> |
| .container { |
| font: 20px/1 Ahem, sans-serif; |
| line-height: 20px; |
| width: 500px; |
| height: 200px; |
| border: 1px solid black; |
| } |
| |
| .rounded-rect-ellipse { |
| width: 320px; |
| height: 160px; |
| border: 1px solid blue; |
| border-radius: 160px / 80px; |
| -webkit-shape-outside: rectangle(0px, 0px, 320px, 160px, 160px, 80px); /* x,y,width,height,rx,ry */ |
| } |
| </style> |
| |
| <body> |
| <p>The black squares should trace the right side of the ellipse's blue outline.</p> |
| <div class="container"> |
| X<br/> |
| <div style="float: left" class="rounded-rect-ellipse"></div> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X |
| </div> |
| |
| <p>The black squares should trace the left side of the ellipse's blue outline.</p> |
| <div class="container" style="text-align: right"> |
| X<br/> |
| <div style="float: right" class="rounded-rect-ellipse"></div> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X<br/> |
| X |
| </div> |
| </body> |