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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-iframe-window.html

Issue 2454913003: MainFrame scrollbars should work with RFV instead of FV (Closed)
Patch Set: Fix broken chromeos bot Created 4 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>
4 ::-webkit-scrollbar {
5 width: 0px;
6 height: 0px;
7 }
8 </style>
3 <script> 9 <script>
4 window.enablePixelTesting = true; 10 window.enablePixelTesting = true;
5 11
6 function scroll() { 12 function scroll() {
7 window.scrollTo(0, 100); 13 window.scrollTo(0, 100);
8 var frame = document.getElementById('frame'); 14 var frame = document.getElementById('frame');
9 frame.contentWindow.scrollTo(100,100); 15 frame.contentWindow.scrollTo(100,100);
10 16
11 shouldBe("frame.contentDocument.scrollingElement.scrollTop", "100"); 17 shouldBe("frame.contentDocument.scrollingElement.scrollTop", "100");
12 shouldBe("frame.contentDocument.scrollingElement.scrollLeft", "100") ; 18 shouldBe("frame.contentDocument.scrollingElement.scrollLeft", "100") ;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 doc.write("<div style='left:100px; top:100px; width:100px; height:100px; position:absolute; background:blue;'></div>"); 53 doc.write("<div style='left:100px; top:100px; width:100px; height:100px; position:absolute; background:blue;'></div>");
48 doc.write("<div style='left:200px; top:100px; width:100px; height:100px; position:absolute; background:green;'></div>"); 54 doc.write("<div style='left:200px; top:100px; width:100px; height:100px; position:absolute; background:green;'></div>");
49 doc.write("<div style='left:300px; top:100px; width:100px; height:100px; position:absolute; background:blue;'></div>"); 55 doc.write("<div style='left:300px; top:100px; width:100px; height:100px; position:absolute; background:blue;'></div>");
50 doc.write("<div style='left:400px; top:100px; width:100px; height:100px; position:absolute; background:green;'></div>"); 56 doc.write("<div style='left:400px; top:100px; width:100px; height:100px; position:absolute; background:green;'></div>");
51 doc.close(); 57 doc.close();
52 frame.contentDocument.body.style.width = "2000px"; 58 frame.contentDocument.body.style.width = "2000px";
53 frame.contentDocument.body.style.height = "2000px"; 59 frame.contentDocument.body.style.height = "2000px";
54 </script> 60 </script>
55 </body> 61 </body>
56 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698