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

Side by Side Diff: LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html

Issue 25741004: set and get scrollTop/Left through documentElement and body should be symmetric, according to the d… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: set and get scrollTop/Left through documentElement and body should be symmetric, according to the d… Created 7 years, 2 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <style> 3 <style>
4 div { 4 div {
5 height: 9999px; 5 height: 9999px;
6 width: 9999px; 6 width: 9999px;
7 } 7 }
8 </style> 8 </style>
9 <script> 9 <script>
10 function scroll() { 10 function scroll() {
11 window.scrollTo(4000,5000); 11 document.documentElement.scrollTop = 5000;
12 document.documentElement.scrollLeft = 4000;
13
14 // Should be no-op.
15 document.body.scrollTop = 1;
16 document.body.scrollLeft = 1;
17
12 parent.verifyTest() 18 parent.verifyTest()
13 } 19 }
14 </script> 20 </script>
15 </head> 21 </head>
16 <body onload="scroll()"> 22 <body onload="scroll()">
17 <div></div> 23 <div></div>
18 </body> 24 </body>
19 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698