1 <!-- Based on fast/repaint/fixed-child-of-transformed-scrolled.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
6 "LayoutBlockFlow (positioned) DIV id='fixed'",
8 function paintInvalidationTest() {
9 document
.getElementById('fixed').style
.backgroundColor
= 'green';
12 document
.getElementById('transformed').scrollTop
= 50;
13 runPaintInvalidationTest();
21 transform: translateX(
0);
32 background-color: red;
34 /* to make the transformed container scrollable */
40 Tests invalidation of a fixed-position child of a transformed scrolled element.
41 Passes if there is a green box at the center of the scrollable area.
42 <div id=
"transformed">
43 <div id=
"fixed"></div>
44 <div id=
"content"></div>