Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: LayoutTests/fast/css/sticky/sticky-top-overflow-scroll-by-fragment-expected.html

Issue 186943003: Add layout test which checks sticky postioning when overflow is scrolled by fragment. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix indentation. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/css/sticky/sticky-top-overflow-scroll-by-fragment.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/sticky/sticky-top-overflow-scroll-by-fragment-expected.html
diff --git a/LayoutTests/fast/css/sticky/sticky-top-overflow-expected.html b/LayoutTests/fast/css/sticky/sticky-top-overflow-scroll-by-fragment-expected.html
similarity index 74%
copy from LayoutTests/fast/css/sticky/sticky-top-overflow-expected.html
copy to LayoutTests/fast/css/sticky/sticky-top-overflow-scroll-by-fragment-expected.html
index f87b967722438376c211d07fa4b285268b8c775c..1b638b2b65d5609ad0560475214e939ac7e1d24f 100644
--- a/LayoutTests/fast/css/sticky/sticky-top-overflow-expected.html
+++ b/LayoutTests/fast/css/sticky/sticky-top-overflow-scroll-by-fragment-expected.html
@@ -14,12 +14,13 @@
height: 550px;
overflow: hidden;
border: 1px solid black;
+ position: relative;
}
.spacer {
float: left;
width: 10px;
- height: 1200px;
+ height: 500px;
}
.container {
width: 100px;
@@ -32,6 +33,14 @@
height: 200px;
}
+ .hash {
+ width: 600px;
+ height: 10px;
+ background-color: gray;
+ position: absolute;
+ border: 0px;
+ }
+
.sticky {
position: relative;
top: 100px;
@@ -40,8 +49,6 @@
</style>
</head>
<body>
-This test checks that sticky positioned elements are contained by their enclosing ancestor with an overflow clip.
-There should be no red.
<div id="overflow">
<div class="spacer"></div>
@@ -62,6 +69,13 @@ There should be no red.
<div class="sticky box" style="top: 0"></div>
</div>
</div>
+ <div id="hash" class="hash" style="top: -1px;">
+ </div>
+ </div>
+ <div style="position: absolute; top: 560px;">
+ This test checks that sticky positioning when scrolled by fragment.
+ There should be no red.
</div>
</body>
</html>
+
« no previous file with comments | « LayoutTests/fast/css/sticky/sticky-top-overflow-scroll-by-fragment.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698