Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
|
wkorman
2016/08/18 23:48:11
This new test is a version of flackr@'s fast/scrol
| |
| 2 <script src="resources/text-based-repaint.js" type="text/javascript"></script> | |
| 3 <style> | |
| 4 #scroller { | |
| 5 background: gray local; | |
| 6 overflow: scroll; | |
| 7 width: 200px; | |
| 8 height: 200px; | |
| 9 will-change: transform; | |
| 10 } | |
| 11 | |
| 12 #spacer { | |
| 13 height: 500px; | |
| 14 } | |
| 15 </style> | |
| 16 <!-- Passes if text in scroller is visible and scroller background is blue. --> | |
| 17 <div id="scroller"> | |
| 18 <div id="spacer"></div> | |
| 19 <p>Text content</p> | |
| 20 </div> | |
| 21 <script> | |
| 22 window.testIsAsync = true; | |
| 23 | |
| 24 function repaintTest() { | |
| 25 scroller.scrollTop = 500; | |
| 26 scroller.style.backgroundColor = 'blue'; | |
| 27 finishRepaintTest(); | |
| 28 } | |
| 29 | |
| 30 onload = runRepaintAndPixelTest; | |
| 31 </script> | |
| OLD | NEW |