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