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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 body {
4 margin: 0px;
5 }
6
7 .scroller {
8 overflow: scroll;
9 width: 200px;
10 height: 600px;
11 }
12
13 .box {
14 background: rgba(0, 255, 0, 0.9);
15 position: relative;
16 width: 185px;
17 height: 50px;
18 top: 200px;
19 }
20
21 .indicator {
22 position: absolute;
23 width: 185px;
24 height: 50px;
25 background: red; /* covered up by .box when working */
26 }
27
28 .container {
29 width: 100%;
30 height: 1000px;
31 background: grey;
32 }
33 </style>
34
35 <div id="scroller" class="scroller">
36 <div class="container">
37 <div class="indicator"></div>
38 <div class="box"></div>
39 </div>
40 </div>
41
42 <script>
43 let scroller = document.getElementById('scroller');
44 scroller.scrollTop = 200;
45 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698