Chromium Code Reviews| Index: LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant.html |
| diff --git a/LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant.html b/LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f2ce0dba9a97d876406fedbdbc9192a20767cb71 |
| --- /dev/null |
| +++ b/LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant.html |
| @@ -0,0 +1,15 @@ |
| +<!doctype HTML> |
| +<script src="../../resources/run-after-layout-and-paint.js"></script> |
| +<div id="target" style="overflow:scroll; width: 300px; height: 300px;"> |
| + <div style="height: 1000px; width: 100px;"></div> |
| + <div style="position: absolute; top: 200px; width: 100px; height: 100px; background: red"></div> |
| +</div> |
| +<script> |
| +// Test that a non-stacking-context scroller does not scroll an absolutely positioned child. |
| +function test() { |
| + runAfterLayoutAndPaint(function() { |
| + target.scrollTop += 100; |
| + }); |
|
Xianzhu
2015/06/23 04:56:39
We need a 'true' as the second parameter here, oth
chrishtr
2015/06/23 16:51:37
Done.
|
| +} |
| +window.onload = test; |
| +</script> |