<!DOCTYPE html> <!-- webkit-test-runner [ internal:LayoutFormattingContextEnabled=true internal:LayoutFormattingContextIntegrationEnabled=false ] --> | |
<style> | |
.first { | |
height: 100px; | |
width: 40px; | |
background-color: green; | |
} | |
.second { | |
height: 100px; | |
width: 10px; | |
position: relative; | |
top: -100px; | |
left: 40px; | |
background-color: blue; | |
} | |
</style> | |
<div class=first></div> | |
<div class=second></div> |