OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Column clipping</title> |
| 5 <script> |
| 6 if (window.internals) |
| 7 internals.settings.setRegionBasedColumnsEnabled(true); |
| 8 </script> |
| 9 <style> |
| 10 body { |
| 11 width: 450px; |
| 12 color: black; |
| 13 background: white; |
| 14 } |
| 15 #container { margin:0 60px; } |
| 16 .mc { |
| 17 columns: 3; |
| 18 column-gap: 15px; |
| 19 column-fill: auto; |
| 20 -webkit-columns: 3; |
| 21 -webkit-column-gap: 15px; |
| 22 -webkit-column-fill: auto; |
| 23 height: 100px; |
| 24 background: red; |
| 25 } |
| 26 .hoverflow { margin:0 -60px; } |
| 27 .rect { |
| 28 box-sizing:border-box; |
| 29 height:100px; |
| 30 border:10px solid green; |
| 31 background:white; |
| 32 } |
| 33 </style> |
| 34 </head> |
| 35 <body> |
| 36 <p>There should be a rectangle with a solid 10px thick green border below, a
nd no red.</p> |
| 37 <div id="container"> |
| 38 <div class="mc"> |
| 39 <div class="hoverflow"> |
| 40 <div class="rect"></div> |
| 41 </div> |
| 42 <div class="hoverflow"> |
| 43 <div class="rect"></div> |
| 44 </div> |
| 45 <div class="hoverflow"> |
| 46 <div class="rect"></div> |
| 47 </div> |
| 48 </div> |
| 49 </div> |
| 50 </body> |
| 51 </html> |
OLD | NEW |