Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / multi-subsequence-scrolled.html
blobe7068bf862a8aaf80ca452941c411cb190cc666f
1 <!DOCTYPE html>
2 <style>
3 ::-webkit-scrollbar { display: none; }
4 </style>
5 Tests scroll offset of contents with subsequence caching. Passes if no red.
6 <div id="container" style="position: absolute; width: 300px; height: 200px; overflow: scroll; backface-visibility: hidden">
7 <div id="content1" style="position: absolute; top: 0; left: 0; width: 100px; height: 400px; background-color: red"></div>
8 <div id="content2" style="position: absolute; top: 0; left: 100px; width: 100px; height: 100px; background-color: red"></div>
9 </div>
10 <script src="../../resources/run-after-layout-and-paint.js"></script>
11 <script>
12 onload = function() {
13 runAfterLayoutAndPaint(function() {
14 content1.style.backgroundColor = 'green';
15 container.scrollTop = 150;
16 }, true);
18 </script>