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

Unified Diff: LayoutTests/fast/css/sticky/sticky-stacking-context-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-stacking-context-expected.html
diff --git a/LayoutTests/fast/css/sticky/sticky-stacking-context-expected.html b/LayoutTests/fast/css/sticky/sticky-stacking-context-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..46ea61484bff71eb6a66735fe2e94a90f992584c
--- /dev/null
+++ b/LayoutTests/fast/css/sticky/sticky-stacking-context-expected.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style type="text/css">
+div {
+ height: 100px;
+ width: 100px;
+}
+.sticky {
+ background-color: green;
+ position: relative;
+}
+.red {
+ background-color: red;
+ margin-top: -100px;
+}
+</style>
+<!--
+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>
« no previous file with comments | « LayoutTests/fast/css/sticky/sticky-stacking-context.html ('k') | Source/core/css/CSSPrimitiveValueMappings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698