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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/sticky/inline-sticky-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/inline-sticky-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/sticky/inline-sticky-expected.html b/third_party/WebKit/LayoutTests/fast/css/sticky/inline-sticky-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..9191dc26216b27f80ce89055d6ec83409a70d17a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/sticky/inline-sticky-expected.html
@@ -0,0 +1,76 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<style>
+ body {
+ margin: 0;
+ font-family: 'Ahem';
+ font-size: 24px;
+ line-height: 2;
+ }
+
+ .group {
+ display: inline-block;
+ position: relative;
+ width: 220px;
+ height: 500px;
+ }
+
+ .container {
+ width: 200px;
+ height: 400px;
+ outline: 2px solid black;
+ }
+
+ .box {
+ width: 200px;
+ height: 200px;
+ }
+
+ .sticky {
+ width: 200px;
+ height: 200px;
+ color: blue;
+ position: relative;
+ }
+
+ .child {
+ position: absolute;
+ background-color: green;
+ opacity: 0.8;
+ top: 50px;
+ left: 50px;
+ }
+
+ .indicator {
+ display: none;
+ position: absolute;
+ top: 250px;
+ left: 50px;
+ background-color: red;
+ }
+</style>
+</head>
+<body>
+ <div class="group" style="top: -100px">
+ <div class="indicator box"></div>
+ <div class="container">
+ XXX <span class="sticky" style="top: 172px;">XXXX</br>XXXX</br>XXXX</br>XXXX</br>XXXX</span> XXX
+ </div>
+ </div>
+ <div class="group" style="top: 0">
+ <div class="indicator box"></div>
+ <div class="container">
+ XXX <span class="sticky" style="top: 88px;">XXXX</br>XXXX</br>XXXX</br>XXXX</br>XXXX</span> XXX
+ </div>
+ </div>
+ <div class="group" style="top: 100px">
+ <div class="indicator box"></div>
+ <div class="container">
+ XXX <span class="sticky" style="top: 0;">XXXX</br>XXXX</br>XXXX</br>XXXX</br>XXXX</span> XXX
+ </div>
+ </div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698