| <script src="../../resources/js-test-pre.js"></script> |
| description("Tests scrolling to an anchor inside position:fixed doesn't try to scroll the page"); |
| window.jsTestIsAsync = true; |
| window.scrollTo(100, 800); |
| window.location='#anchor'; |
| setTimeout(finishTest, 0); |
| if (window.location.toString().indexOf("#") == -1) { |
| setTimeout(finishTest, 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> |