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

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

Issue 1416283006: Make window.scroll properties relative to the layout viewport by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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;
(...skipping 12 matching lines...) Expand all
23 23
24 function test() { 24 function test() {
25 document.body.style.width = (document.body.clientWidth + 100) + "px"; 25 document.body.style.width = (document.body.clientWidth + 100) + "px";
26 scaleWithEventSender(); 26 scaleWithEventSender();
27 scroll(); 27 scroll();
28 } 28 }
29 </script> 29 </script>
30 <script src="../../resources/js-test.js"></script> 30 <script src="../../resources/js-test.js"></script>
31 </head> 31 </head>
32 <body style="height: 2000px; width: 2000px; margin:0px;" onload="test();"> 32 <body style="height: 2000px; width: 2000px; margin:0px;" onload="test();">
33 <div style="position: fixed; bottom: 100px; right: 100px; z-index: 1"> 33 <div style="position: fixed; bottom: 400px; right: 500px; z-index: 1">
bokan 2015/11/05 14:43:52 This was because the scrollTo doesn't scroll the v
ymalik 2015/11/05 15:57:01 Done.
34 <div style="left:0; top:0; width:100px; height:100px; position:absolute; background:black;"></div> 34 <div style="left:0; top:0; width:100px; height:100px; position:absolute; background:black;"></div>
35 <div style="left:100px; top:0; width:100px; height:100px; position:absol ute; background:green;"></div> 35 <div style="left:100px; top:0; width:100px; height:100px; position:absol ute; background:green;"></div>
36 36
37 <div style="left:0px; top:100px; width:100px; height:100px; position:abs olute; background:yellow;"></div> 37 <div style="left:0px; top:100px; width:100px; height:100px; position:abs olute; background:yellow;"></div>
38 <div style="left:100px; top:100px; width:100px; height:100px; position:a bsolute; background:blue;"></div> 38 <div style="left:100px; top:100px; width:100px; height:100px; position:a bsolute; background:blue;"></div>
39 </div> 39 </div>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698