wpt / html / dom / render-blocking / element-render-blocking-top-of-document.html?empty

Open test on wpt.live | wpt.fyi

Runs: Chrome 160.0.8195.0 (wpt@1ab8957e4, 2026-12-01) | Firefox 163.0a1 (wpt@1ab8957e4, 2026-12-01) | Safari 257 preview (wpt@1ab8957e4, 2026-12-01) | Ladybird 1.0-3ea11 (wpt@c2d91acbf, 2026-12-02) | Servo Servo 0.8 (wpt@75c11f957, 2026-12-01) | Blitz af350c0af (wpt@705f393a6, 2026-12-02)

ChromeFirefoxSafariLadybirdServoBlitz
Total0/10/10/10/10/1NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
rel=expect blocks for the top-of-document value from #FAILFAILFAILFAILFAIL—

/html/dom/render-blocking/element-render-blocking-top-of-document.html

<!DOCTYPE html>
<meta name="timeout" content="long">
<meta name="variant" content="?empty">
<meta name="variant" content="?top">
<title>rel=expect treats top of the document as a non-element target</title>
<link rel="help" href="https://html.spec.whatwg.org/#process-internal-resource-link">
<link rel="help" href="https://html.spec.whatwg.org/#select-the-indicated-part">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/utils.js"></script>
<script>
const link = document.createElement("link");
link.rel = "expect";
link.setAttribute("blocking", "render");
link.href = location.search === "?empty" ? "#" : "#top";
document.head.append(link);
async_test(t => {
  requestAnimationFrame(t.step_func_done(() => {
    assert_not_equals(document.readyState, "loading",
                      "A non-element target blocks rendering until parsing finishes");
  }));
}, "rel=expect blocks for the top-of-document value from " +
   link.getAttribute("href"));
</script>
<body>
<script>
generateParserDelay();
</script>