4 testRunner
.waitUntilDone();
6 var animated
= document
.getElementById('animated');
7 animated
.addEventListener('transitionend', function() {
9 testRunner
.notifyDone();
11 animated
.style
.opacity
= 1;
15 #background, #foreground {
23 background-color: red;
26 -webkit-transition: opacity
0.2s;
30 background-color: green;
40 <div id=
"background"></div>
41 <div id=
"animated"><div id=
"foreground"></div></div>
42 <div id=
"description">
43 Tests paint invalidation on end of opacity transition.
<br>
44 Passes if there is a green square and no red.
<br>