1
0
Fork 0
firefox/testing/web-platform/tests/css/css-view-transitions/rotated-cat-off-top-edge.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

44 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<title>View transitions: rotated img element with border radius off the top edge</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="rotated-cat-off-top-edge-ref.html">
<meta name="fuzzy" content="maxDifference=0-70; totalPixels=0-22000">
<script src="/common/reftest-wait.js"></script>
<style>
.target {
transform: rotate(330deg) translate3d(110px, 10px, 10px);
border-radius: 0.375rem;
width: 400px;
height: 400px;
}
::view-transition-group(root) {
animation-duration: 500s;
animation-play-state: paused;
}
::view-transition-old(*) {
animation: unset;
opacity: 1;
}
::view-transition-new(*) {
animation: unset;
opacity: 0;
}
</style>
<body>
<img class="target" src="support/cat.png">
<script>
failIfNot(document.startViewTransition, "Missing document.startViewTransition");
function runTest() {
let transition = document.startViewTransition();
transition.ready.then(takeScreenshot);
}
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
</script>