| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| .container { |
| width: 200px; |
| height: 200px; |
| overflow-wrap: break-word; |
| border: 2px solid blue; |
| font: 50px/1 Ahem, sans-serif; |
| color: green; |
| overflow: hidden; |
| } |
| .shape { |
| float: left; |
| position: relative; |
| width: 100px; |
| height: 100px; |
| background-color: blue; |
| } |
| |
| .rectangle50 { |
| width: 50px; |
| height: 50px; |
| } |
| |
| .rectangle25 { |
| width: 25px; |
| height: 25px; |
| } |
| </style> |
| </head> |
| <body> |
| <p>When shape-outside is modified dynamically, content affected by the shape's contour should relayout. For each test, you should see green blocks separated by white space, wrapping around a blue square in the upper left. This test requires the Ahem font.</p> |
| |
| <p>Setting shape-outside with no prior entry</p> |
| <div id='add-shape-outside' class='container'><div class='shape rectangle50'></div>x x x x x x x x x x</div> |
| |
| <p>Setting shape-outside with a prior entry</p> |
| <div id='change-shape-outside' class='container'><div class='shape rectangle25'></div>x x x x x x x x x x</div> |
| |
| <p>Removing shape-outside with a prior entry</p> |
| <div id='remove-shape-outside' class='container'><div class='shape'></div>x x x x x x x x x x</div> |
| </body> |
| </html> |