OLD | NEW |
| (Empty) |
1 <!-- Based on compositing/repaint/should-not-clip-composited-viewport-scrolling-
layer.html --> | |
2 <!DOCTYPE HTML> | |
3 <script src="resources/paint-invalidation-test.js"></script> | |
4 <script> | |
5 if (window.internals) | |
6 internals.settings.setPreferCompositingToLCDTextEnabled(true); | |
7 function paintInvalidationTest() { | |
8 document.getElementById('content').style.backgroundColor = 'green'; | |
9 window.scrollTo(2000, 2000); | |
10 } | |
11 window.onload = runPaintInvalidationTest; | |
12 </script> | |
13 <style> | |
14 #content { | |
15 width: 5000px; | |
16 height: 5000px; | |
17 background-color: red; | |
18 } | |
19 </style> | |
20 <div id="content"> | |
21 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipped
, | |
22 and there is no red when the scrolling container is scrolled.<br> | |
23 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text | |
24 on non-high-dpi machines to enable composited scrolling. | |
25 </div> | |
OLD | NEW |