Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-deep.html |
| diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-deep.html b/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-deep.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f849adbe3968392dd16e428aae23b12b8a444992 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-deep.html |
| @@ -0,0 +1,85 @@ |
| +<style> |
| +body { |
| + margin: 0; |
| +} |
| + |
| +.scroller { |
| + will-change: transform; |
| + |
| + overflow: hidden; /* hide scrollbars */ |
| + width: 200px; |
| + height: 500px; |
| + outline: 2px solid black; |
| +} |
| + |
| +.container { |
| + width: 200px; |
| + height: 1000px; |
| +} |
| + |
| +.sticky { |
| + will-change: transform; |
|
flackr
2017/03/09 20:25:20
I don't think you have a test of mixed composited
smcgruer
2017/03/14 22:04:06
Tried, but everything appears to be getting compos
|
| + |
| + position: sticky; |
| + width: 200px; |
| + top: 0; |
| +} |
| + |
| +.first { |
| + height: 500px; |
| + background: red; |
| +} |
| + |
| +.second { |
| + height: 400px; |
| + background: green; |
| +} |
| + |
| +.third { |
| + height: 300px; |
| + background: blue; |
| + top: 100px; |
| +} |
| + |
| +.fourth { |
| + height: 200px; |
| + background: pink; |
| + top: 100px; |
| +} |
| + |
| +.fifth { |
| + height: 100px; |
| + background: yellow; |
| +} |
| +</style> |
| + |
| +<script> |
| +if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| + |
| +function finishTest() { |
| + document.querySelector('.scroller').scrollTop = 400; |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| +} |
| + |
| +window.addEventListener('load', function() { |
| + requestAnimationFrame(function() { |
| + requestAnimationFrame(finishTest); |
| + }); |
| +}); |
| +</script> |
| + |
| +<div class="scroller"> |
| + <div class="container"> |
| + <div class="first sticky"> |
| + <div class="second sticky"> |
| + <div class="third sticky"> |
| + <div class="fourth sticky"> |
| + <div class="fifth sticky"></div> |
| + </div> |
| + </div> |
| + </div> |
| + </div> |
| + </div> |
| +</div> |