Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /scroll-to-text-fragment/same-document-tests-no-force-load-at-top.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Same document navigation to text fragment directives, with force-load-at-top set to false</title>
<meta charset=utf-8>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/util.js"></script>
<script src="same-document-tests.js"></script>
<style>
div {
margin: 200vh 0 200vh 0;
}
</style>
<body onload="runTests()">
<div id="text">
This is a line of text.
</div>
<div id="elementid">
This div has an id: 'elementid'.
</div>
</body>