1
0
Fork 0
firefox/testing/web-platform/tests/html/dom/render-blocking/element-render-blocking-039.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

23 lines
717 B
HTML

<!DOCTYPE html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/utils.js"></script>
<title>link rel=expect: render blocking stops waiting when the document finishes loading</title>
<link rel=expect href="#invalid" blocking="render">
<script>
const startTime = performance.now();
async_test((t) => {
requestAnimationFrame(() => {
t.step(() => assert_less_than(performance.now() - startTime, 3000, "requestAnimationFrame should not have been delayed by the link that didn't find its target after load completes"));
t.done();
});
}, "");
</script>
</head>
<body>
<div id="first"></div>
<div id="last"></div>
</body>