wpt / css / css-view-transitions / backdrop-filter-while-promise-pending.html

Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-view-transitions/backdrop-filter-while-promise-pending.html

<!DOCTYPE html>
<html class="reftest-wait">
<title>View transitions: backdrop filter while promise pending</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<link rel="author" href="mailto:vmpstr@chromium.org">
<link rel="match" href="backdrop-filter-while-promise-pending-ref.html">
<script src="/common/reftest-wait.js"></script>
<style>
body {
  background: lightblue;
}
iframe {
  border: none;
}
</style>
<iframe src="support/backdrop-filter-while-promise-pending-iframe.html"></iframe>
<script>
  window.addEventListener("message", (e) => {
    if (e.data === "capture") {
      document.querySelector("iframe").contentWindow.postMessage("start", "*");
      window.addEventListener("message", (e) => {
        if (e.data === "promise_pending") {
          takeScreenshot();
        }
      });
    }
  });
</script>

/css/css-view-transitions/backdrop-filter-while-promise-pending-ref.html

<!doctype html>
<style>
body {
  background: lightblue;
}
iframe {
  border: none;
}
</style>
<iframe src="support/backdrop-filter-while-promise-pending-iframe-ref.html"></iframe>