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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/absolute-element-in-isolated-composited-ancestor.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 .composited {
14 backface-visibility: hidden;
15 isolation: isolate;
16 }
17
18 .box {
19 background: rgba(0, 255, 0, 0.9);
20 position: absolute;
21 width: 185px;
22 height: 50px;
23 top: 0px;
24 }
25
26 .indicator {
27 position: absolute;
28 width: 185px;
29 height: 50px;
30 background: red; /* covered up by .box when working */
31 }
32
33 .container {
34 width: 100%;
35 height: 1000px;
36 background: grey;
37 }
38 </style>
39
40 <div id="scroller" class="scroller">
41 <div class="composited container">
42 <div class="indicator"></div>
43 <div class="box"></div>
44 </div>
45 </div>
46
47 <script>
48 if (window.testRunner)
49 testRunner.waitUntilDone()
50
51 function doTest() {
52 let scroller = document.getElementById('scroller');
53 window.requestAnimationFrame(function() {
54 scroller.scrollTop = 200;
55 if (window.testRunner)
56 testRunner.notifyDone();
57 });
58 }
59
60 window.addEventListener('load', function() {
61 window.requestAnimationFrame(function() {
62 window.requestAnimationFrame(doTest);
63 })
64 });
65 </script>
66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698