<!DOCTYPE html> | |
<style> | |
body { | |
margin: 0; | |
} | |
#box { | |
width: 100px; | |
height: 100px; | |
background-color: green; | |
-webkit-box-reflect: below 20px; | |
} | |
#positioned { | |
position: absolute; | |
top: 10px; | |
left: 400px; | |
width: 50px; | |
height: 50px; | |
background-color: blue; | |
} | |
</style> | |
<!-- | |
Tests paint invalidation of positioned object when its ancestor changes reflection. | |
Passes if there is no red. | |
--> | |
<div id="box"> | |
<div id="positioned"></div> | |
</div> |