Index: third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-left-expected.html |
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-left-expected.html b/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-left-expected.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..21da1abd144f58b8d92b335bee05131371664ee4 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-left-expected.html |
@@ -0,0 +1,75 @@ |
+<style> |
+body { |
+ margin: 0; |
+} |
+ |
+.group { |
+ position: relative; |
+ width: 350px; |
+ height: 200px; |
+} |
+ |
+.scroller { |
+ overflow: auto; |
+ width: 350px; |
+ height: 180px; |
+ outline: 2px solid black; |
+} |
+ |
+.container { |
+ width: 700px; |
+ height: 180px; |
+} |
+ |
+.outerBox { |
+ position: relative; |
+ background-color: green; |
+ width: 200px; |
+ height: 180px; |
+} |
+ |
+.innerBox { |
+ position: relative;; |
+ background-color: red; |
+ width: 100px; |
+ height: 180px; |
+} |
+</style> |
+ |
+<script> |
+window.addEventListener('load', function() { |
+ for (const scroller of document.querySelectorAll('.scroller')) { |
+ scroller.scrollLeft = 200; |
+ } |
+}); |
+</script> |
+ |
+<div class="group"> |
+ <div class="scroller"> |
+ <div class="container"> |
+ <div class="outerBox" style="left: 250px;"> |
+ <div class="innerBox" style="left: 0;"></div> |
+ </div> |
+ </div> |
+ </div> |
+</div> |
+ |
+<div class="group"> |
+ <div class="scroller"> |
+ <div class="container"> |
+ <div class="outerBox" style="left: 250px;"> |
+ <div class="innerBox" style="left: 50px;"></div> |
+ </div> |
+ </div> |
+ </div> |
+</div> |
+ |
+<div class="group"> |
+ <div class="scroller"> |
+ <div class="container"> |
+ <div class="outerBox" style="left: 250px;"> |
+ <div class="innerBox" style="left: 100px;"></div> |
+ </div> |
+ </div> |
+ </div> |
+</div> |