1 <!-- Based on fast/repaint/fixed-table-cell.html -->
4 <link rel=
"stylesheet" href=
"../../../fast/repaint/resources/default.css">
6 table { top:
0px; left:
0px; border-spacing:
50px; position: absolute; }
7 td { background: green; padding:
0px; border-style: none; border:
0px; }
8 td.fixed { position: fixed; left:
50px; top:
100px; }
10 <script src=
"resources/paint-invalidation-test.js"></script>
12 window
.onload = function() {
13 window
.scrollTo(0, 100);
14 runPaintInvalidationTest();
17 window
.expectedPaintInvalidationObjects
= [
18 "LayoutTableCell TD id='moveMe' class='fixed'",
19 "LayoutTable (positioned) TABLE",
22 "LayoutTableCell TD class='red'",
23 "LayoutTableCell (anonymous)",
24 "LayoutTableSection TBODY",
25 "LayoutTableCell (anonymous)",
26 "LayoutBlockFlow (positioned) TD id='moveMe' class='fixed'",
28 function paintInvalidationTest()
30 document
.getElementById('moveMe').className
= "fixed";
34 <body style=
"height:2000px;">
35 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer fixed position logic needs more basic testing -->
36 <!-- You should see no red on this page. -->
38 <tr><td></td><td></td></tr>
39 <tr><td class=
"red"></td><td id=
"moveMe"></td></tr>