bjonesbe@adobe.com | 91a92ef | 2014-03-27 23:40:04 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <style> |
| 3 | .container { |
| 4 | width: 300px; |
| 5 | font: 10px/1 Ahem; |
| 6 | -webkit-writing-mode: vertical-lr; |
| 7 | } |
| 8 | .float { |
| 9 | float: left; |
| 10 | width: 100px; |
| 11 | height: 200px; |
| 12 | padding: 20px; |
| 13 | border: 20px solid rgba(0, 0, 0, 0); |
| 14 | border-radius: 70px 60px 80px 50px / 50px 80px 60px 70px; |
| 15 | margin: 20px; |
| 16 | background-color: blue; |
| 17 | background-clip: content-box; |
| 18 | -webkit-shape-outside: inset(60px round 30px 20px 40px 10px / 10px 40px 20px 30px); |
| 19 | } |
| 20 | </style> |
| 21 | <body> |
| 22 | <p>The black squares should follow the bottom side of the blue shape. They should not overlap the shape.</p> |
| 23 | <div class="container"> |
| 24 | <div class="float"></div> |
| 25 | X<br> |
| 26 | X<br> |
| 27 | X<br> |
| 28 | X<br> |
| 29 | X<br> |
| 30 | X<br> |
| 31 | X<br> |
| 32 | X<br> |
| 33 | X<br> |
| 34 | X<br> |
| 35 | X<br> |
| 36 | X<br> |
| 37 | X<br> |
| 38 | X<br> |
| 39 | X<br> |
| 40 | X<br> |
| 41 | X<br> |
| 42 | X<br> |
| 43 | X<br> |
| 44 | X<br> |
| 45 | X<br> |
| 46 | X<br> |
| 47 | X<br> |
| 48 | X<br> |
| 49 | </div> |
| 50 | </body> |