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

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 // The calls below should not take effect, given
14 // that setting scrollTop/Left on the root node
15 // is no-op in quirks-mode.
16 document.documentElement.scrollTop = 1;
17 document.documentElement.scrollLeft = 1;
18
11 parent.verifyTest() 19 parent.verifyTest()
12 } 20 }
13 </script> 21 </script>
14 </head> 22 </head>
15 <body onload="scroll()"> 23 <body onload="scroll()">
16 <div></div> 24 <div></div>
17 </body> 25 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/zoom-body-scroll.html ('k') | LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698