Index: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-top-zoomed-expected.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-top-zoomed-expected.html b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-top-zoomed-expected.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1d0aa353742d81713cdfbfe7312b69f178ce8795 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-top-zoomed-expected.html |
@@ -0,0 +1,83 @@ |
+<!DOCTYPE html> |
+<script> |
+if (window.internals) { |
+ internals.settings.setCSSStickyPositionEnabled(true); |
+} |
+</script> |
+ |
+<html> |
+<head> |
+<style> |
+ body { |
+ margin: 0; |
+ height: 2000px; |
+ } |
+ |
+ ::-webkit-scrollbar { |
+ width: 0px; |
+ height: 0px; |
+ } |
+ |
+ .group { |
+ display: inline-block; |
+ position: relative; |
+ width: 160px; |
+ height: 300px; |
+ } |
+ |
+ .container { |
+ width: 150px; |
+ height: 300px; |
+ outline: 2px solid black; |
+ } |
+ |
+ .box { |
+ width: 150px; |
+ height: 150px; |
+ } |
+ |
+ .sticky { |
+ position: sticky; |
+ top: 75px; |
+ background-color: green; |
+ } |
+ |
+ .indicator { |
+ position: absolute; |
+ top: 0; |
+ left: 0; |
+ background-color: red; |
+ } |
+</style> |
+<script> |
+ function doTest() |
+ { |
+ if (window.internals) |
+ internals.setPageScaleFactor(1.5); |
+ } |
+ window.addEventListener('load', doTest, false); |
+</script> |
+</head> |
+<body> |
+ <div class="group" style="top: -100px"> |
+ <div class="indicator box" style="top: 150px;"></div> |
+ <div class="container"> |
+ <div class="sticky box"></div> |
+ </div> |
+ </div> |
+ |
+ <div class="group" style="top: 0"> |
+ <div class="indicator box" style="top: 75px;"></div> |
+ <div class="container"> |
+ <div class="sticky box"></div> |
+ </div> |
+ </div> |
+ |
+ <div class="group" style="top: 100px"> |
+ <div class="indicator box" style="top: 0;"></div> |
+ <div class="container"> |
+ <div class="sticky box"></div> |
+ </div> |
+ </div> |
+</body> |
+</html> |