wpt / css / css-view-transitions / navigation / chromium-paint-holding-timeout.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-view-transitions/navigation/chromium-paint-holding-timeout.html

<!DOCTYPE html>
<html class="reftest-wait">
<title>View Transitions: paint holding timeout cancels transition</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
<link rel="author" href="mailto:vmpstr@chromium.org">
<link rel="match" href="chromium-paint-holding-timeout-ref.html">
<link rel="assert" content="Ensures paint holding timeout cancels transition. Note that this is a Chromium only test">
<script src="/common/reftest-wait.js"></script>
<script src="/web-animations/testcommon.js"></script>
<style>
@view-transition {
  navigation: auto;
}
.left {
  view-transition-name: target;
  width: 100px;
  height: 100px;
  background: red;
}
</style>

<div class=left></div>
<script>
function runTest() {
  const url = "resources/chromium-paint-holding-timeout.html";
  window.location.replace(new URL(url, window.location));
}
onload = async () => {
  await waitForCompositorReady();
  runTest();
}
</script>
</html>

/css/css-view-transitions/navigation/chromium-paint-holding-timeout-ref.html

<!DOCTYPE html>
<title>View Transitions: paint holding timeout cancels transition (ref)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
<link rel="author" href="mailto:vmpstr@chromium.org">
<style>
.left {
  width: 100px;
  height: 100px;
  position: relative;
  left: 300px;
  background: green;
}
</style>
<div class=left></div>