Index: LayoutTests/fast/css/sticky/sticky-as-positioning-container.html |
diff --git a/LayoutTests/fast/css/sticky/sticky-as-positioning-container.html b/LayoutTests/fast/css/sticky/sticky-as-positioning-container.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..390db46ba557b66d9ab28860be5b807f3cd932f1 |
--- /dev/null |
+++ b/LayoutTests/fast/css/sticky/sticky-as-positioning-container.html |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<style type="text/css"> |
+div { |
+ height: 100px; |
+ width: 100px; |
+} |
+.spacer { |
+ background-color: red; |
+} |
+.sticky { |
+ background-color: green; |
+ position: sticky; |
+} |
+.absoffset { |
+ background-color: green; |
+ position: absolute; |
+ top: -100px; |
+} |
+</style> |
+</head> |
+<body> |
+ <div class="spacer"></div> |
+ <div class="sticky"> |
+ <div class="absoffset"></div> |
+ </div> |
+</body> |
+</html> |