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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/ancestor-overflow-layer-of-sticky-child-of-compositing-container.html

Issue 2890583002: Fix incorrect use of coords conversion for sticky elements (Closed)
Patch Set: nit Created 3 years, 7 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/ancestor-overflow-layer-of-sticky-child-of-compositing-container.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/ancestor-overflow-layer-of-sticky-child-of-compositing-container.html b/third_party/WebKit/LayoutTests/compositing/overflow/ancestor-overflow-layer-of-sticky-child-of-compositing-container.html
new file mode 100644
index 0000000000000000000000000000000000000000..8765eae10f5c112173ae844fd57ea350373f2a09
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/ancestor-overflow-layer-of-sticky-child-of-compositing-container.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<style>
+.fixed {
+ position: fixed;
+}
+
+.sticky {
+ position: sticky;
+ top: 0;
+}
+
+.composited {
+ /* Force compositing without creating a stacking context */
+ backface-visibility: hidden;
+}
+
+.spacer {
+ height: 2000px;
+}
+
+.container {
+ width: 500px;
+ height: 500px;
+ overflow: scroll;
+}
+</style>
+
+<div class="composited fixed">
+ Ref text.
+ <div class="composited container">
+ <div class="sticky">
+ This line should line up with the text above.
+ </div>
+ <div class="spacer"></div>
+ </div>
+</div>
+

Powered by Google App Engine
This is Rietveld 408576698