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..15bdbc5d16e77c3a2ad4fd852126a4851cd82eb0 |
| --- /dev/null |
| +++ b/LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant.html |
| @@ -0,0 +1,14 @@ |
| +<!doctype HTML> |
| +<script src="../../fast/repaint/resources/text-based-repaint.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 repaintTest() { |
| + target.scrollTop += 100; |
| +} |
| +window.onload = runRepaintTest; |
| +window.enablePixelTesting = true; |
| +</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.
|