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