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

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 // The calls below should not take effect, given
15 // that setting scrollTop/Left on the body node
16 // is no-op in strict-mode.
17 document.body.scrollTop = 1;
18 document.body.scrollLeft = 1;
19
12 parent.verifyTest() 20 parent.verifyTest()
13 } 21 }
14 </script> 22 </script>
15 </head> 23 </head>
16 <body onload="scroll()"> 24 <body onload="scroll()">
17 <div></div> 25 <div></div>
18 </body> 26 </body>
19 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698