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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides-expected.html

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make sticky vertical ref tests expectations not dependent on font size. Created 4 years, 9 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-both-sides-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides-expected.html b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..94b0971a4605f14583577dd78198d1ce6ed15991
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides-expected.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<style>
+ body {
+ margin: 0;
+ overflow: hidden; /* hide scrollbars */
+ }
+
+ .container {
+ position: absolute;
+ width: 2000px;
+ height: 180px;
+ top: 50px;
+ outline: 2px solid black;
+ }
+
+ .vertical.container {
+ top: 0px;
+ left: 50px;
+ width: 180px;
+ height: 2000px;
+ }
+
+ .box {
+ width: 800px;
+ height: 180px;
+ }
+
+ .vertical .box {
+ width: 180px;
+ height: 500px;
+ }
+
+ .sticky {
+ position: relative;
+ left: 50px;
+ right: 50px;
+ background-color: green;
+ }
+
+ .vertical .sticky {
+ left: 0;
+ top: 50px;
+ bottom: 50px;
+ background-color: blue;
+ opacity: 0.75;
+ }
+</style>
+</head>
+<body>
+ <div class="container">
+ <div class="sticky box"></div>
+ </div>
+ <div class="vertical container">
+ <div class="sticky box"></div>
+ </div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698