blob: 881e775e70901a1f4ef170797574c1d60d452884 [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>