| <!DOCTYPE html> |
| <title>CSS Test: shape-outside on floats shape clipped to left and right of margin box</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://dev.w3.org/csswg/css-shapes-1/#relation-to-box-model-and-float-behavior"> |
| <link rel="match" href="shape-outside-floats-clipped-005-ref.html"> |
| <meta name="flags" content="ahem"> |
| <head> |
| <style> |
| .container { |
| font: 50px/1 Ahem, sans-serif; |
| line-height: 50px; |
| width: 100px; |
| height: 100px; |
| border: 1px solid black; |
| color: black; |
| background-color: green; |
| } |
| |
| #float-left { |
| float: left; |
| margin-left: 25px; |
| width: 25px; |
| height: 100px; |
| -webkit-shape-outside: rectangle(0, 0, 200%, 100%); |
| background-color: blue; |
| } |
| |
| #float-right { |
| float: right; |
| margin-right: 25px; |
| width: 25px; |
| height: 100px; |
| -webkit-shape-outside: rectangle(-100%, 0, 200%, 100%); |
| background-color: blue; |
| } |
| </style> |
| |
| <body> |
| <p>This should display a green stripe, a blue stripe, and a black rectangle, in that order.</a> |
| <div class="container"> |
| <div id="float-left"></div> |
| X X |
| </div> |
| <p>This should display a black rectangle, a blue stripe, and a green stripe, in that order.</a> |
| <div class="container" style="text-align: right"> |
| <div id="float-right"></div> |
| X X |
| </div> |
| </body> |