author | Blink WPT Bot <blink-w3c-test-autoroller@chromium.org> |
Tue, 21 Jan 2020 10:55:06 +0000 | |
changeset 573941 | 9e159341d88b20b90c6b04f92d3412a8591a0336 |
parent 573940 | 7ca6056156b6166d7058e4edc6f0412e4f78a58a |
child 573942 | ae92caa7868148247b965667629072b95705849f |
push id | 12662 |
push user | ffxbld-merge |
push date | Mon, 10 Feb 2020 10:43:10 +0000 |
treeherder | mozilla-beta@ace4081e8200 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1587989, 19634, 1042311, 919204, 1838701, 732592 |
milestone | 74.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment-target.html | file | annotate | diff | comparison | revisions |
--- a/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment-target.html +++ b/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment-target.html @@ -43,33 +43,41 @@ function checkScroll() { scrollPosition: position, href: window.location.href, target: target ? target.id : 'undefined' }; let key = (new URL(document.location)).searchParams.get("key"); stashResults(key, results); } + +// Ensure two animation frames on load to test the fallback to element anchor, +// which gets queued for the next frame if the text fragment is not found. +window.onload = function() { + window.requestAnimationFrame(function() { + window.requestAnimationFrame(checkScroll); + }) +} </script> <style> .scroll-section { /* 1000px margin on top and bottom so only one section can be in view. */ margin: 1000px 0px; } #hidden { visibility: hidden; } #horizontal-scroll { margin-left: 2000px; } #display-none { display: none; } </style> -<body onload="window.requestAnimationFrame(checkScroll)"> +<body> <div id="element" class="scroll-section">Element</div> <p id="text" class="scroll-section">This is a test page !$'()*+./:;=?@_~ &,- ネコ</p> <p id="more-text" class="scroll-section">More test page text</p> <div class="scroll-section"> <div> <p>prefix</p> <p id="cross-node-context">test page</p> </div>