<!doctype HTML> | |
<style> | |
#container { | |
contain: style layout; | |
width: 150px; | |
height: 150px; | |
} | |
#spacer { | |
width: 100px; | |
height: 100px; | |
background: lightgreen; | |
} | |
#checker { | |
width: 100px; | |
height: 50px; | |
background: green; | |
} | |
</style> | |
<div id="log">PASS</div> | |
<div id="spacer"></div> | |
<div id="container"></div> | |
<div id="checker"></div> |