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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-writing-mode-vertical-rl.html

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP - fix on release, still hits CHECK in LayoutGeometryMap.cpp:156 Created 4 years, 10 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: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-writing-mode-vertical-rl.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-writing-mode-vertical-rl.html b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-writing-mode-vertical-rl.html
new file mode 100644
index 0000000000000000000000000000000000000000..63651fdb03ccf48f37ad6b1713e1588b7b5ab9a5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-writing-mode-vertical-rl.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<script>
+if (window.internals) {
+ internals.settings.setCSSStickyPositionEnabled(true);
+}
+</script>
+
+<html>
+<head>
+<style>
+ body {
+ margin: 0;
+ width: 2000px;
+ overflow: hidden; /* hide scrollbars */
+ }
+
+ .group {
+ position: relative;
+ width: 500px;
+ height: 160px;
+ }
+
+ .container {
+ -webkit-writing-mode: vertical-rl;
+ width: 300px;
+ height: 160px;
+ border: 2px solid black;
+ margin: 10px;
+ }
+
+ .box {
+ width: 200px;
+ height: 180px;
+ }
+
+ .sticky {
+ position: sticky;
+ background-color: green;
+ width: 100px;
+ height: 100px;
+ left: 20px;
+ right: 20px;
+ margin: 5px;
+ }
+</style>
+<script>
+ function doTest()
+ {
+ window.scrollTo(100, 0);
+ }
+ window.addEventListener('load', doTest, false);
+</script>
+</head>
+<body>
+ <div class="group" style="left: -100px">
+ <div class="container">Before
+ <div class="sticky box"></div>After
+ </div>
+ </div>
+
+ <div class="group" style="left: 400px">
+ <div class="container">Before
+ <div class="sticky box"></div>After
+ </div>
+ </div>
+
+ <div class="group" style="left: 800px">
+ <div class="container">Before
+ <div class="sticky box"></div>After
+ </div>
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698