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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides.html

Issue 2788053002: Fix sticky bottom is not applied with both sticky position (Closed)
Patch Set: use position:fixed instead of sticky on the expected result Created 3 years, 8 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
Index: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides.html b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides.html
deleted file mode 100644
index 5ca5df94147f63ddb737cfdef1ba7d3cc04f2c01..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<script>
-if (window.internals) {
- internals.settings.setCSSStickyPositionEnabled(true);
-}
-</script>
-
-<html>
-<head>
-<style>
- body {
- margin: 0;
- width: 2000px;
- overflow: hidden; /* hide scrollbars */
- }
-
- .container {
- position: absolute;
- width: 2000px;
- height: 180px;
- top: 350px;
- outline: 2px solid black;
- }
-
- .vertical.container {
- top: 0px;
- left: 350px;
- width: 180px;
- height: 2000px;
- }
-
- .box {
- width: 800px;
- height: 180px;
- }
-
- .vertical .box {
- width: 180px;
- height: 500px;
- }
-
- .sticky {
- position: sticky;
- left: 50px;
- right: 50px;
- background-color: green;
- }
-
- .vertical .sticky {
- left: 0;
- top: 50px;
- bottom: 50px;
- background-color: blue;
- opacity: 0.75;
- }
-</style>
-<script>
- function doTest()
- {
- window.scrollTo(300, 300);
- }
- window.addEventListener('load', doTest, false);
-</script>
-</head>
-<body>
- <div class="container">
- <div class="sticky box"></div>
- </div>
- <div class="vertical container">
- <div class="sticky box"></div>
- </div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698