Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype HTML> | |
| 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | |
| 3 <div id="target" style="overflow:scroll; width: 300px; height: 300px;"> | |
| 4 <div style="height: 1000px; width: 100px;"></div> | |
| 5 <div style="position: absolute; top: 200px; width: 100px; height: 100px; bac kground: red"></div> | |
| 6 </div> | |
| 7 <script> | |
| 8 // Test that a non-stacking-context scroller does not scroll an absolutely posit ioned child. | |
| 9 function repaintTest() { | |
| 10 target.scrollTop += 100; | |
| 11 } | |
| 12 window.onload = runRepaintTest; | |
| 13 window.enablePixelTesting = true; | |
| 14 </script> | |
|
Xianzhu
2015/06/22 23:32:03
Nit: It will work but looks weird to use text-base
chrishtr
2015/06/23 04:07:26
Done.
| |
| OLD | NEW |