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

Unified Diff: LayoutTests/fast/css/sticky/sticky-as-positioning-container-expected.html

Issue 1212893005: Add position: sticky as supported position value when CSSStickyPosition is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge, convert pixel to ref tests, and address comments. Created 5 years, 5 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-as-positioning-container-expected.html
diff --git a/LayoutTests/fast/css/sticky/sticky-as-positioning-container-expected.html b/LayoutTests/fast/css/sticky/sticky-as-positioning-container-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..7fb007524262f774792dc16caa7f0086fd492c41
--- /dev/null
+++ b/LayoutTests/fast/css/sticky/sticky-as-positioning-container-expected.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<style type="text/css">
+div {
+ height: 100px;
+ width: 100px;
+}
+.spacer {
+ background-color: red;
+}
+.sticky {
+ background-color: green;
+ position: relative;
+}
+.absoffset {
+ background-color: green;
+ position: absolute;
+ top: -100px;
+}
+</style>
+<div class="spacer"></div>
+<div class="sticky">
+ <!--
+ Tests that the absolute positioned child is positioned relative to the sticky container. You should see only a
+ green box as this will cover up the red box above the sticky div.
+ -->
+ <div class="absoffset"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698