Runs: Chrome 160.0.8195.0 (wpt@1ab8957e4, 2026-12-01) | Firefox 163.0a1 (wpt@1ab8957e4, 2026-12-01) | Safari 257 preview (wpt@13099faa1, 2026-12-02) | Ladybird 1.0-999d5 (wpt@1fcfb4937, 2026-12-03) | Servo Servo 0.9 (wpt@8becd6459, 2026-12-02) | Blitz 1b7ee406b (wpt@705f393a6, 2026-12-02)
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 1/1 | 1/1 | 1/1 | 0/1 | 0/1 | 0/1 |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz | Blitz error message |
|---|---|---|---|---|---|---|---|
| pageswap includes a view transition after resize media matching | PASS | PASS | PASS | TIMEOUT | TIMEOUT | TIMEOUT |
/css/css-view-transitions/navigation/pageswap-after-media-change.html
<!DOCTYPE html> <meta name="variant" content="?initial"> <meta name="variant" content="?resize"> <title>A media query change updates the outbound view transition opt-in</title> <link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/#view-transition-rule"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <body> <script> promise_test(async t => { const frame = document.createElement("iframe"); frame.width = location.search === "?resize" ? "200" : "400"; frame.src = "resources/pageswap-media-change.html"; const loaded = new Promise(resolve => frame.onload = resolve); document.body.append(frame); t.add_cleanup(() => frame.remove()); await loaded; const win = frame.contentWindow; const twoFrames = () => new Promise(resolve => win.requestAnimationFrame(() => win.requestAnimationFrame(resolve))); await twoFrames(); if (location.search === "?resize") { assert_false(win.matchMedia("(min-width: 300px)").matches); frame.width = "400"; await twoFrames(); } assert_true(win.matchMedia("(min-width: 300px)").matches); const swapped = new Promise(resolve => { win.addEventListener("pageswap", event => { resolve(event.viewTransition !== null); event.viewTransition?.skipTransition(); }, { once: true }); }); frame.src = "/resources/blank.html?destination"; assert_true(await swapped, "The matching rule enables an outbound transition"); }, "pageswap includes a view transition after " + location.search.slice(1) + " media matching"); </script>