| <script src="../../resources/js-test-pre.js"></script> |
| description("Tests scrolling to an anchor inside overflow:scroll inside position:fixed correctly scrolls the overflow, and not the page"); |
| window.jsTestIsAsync = true; |
| window.scrollTo(100, 800); |
| window.location='#anchor'; |
| setTimeout(finishTest, 0); |
| if (window.location.toString().indexOf("#") == -1) { |
| setTimeout(finishTest, 0); |
| scroller = document.getElementById('scroller'); |
| shouldBe('scroller.scrollTop', '465'); |
| shouldBe('scroller.scrollLeft', '0'); |
| shouldBe('document.scrollingElement.scrollTop', '800'); |
| shouldBe('document.scrollingElement.scrollLeft', '100'); |
| <body onload="runTest()"> |
| <a name="anchor">Anchor is here</a> |
| <script src="../../resources/js-test-post.js"></script> |