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: LayoutTests/fast/dom/Element/resources/scrollable-iframe-quirks.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 <head> 1 <head>
2 <style> 2 <style>
3 div { 3 div {
4 height: 9999px; 4 height: 9999px;
5 width: 9999px; 5 width: 9999px;
6 } 6 }
7 </style> 7 </style>
8 <script> 8 <script>
9 function scroll() { 9 function scroll() {
10 window.scrollTo(4000,5000); 10 document.body.scrollTop = 5000;
11 document.body.scrollLeft = 4000;
12
13 // Should be no-op.
Julien - ping for review 2013/10/07 16:27:26 Ideally this should be into its own test to avoid
14 document.documentElement.scrollTop = 1;
15 document.documentElement.scrollLeft = 1;
16
11 parent.verifyTest() 17 parent.verifyTest()
12 } 18 }
13 </script> 19 </script>
14 </head> 20 </head>
15 <body onload="scroll()"> 21 <body onload="scroll()">
16 <div></div> 22 <div></div>
17 </body> 23 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698