diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-view-transitions/fragmented-during-transition-skips.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-view-transitions/fragmented-during-transition-skips.html')
-rw-r--r-- | testing/web-platform/tests/css/css-view-transitions/fragmented-during-transition-skips.html | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-view-transitions/fragmented-during-transition-skips.html b/testing/web-platform/tests/css/css-view-transitions/fragmented-during-transition-skips.html new file mode 100644 index 0000000000..dc4164dae5 --- /dev/null +++ b/testing/web-platform/tests/css/css-view-transitions/fragmented-during-transition-skips.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html class=reftest-wait> +<title>View transitions: fragmented elements skipped</title> +<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/"> +<link rel="author" href="mailto:vmpstr@chromium.org"> +<link rel="match" href="fragmented-during-transition-skips-ref.html"> + +<script src="/common/reftest-wait.js"></script> +<style> +#spacer { + width: 100px; + height: 950px; + background: lightgreen; +} +#container { + width: 500px; + height: 500px; +} +.fragment { + columns: 2; +} +#target { + width: 200px; + height: 200px; + background: green; + view-transition-name: target; +} +#unrelated { + width: 100px; + height: 100px; + background: lightblue; + view-transition-name: unrelated; +} + +::view-transition { + background: pink; +} +::view-transition-group(root) { + animation-duration: 500s; + visibility: hidden; +} +::view-transition-group(target) { + border: 1px solid black; +} +</style> +<div id=container> + <div id=spacer></div> + <div id=target></div> +</div> +<div id=unrelated></div> + +<script> +failIfNot(document.startViewTransition, "Missing document.startViewTransition"); + +function runTransition() { + let t = document.startViewTransition(); + t.ready.then(() => { + requestAnimationFrame(() => container.classList.add("fragment")) + }); + t.finished.then(takeScreenshot); +} + +requestAnimationFrame(() => requestAnimationFrame(runTransition)) +</script> |