blob: ff6bea9261035e59a4909cfbc318e281b51a0a62 [file] [log] [blame]
<!DOCTYPE html>
<style>
#container {
position: fixed;
top: 200px;
left: 100px;
}
#block {
position: relative;
width: 100px;
height: 100px;
background-color: green;
}
</style>
<div id="container">
<div id="block"></div>
</div>
This test passes if the green block stays at the same place after repaint.
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
document.getElementById("container").style.top = "100px";
document.getElementById("block").style.top = "100px";
}, true);
</script>