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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-top-expected.html

Issue 2733633002: Handle nested position:sticky elements correctly (compositor) (Closed)
Patch Set: Fix unittest Created 3 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/compositing/overflow/composited-nested-sticky-top-expected.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-top-expected.html b/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-top-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..9095044364b9548f4a74176730d4b20ce090fb4b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/composited-nested-sticky-top-expected.html
@@ -0,0 +1,56 @@
+<style>
+body {
+ margin: 0;
+}
+
+.group {
+ display: inline-block;
+ position: relative;
+ width: 250px;
+ height: 350px;
+}
+
+.container {
+ width: 200px;
+ height: 350px;
+ outline: 2px solid black;
+}
+
+.outerBox {
+ position: absolute;
+ background-color: green;
+ width: 200px;
+ height: 200px;
+}
+
+.innerBox {
+ position: absolute;
+ background-color: red;
+ width: 200px;
+ height: 100px;
+}
+</style>
+
+<div class="group">
+ <div class="container">
+ <div class="outerBox" style="top: 50px;">
+ <div class="innerBox" style="top: 0;"></div>
+ </div>
+ </div>
+</div>
+
+<div class="group">
+ <div class="container">
+ <div class="outerBox" style="top: 50px;">
+ <div class="innerBox" style="top: 50px;"></div>
+ </div>
+ </div>
+</div>
+
+<div class="group">
+ <div class="container">
+ <div class="outerBox" style="top: 50px;">
+ <div class="innerBox" style="top: 100px;"></div>
+ </div>
+ </div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698