blob: 8acc7be455c3d54aa7fa1f2995d668ec58bc44eb [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
#box, #box-unchanged {
margin-left: 300px;
width: 50px;
height: 50px;
#box {
margin-top: 150px;
background-color: yellow;
#box-unchanged {
background-color: blue;
#container {
width: 500px;
height: 500px;
backface-visibility: hidden;
overflow: scroll;
Tests invalidation and painting of a box changing background while composited scrolled.
<div id="container">
<div id="box"></div>
<div id="box-unchanged"></div>
<div style="height: 4000px"></div>
if (window.testRunner)
runAfterLayoutAndPaint(function() {
var container = document.querySelector('#container');
var box = document.querySelector("#box");
container.scrollTop = 400; = "green";
runAfterLayoutAndPaint(function() {
container.scrollTop = 0;
if (window.testRunner)