Index: third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky.html |
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky.html b/third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9e3a3c9df5cb1383f405a4b5c46d1d2a9811e0a0 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky.html |
@@ -0,0 +1,63 @@ |
+<style> |
+body { |
+ margin: 0; |
+} |
+ |
+.container { |
+ width: 200px; |
+ height: 2000px; |
+} |
+ |
+.outerSticky { |
+ position: sticky; |
+ top: 50px; |
+ background-color: green; |
+ width: 200px; |
+ height: 200px; |
+} |
+ |
+.middleSticky { |
+ will-change: transform; |
+ |
+ position: sticky; |
+ top: 100px; |
+ background-color: yellow; |
+ width: 200px; |
+ height: 100px; |
+} |
+ |
+.innerSticky { |
+ will-change: transform; |
+ |
+ position: sticky; |
+ top: 125px; |
+ background-color: red; |
+ width: 200px; |
+ height: 50px; |
+} |
+</style> |
+ |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+function finishTest() { |
+ window.scrollTo(0, 200); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+} |
+ |
+window.addEventListener('load', function() { |
+ requestAnimationFrame(function() { |
+ requestAnimationFrame(finishTest); |
+ }); |
+}); |
+</script> |
+ |
+<div class="container"> |
+ <div class="outerSticky"> |
+ <div class="middleSticky"> |
+ <div class="innerSticky"></div> |
+ </div> |
+ </div> |
+</div> |