Index: third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-inline.html |
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-inline.html b/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-inline.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f649c66451a807a863b532e9b392e1fd258c229d |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-inline.html |
@@ -0,0 +1,58 @@ |
+<style> |
+body { |
+ margin: 0; |
+} |
+ |
+.scroller { |
+ will-change: transform; |
+ |
+ overflow: hidden; /* hide scrollbars */ |
+ width: 200px; |
+ height: 350px; |
+ outline: 2px solid black; |
+} |
+ |
+.container { |
+ width: 200px; |
+ height: 700px; |
+} |
+ |
+.outerSticky { |
+ will-change: transform; |
+ |
+ display: inline; |
+ position: sticky; |
+ top: 0; |
+} |
+ |
+.innerSticky { |
+ will-change: transform; |
+ |
+ display: inline; |
+ position: sticky; |
+ top: 25px; |
+} |
+</style> |
+ |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+function finishTest() { |
+ document.querySelector('.scroller').scrollTop = 200; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+} |
+ |
+window.addEventListener('load', function() { |
+ requestAnimationFrame(function() { |
+ requestAnimationFrame(finishTest); |
+ }); |
+}); |
+</script> |
+ |
+<div class="scroller"> |
+ <div class="container"> |
+ <div class="outerSticky">1<div class="innerSticky">2</div></div> |
+ </div> |
+</div> |