Index: LayoutTests/fast/css/sticky/sticky-writing-mode-horizontal-bt.html |
diff --git a/LayoutTests/fast/css/sticky/sticky-writing-mode-horizontal-bt.html b/LayoutTests/fast/css/sticky/sticky-writing-mode-horizontal-bt.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..47ae459cf52698f4eb059eb07f87e1ef23d2f2dd |
--- /dev/null |
+++ b/LayoutTests/fast/css/sticky/sticky-writing-mode-horizontal-bt.html |
@@ -0,0 +1,71 @@ |
+<!DOCTYPE html> |
+<script> |
+if (window.internals) { |
+ internals.settings.setCSSStickyPositionEnabled(true); |
+} |
+</script> |
+ |
+<html> |
+<head> |
+<style> |
+ body { |
+ margin: 0; |
+ height: 2000px; |
+ overflow: hidden; /* hide scrollbars */ |
+ } |
+ |
+ .group { |
+ display: inline-block; |
+ position: relative; |
+ width: 250px; |
+ height: 500px; |
+ } |
+ |
+ .container { |
+ -webkit-writing-mode: horizontal-bt; |
+ width: 200px; |
+ height: 400px; |
+ border: 10px solid black; |
+ padding: 5px; |
+ } |
+ |
+ .box { |
+ width: 200px; |
+ height: 200px; |
+ } |
+ |
+ .sticky { |
+ position: sticky; |
+ top: 100px; |
+ bottom: 100px; |
+ background-color: green; |
+ } |
+</style> |
+<script> |
+ function doTest() |
+ { |
+ window.scrollTo(0, 100); |
+ } |
+ window.addEventListener('load', doTest, false); |
+</script> |
+</head> |
+<body> |
+ <div class="group"> |
+ <div class="container"> |
+ <div class="sticky box"></div> |
+ </div> |
+ </div> |
+ |
+ <div class="group" style="top: 200px"> |
+ <div class="container"> |
+ <div class="sticky box"></div> |
+ </div> |
+ </div> |
+ |
+ <div class="group" style="top: 400px"> |
+ <div class="container"> |
+ <div class="sticky box"></div> |
+ </div> |
+ </div> |
+</body> |
+</html> |