blob: 96ef6eeb57e95735df5a1d5b0bf4c9dc243bcf6a [file] [log] [blame]
<!DOCTYPE html>
Tests paint invalidation when an object under composited scrolled container is
set 'display: relative'. Passes if no red residue.
<div style="overflow: scroll; width: 200px; height: 200px">
<div style="width: 800px; height: 800px">
<div id="item" style="background-color: red; width: 50px; height: 50px"></div>
</div>
</div>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
if (window.internal)
internals.settings.setPreferCompositingToLCDTextEnabled(true);
runAfterLayoutAndPaint(function() {
item.style.position = 'relative';
item.style.left = '100px';
item.style.top = '100px';
item.style.backgroundColor = 'green';
}, true);
</script>