| <!DOCTYPE html> |
| <title>CSS Test: inset rectangle percentage shape-outside on floats</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/#shape-outside-property"> |
| <link rel="match" href="shape-outside-floats-inset-rectangle-000-ref.html"> |
| <meta name="flags" content="ahem"> |
| <style> |
| .test { |
| font: 20px/1 Ahem, sans-serif; |
| border: 1px solid black; |
| line-height: 20px; |
| } |
| .container { |
| width: 60px; |
| height: 60px; |
| display: inline-block; |
| } |
| .float { |
| width: 40px; |
| height: 40px; |
| } |
| .exclusion-top { |
| -webkit-shape-outside: inset-rectangle(52%, 0, 0, 0); |
| } |
| .exclusion-right { |
| -webkit-shape-outside: inset-rectangle(0, 50%, 0, 0); |
| } |
| .exclusion-bottom { |
| -webkit-shape-outside: inset-rectangle(0, 0, 50%, 0); |
| } |
| .exclusion-left { |
| -webkit-shape-outside: inset-rectangle(0, 0, 0, 50%); |
| } |
| </style> |
| <body> |
| <div class="test container"> |
| <div style="float: left" class="float exclusion-top"></div> |
| XXX |
| X |
| XXX |
| </div> |
| <div class="test container"> |
| <div style="float: right" class="float exclusion-top"></div> |
| XXX |
| X |
| XXX |
| </div> |
| <div class="test container"> |
| <div style="float: left" class="float exclusion-right"></div> |
| XX |
| XX |
| XXX |
| </div> |
| <div class="test container"> |
| <div style="float: left" class="float exclusion-bottom"></div> |
| X |
| XXX |
| XXX |
| </div> |
| <div class="test container"> |
| <div style="float: right" class="float exclusion-bottom"></div> |
| X |
| XXX |
| XXX |
| </div> |
| <div class="test container"> |
| <div style="float: right" class="float exclusion-left"></div> |
| XX |
| XX |
| XXX |
| </div> |
| </body> |
| |