Truly independent web browser
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../expected/search-text-next-match-ref.html">
<style>
p {
font-size: 20px;
line-height: 1.5;
}
</style>
<p>The first needle</p>
<p>The second needle</p>
<script>
internals.findInPage("needle");
requestAnimationFrame(() => {
requestAnimationFrame(() => {
internals.findInPageNextMatch();
requestAnimationFrame(() => {
internals.signalTestIsDone("PASS");
});
});
});
</script>
</html>