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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/absolute-element-in-isolated-composited-ancestor-expected.html

Issue 2869813002: Fix the bug that absolute positioned element moves unexpectedly (Closed)
Patch Set: Add test expectation 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/absolute-element-in-isolated-composited-ancestor-expected.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/absolute-element-in-isolated-composited-ancestor-expected.html b/third_party/WebKit/LayoutTests/compositing/overflow/absolute-element-in-isolated-composited-ancestor-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..6710eba37bc80698e0d576ef072977978e291041
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/absolute-element-in-isolated-composited-ancestor-expected.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0px;
+}
+
+.scroller {
+ overflow: scroll;
+ width: 200px;
+ height: 600px;
+}
+
+.box {
+ background: rgba(0, 255, 0, 0.9);
+ position: relative;
+ width: 185px;
+ height: 50px;
+ top: 200px;
+}
+
+.indicator {
+ position: absolute;
+ width: 185px;
+ height: 50px;
+ background: red; /* covered up by .box when working */
+}
+
+.container {
+ width: 100%;
+ height: 1000px;
+ background: grey;
+}
+</style>
+
+<div id="scroller" class="scroller">
+ <div class="container">
+ <div class="indicator"></div>
+ <div class="box"></div>
+ </div>
+</div>
+
+<script>
+ let scroller = document.getElementById('scroller');
+ scroller.scrollTop = 200;
+</script>

Powered by Google App Engine
This is Rietveld 408576698