Runs: Chrome 158.0.8110.0 (wpt@fa98dec9b, 2026-10-18) | Firefox 160.0a1 (wpt@51af97519, 2026-10-17) | Safari 254 preview (wpt@470a7adf8, 2026-10-18) | Ladybird 1.0-44fe0 (wpt@850b36a56, 2026-10-18) | Servo Servo 0.7 (wpt@df642c414, 2026-10-17) | Blitz fb8d6c15e (wpt@cd1d8aa5b, 2026-10-17)
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 1/1 | 1/1 | 1/1 | 0/1 | 1/1 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| Test the supported value for <link rel=preload as="..."> | PASS | PASS | PASS | FAIL | PASS | — |
/preload/supported-as-values.html
<!DOCTYPE html> <html> <title>Test the supported value for <link rel=preload as="..."></title> <meta name="timeout" content="long"> <meta name="variant" content="?as=image&expected=1"> <meta name="variant" content="?as=fetch&expected=1"> <meta name="variant" content="?as=font&expected=1"> <meta name="variant" content="?as=script&expected=1"> <meta name="variant" content="?as=style&expected=1"> <meta name="variant" content="?as=track&expected=1"> <meta name="variant" content="?as=garbagefoobar&expected=0"> <meta name="variant" content="?as=video&expected=0"> <meta name="variant" content="?as=audio&expected=0"> <meta name="variant" content="?as=object&expected=0"> <meta name="variant" content="?as=iframe&expected=0"> <meta name="variant" content="?as=worklet&expected=0"> <meta name="variant" content="?as=json&expected=0"> <script src="/common/utils.js"></script> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <body> <script> const params = new URLSearchParams(location.search); const as = params.get("as"); const expected = Number(params.get("expected")); promise_test(async t => { const link = document.createElement("link"); link.href = new URL("/common/echo.py?content=nothing", location.href).href; link.rel = "preload"; link.as = as; document.head.append(link); await new Promise(resolve => { t.step_timeout(resolve, 1000); link.addEventListener("load", resolve); link.addEventListener("error", resolve); }); const resources = performance.getEntriesByName(link.href); assert_equals(resources.length, expected); }); </script> </body> </html>