2 <script src=
"resources/text-based-repaint.js"></script>
4 function repaintTest() {
5 document
.getElementById('fixed').style
.backgroundColor
= 'green';
8 document
.getElementById('transformed').scrollTop
= 50;
17 transform: translateX(
0);
28 background-color: red;
35 /* to make the transformed container scrollable */
41 Tests invalidation of a fixed-position descendant of a transformed scrolled element.
42 Passes if there is a green box at the center of the scrollable area.
43 <div id=
"transformed">
45 <div id=
"fixed"></div>
46 <div id=
"content"></div>