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

Unified Diff: LayoutTests/fast/css/sticky/sticky-margins.html

Issue 346603007: Remove position: sticky (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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: LayoutTests/fast/css/sticky/sticky-margins.html
diff --git a/LayoutTests/fast/css/sticky/sticky-margins.html b/LayoutTests/fast/css/sticky/sticky-margins.html
deleted file mode 100644
index e11ebc59d301e618218f72f33116f2d9f960971f..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/css/sticky/sticky-margins.html
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-<style>
- body {
- margin: 0;
- height: 2000px;
- overflow: hidden; /* hide scrollbars */
- }
-
- .group {
- display: inline-block;
- position: relative;
- width: 180px;
- height: 500px;
- }
-
- .container {
- width: 150px;
- height: 400px;
- border: 2px solid black;
- padding: 5px;
- }
-
- .box {
- width: 120px;
- height: 120px;
- }
-
- .sticky {
- position: sticky;
- top: 10px;
- background-color: green;
- }
-
- .indicator {
- position: absolute;
- top: 0;
- left: 37px;
- background-color: red;
- }
-</style>
-<script>
- function doTest()
- {
- window.scrollTo(0, 300);
- }
- window.addEventListener('load', doTest, false);
-</script>
-</head>
-<body>
- <!-- auto margins -->
- <div class="group">
- <div class="indicator box" style="top: 110px;"></div>
- <div class="container">
- <div class="sticky box" style="margin: auto;"></div>
- </div>
- </div>
-
- <!-- px margins -->
- <div class="group">
- <div class="indicator box" style="top: 37px;"></div>
- <div class="container">
- <div class="sticky box" style="margin: 20px;"></div>
- </div>
- </div>
-
- <!-- % margins -->
- <div class="group">
- <div class="indicator box" style="top: 37px;"></div>
- <div class="container">
- <div class="sticky box" style="margin: 20%;"></div>
- </div>
- </div>
-
- <!-- % margins -->
- <div class="group">
- <div class="indicator box" style="top: 37px;"></div>
- <div class="container" style="width: 200px;">
- <div class="sticky box" style="margin: 20%;"></div>
- </div>
- </div>
-</body>
-</html>
« no previous file with comments | « LayoutTests/fast/css/sticky/sticky-left-expected.html ('k') | LayoutTests/fast/css/sticky/sticky-margins-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698