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