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

Unified Diff: LayoutTests/fast/css/sticky/sticky-stacking-context.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: Created 5 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-stacking-context.html
diff --git a/LayoutTests/fast/css/sticky/sticky-stacking-context.html b/LayoutTests/fast/css/sticky/sticky-stacking-context.html
new file mode 100644
index 0000000000000000000000000000000000000000..91e02f3e453c01183daf1223ade4ac79c8bb9e45
--- /dev/null
+++ b/LayoutTests/fast/css/sticky/sticky-stacking-context.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
Ian Vollick 2015/06/30 17:56:32 no need for html, body or head. Please also add a
flackr 2015/06/30 18:44:48 Done. Seems I need a body in the parsing test to c
+<head>
+<style type="text/css">
+div {
+ height: 100px;
+ width: 100px;
+}
+.sticky {
+ background-color: green;
+ position: sticky;
+}
+.red {
+ background-color: red;
+ margin-top: -100px;
+}
+</style>
+</head>
+<body>
+ <div class="sticky"></div>
+ <div class="red"></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698