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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-stacking-context-expected.html

Issue 1850703002: Revert "Adapt and reland old position sticky implementation from https://codereview.chromium.org/34… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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-stacking-context-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-stacking-context-expected.html b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-stacking-context-expected.html
index 069e7107f58d4706cccac4946a931abe6d095357..46ea61484bff71eb6a66735fe2e94a90f992584c 100644
--- a/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-stacking-context-expected.html
+++ b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-stacking-context-expected.html
@@ -1,47 +1,21 @@
<!DOCTYPE html>
-<script>
-if (window.internals) {
- internals.settings.setCSSStickyPositionEnabled(true);
-}
-</script>
-
-<html>
-<head>
-<style>
- body {
- margin: 0;
- }
-
- .container {
- width: 200px;
- height: 400px;
- outline: 2px solid black;
- }
-
- .box {
- width: 200px;
- height: 200px;
- }
-
- .sticky {
- position: sticky;
- }
-
- .child {
- position: relative;
- background-color: green;
- z-index: 2;
- }
+<style type="text/css">
+div {
+ height: 100px;
+ width: 100px;
+}
+.sticky {
+ background-color: green;
+ position: relative;
+}
+.red {
+ background-color: red;
+ margin-top: -100px;
+}
</style>
-</head>
-<body>
- <div class="group">
- <div class="container">
- <div class="sticky box">
- <div class="child box"></div>
- </div>
- </div>
- </div>
-
-</body>
-</html>
+<!--
+Tests that the sticky node will be popped out into a stacking context on top of the node which follows it. You should
+see no red boxes as the green sticky div should pop on top of the red div placed under it.
+-->
+<div class="sticky"></div>
+<div class="red"></div>

Powered by Google App Engine
This is Rietveld 408576698