fune/testing/web-platform/tests/scroll-to-text-fragment/force-load-at-top-target.html
David Bokan 992ee75cfc Bug 1657799 [wpt PR 24910] - Add WPT for ForceLoadAtTop DocumentPolicy, a=testonly
Automatic update from web-platform-tests
Add WPT for ForceLoadAtTop DocumentPolicy

DocumentPolicy has been enabled in M86 so we want to ship the
ForceLoadAtTop policy soon. This CL adds a web platform test to ensure
its correct operation.

Bug: 1047900
Change-Id: I127331aece02d5b23b77941f5cc2958c81a63315
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2342344
Reviewed-by: Nick Burris <nburris@chromium.org>
Commit-Queue: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795943}

--

wpt-commits: db982cee69a421c5d0a5c2d88cd06cff6f57ae66
wpt-pr: 24910
2020-08-25 11:10:13 +00:00

15 lines
388 B
HTML

<!doctype html>
<title>Navigating to a text fragment anchor</title>
<script src="stash.js"></script>
<script src="force-load-at-top.js"></script>
<style>
p#target {
margin: 2000px 0px 2000px 0px;
}
</style>
<!-- This page is loaded with the force-load-at-top Document-Policy header -->
<body>
<p>Top of page</p>
<p id="target">target</p>
<p id="history">history</p>
</body>