| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 .container { | 3 .container { |
| 4 width: 200px; | 4 width: 200px; |
| 5 height: 100px; | 5 height: 100px; |
| 6 font: 50px/1 Ahem, sans-serif; | 6 font: 50px/1 Ahem, sans-serif; |
| 7 background-color: red; | 7 background-color: red; |
| 8 margin-bottom: 50px; | 8 margin-bottom: 50px; |
| 9 color: green; | 9 color: green; |
| 10 } | 10 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 .float-right-outer { | 33 .float-right-outer { |
| 34 margin-left: 50px; | 34 margin-left: 50px; |
| 35 width: 50px; | 35 width: 50px; |
| 36 height: 100px; | 36 height: 100px; |
| 37 float: right; | 37 float: right; |
| 38 background-color: green; | 38 background-color: green; |
| 39 shape-outside: inset(0 0 0 50%); | 39 shape-outside: inset(0 0 0 50%); |
| 40 } | 40 } |
| 41 </style> | 41 </style> |
| 42 <script src="../../../resources/ahem.js"></script> |
| 42 <body> | 43 <body> |
| 43 <p>Shapes should not affact float stacking, but should affect inline content
.</p> | 44 <p>Shapes should not affact float stacking, but should affect inline content
.</p> |
| 44 <p>You should see two green rectanges. There should be no red.</p> | 45 <p>You should see two green rectanges. There should be no red.</p> |
| 45 <div class="container"> | 46 <div class="container"> |
| 46 <div class="float-left-inner"></div> | 47 <div class="float-left-inner"></div> |
| 47 <div class="float-left-outer"></div> | 48 <div class="float-left-outer"></div> |
| 48 X<br/> | 49 X<br/> |
| 49 X | 50 X |
| 50 </div> | 51 </div> |
| 51 <div class="container" style="text-align: right"> | 52 <div class="container" style="text-align: right"> |
| 52 <div class="float-right-inner"></div> | 53 <div class="float-right-inner"></div> |
| 53 <div class="float-right-outer"></div> | 54 <div class="float-right-outer"></div> |
| 54 X<br/> | 55 X<br/> |
| 55 X | 56 X |
| 56 </div> | 57 </div> |
| 57 </body> | 58 </body> |
| OLD | NEW |