| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 .container { | 3 .container { |
| 4 width: 150px; | 4 width: 150px; |
| 5 height: 50px; | 5 height: 50px; |
| 6 font: 50px/1 Ahem; | 6 font: 50px/1 Ahem; |
| 7 overflow: hidden; | 7 overflow: hidden; |
| 8 background-color: red; | 8 background-color: red; |
| 9 color: green; | 9 color: green; |
| 10 } | 10 } |
| 11 .float { | 11 .float { |
| 12 width: 100px; | 12 width: 100px; |
| 13 height: 100px; | 13 height: 100px; |
| 14 float: left; | 14 float: left; |
| 15 background-color: green; | 15 background-color: green; |
| 16 margin-top: -50px; | 16 margin-top: -50px; |
| 17 shape-outside: inset(0); | 17 shape-outside: inset(0); |
| 18 } | 18 } |
| 19 </style> | 19 </style> |
| 20 <script src="../../../resources/ahem.js"></script> |
| 20 <body> | 21 <body> |
| 21 <p>You should see one green rectangle. You should not see any red.</p> | 22 <p>You should see one green rectangle. You should not see any red.</p> |
| 22 <div class="container"> | 23 <div class="container"> |
| 23 <div class="float"></div> | 24 <div class="float"></div> |
| 24 X | 25 X |
| 25 </div> | 26 </div> |
| 26 </body> | 27 </body> |
| OLD | NEW |