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

Side by Side Diff: LayoutTests/fast/scroll-behavior/overflow-scroll-triggers-layout.html

Issue 1148003010: Force layout for main thread scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 5 years, 6 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 <script src="../../resources/js-test.js"></script>
3 <style>
4 #inner {
5 background:red;
6 width:500px;
7 height:100%;
8 }
9
10 #outer {
11 width:300px;
12 height:500px;
13 overflow-y:scroll;
14 overflow-x:hidden;
15 }
16 </style>
17 <div id="outer">
18 <div id="inner">
19 </div>
20 </div>
21
22 <script>
23 description("Ensures that if layout is dirty, triggering a scroll causes a relay out");
24
25 outer.addEventListener("wheel",
26 function(e) {
27 inner.style.height = "1000px";
28 }
29 );
30
31 var x = outer.offsetLeft + 5;
32 var y = outer.offsetTop + 5;
33 eventSender.mouseMoveTo(x, y);
34 eventSender.mouseScrollBy(0, -1);
35 shouldBeGreaterThan("outer.scrollTop", "0");
36
37 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698