OLD | NEW |
| 1 <!-- Based on fast/repaint/fixed-scale.html --> |
1 <html> | 2 <html> |
2 <head> | 3 <head> |
3 <link rel="stylesheet" href="resources/default.css"> | 4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> |
4 <style> | 5 <style> |
5 .translated { | 6 .translated { |
6 transform: scale(2, 2); | 7 transform: scale(2, 2); |
7 } | 8 } |
8 </style> | 9 </style> |
9 <script src="resources/text-based-repaint.js"></script> | 10 <script src="resources/paint-invalidation-test.js"></script> |
10 <script> | 11 <script> |
11 if (window.testRunner) | 12 if (window.testRunner) |
12 testRunner.dumpAsTextWithPixelResults(); | 13 testRunner.dumpAsTextWithPixelResults(); |
13 | 14 |
14 window.onload = function() { | 15 window.onload = function() { |
15 window.scrollTo(0, 200); | 16 window.scrollTo(0, 200); |
16 runRepaintTest(); | 17 runPaintInvalidationTest(); |
17 }; | 18 }; |
18 | 19 |
19 function repaintTest() | 20 window.expectedPaintInvalidationObjects = [ |
| 21 "LayoutBlockFlow (positioned) DIV id='t' class='green translated'", |
| 22 ]; |
| 23 function paintInvalidationTest() |
20 { | 24 { |
21 document.getElementById('t').setAttribute("class", "green translated
"); | 25 document.getElementById('t').setAttribute("class", "green translated
"); |
22 } | 26 } |
23 </script> | 27 </script> |
24 </head> | 28 </head> |
25 <body style="height:2000px;"> | 29 <body style="height:2000px;"> |
26 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f
ixed position logic needs more basic testing --> | 30 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f
ixed position logic needs more basic testing --> |
27 <!-- You should see no red on this page. --> | 31 <!-- You should see no red on this page. --> |
28 <div style="position: absolute; top: 300px; left: 100px;" class="red"></div> | 32 <div style="position: absolute; top: 300px; left: 100px;" class="red"></div> |
29 <div id="t" style="position: fixed; top: 125px; left: 125px; width: 50px; he
ight: 50px;" class="green"></div> | 33 <div id="t" style="position: fixed; top: 125px; left: 125px; width: 50px; he
ight: 50px;" class="green"></div> |
30 </body> | 34 </body> |
31 </html> | 35 </html> |
OLD | NEW |