| <!DOCTYPE html> |
| <style> |
| .multicol { |
| width: 60px; |
| -webkit-column-width: 20px; |
| -webkit-column-gap: 0; |
| column-fill: auto; |
| height: 60px; |
| line-height: 20px; |
| } |
| .square { |
| width: 20px; |
| height: 20px; |
| background: red; |
| } |
| .layer { transform: translateZ(0) translateY(20px); } |
| .layer .square { background: green; } |
| </style> |
| |
| <p>There should be two small green squares below, and no red.</p> |
| <div class="multicol"> |
| <br> |
| <br> |
| <br> |
| <br> |
| <br> |
| <div class="layer"> <!-- from second to third column --> |
| <div class="square"></div> |
| <br> |
| <div class="square"></div> |
| </div> |
| <div class="square"></div> |
| </div> |