OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p>Scrolled position should be restored when the div is hidden and shown again</
p> | 8 <p>Scrolled position should be restored when the div is hidden and shown again</
p> |
9 <div style="height:100px; width:100px; overflow: scroll; display: block;" id="ma
in"> | 9 <div style="height:100px; width:100px; overflow: scroll; display: block;" id="ma
in"> |
10 <pre id="preId"> | 10 <pre id="preId"> |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 e.scrollTop = 75; | 179 e.scrollTop = 75; |
180 e.scrollLeft = 50; | 180 e.scrollLeft = 50; |
181 e.style.display = 'none'; | 181 e.style.display = 'none'; |
182 frame.contentDocument.body.appendChild(e); | 182 frame.contentDocument.body.appendChild(e); |
183 e.style.display = 'block'; | 183 e.style.display = 'block'; |
184 shouldBe('e.scrollTop', '0'); | 184 shouldBe('e.scrollTop', '0'); |
185 shouldBe('e.scrollLeft', '0'); | 185 shouldBe('e.scrollLeft', '0'); |
186 | 186 |
187 successfullyParsed = true; | 187 successfullyParsed = true; |
188 </script> | 188 </script> |
189 <script src="../js/resources/js-test-post.js"></script> | |
190 </body> | 189 </body> |
191 </html> | 190 </html> |
OLD | NEW |