Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / non-stacking-scroller-with-abspos-descendant.html
blob7c4a80f44b4eefbb74209fbc7450b7826ab218c8
1 <!doctype HTML>
2 <script src="../../resources/run-after-layout-and-paint.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; background: red"></div>
6 </div>
7 <script>
8 // Test that a non-stacking-context scroller does not scroll an absolutely positioned child.
9 function test() {
10 runAfterLayoutAndPaint(function() {
11 target.scrollTop += 100;
12 }, true);
14 window.onload = test;
15 </script>