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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html

Issue 1724103002: Reverting changes that made window.scroll properties relative to the layout viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 9 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 ::-webkit-scrollbar { 4 ::-webkit-scrollbar {
5 width: 0px; 5 width: 0px;
6 height: 0px; 6 height: 0px;
7 } 7 }
8 </style> 8 </style>
9 <script> 9 <script>
10 window.enablePixelTesting = true; 10 window.enablePixelTesting = true;
11 11
12 function scroll() { 12 function scroll() {
13 // Fully scroll to bring the fixed pos rect into view. 13 // Fully scroll to bring the fixed pos rect into view.
14 eventSender.mouseMoveTo(100, 100); 14 window.scrollTo(500, 1700);
15 eventSender.continuousMouseScrollBy(-500, -1700);
16 } 15 }
17 16
18 function scaleWithEventSender() { 17 function scaleWithEventSender() {
19 var scaleFactor = 2.0; 18 var scaleFactor = 2.0;
20 if (window.internals) { 19 if (window.internals) {
21 internals.setPageScaleFactor(scaleFactor); 20 internals.setPageScaleFactor(scaleFactor);
22 } 21 }
23 } 22 }
24 23
25 function test() { 24 function test() {
(...skipping 10 matching lines...) Expand all
36 <body style="height: 2000px; width: 2000px; margin:0px;" onload="test();"> 35 <body style="height: 2000px; width: 2000px; margin:0px;" onload="test();">
37 <div style="position: fixed; bottom: 100px; right: 100px; z-index: 1"> 36 <div style="position: fixed; bottom: 100px; right: 100px; z-index: 1">
38 <div style="left:0; top:0; width:100px; height:100px; position:absolute; background:black;"></div> 37 <div style="left:0; top:0; width:100px; height:100px; position:absolute; background:black;"></div>
39 <div style="left:100px; top:0; width:100px; height:100px; position:absol ute; background:green;"></div> 38 <div style="left:100px; top:0; width:100px; height:100px; position:absol ute; background:green;"></div>
40 39
41 <div style="left:0px; top:100px; width:100px; height:100px; position:abs olute; background:yellow;"></div> 40 <div style="left:0px; top:100px; width:100px; height:100px; position:abs olute; background:yellow;"></div>
42 <div style="left:100px; top:100px; width:100px; height:100px; position:a bsolute; background:blue;"></div> 41 <div style="left:100px; top:100px; width:100px; height:100px; position:a bsolute; background:blue;"></div>
43 </div> 42 </div>
44 </body> 43 </body>
45 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698