diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-transitions/all-with-discrete.tentative.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-transitions/all-with-discrete.tentative.html')
-rw-r--r-- | testing/web-platform/tests/css/css-transitions/all-with-discrete.tentative.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-transitions/all-with-discrete.tentative.html b/testing/web-platform/tests/css/css-transitions/all-with-discrete.tentative.html new file mode 100644 index 0000000000..a048bc7a1c --- /dev/null +++ b/testing/web-platform/tests/css/css-transitions/all-with-discrete.tentative.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<link rel=author href="mailto:jarhar@chromium.org"> +<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/css-animations/support/testcommon.js"></script> + +<div id=target1 class=target>hello</div> +<div id=target2 class=target>hello</div> + +<style> +.target { + float: left; + width: 100px; + height: 100px; +} +.target.animated { + float: right; +} + +#target1 { + transition: all 1s, float 1s; +} + +#target2 { + transition: all 1s; +} +</style> + +<script> +promise_test(async () => { + let transitionstartFired = false; + target1.addEventListener('transitionstart', () => { + transitionstartFired = true; + }); + await waitForAnimationFrames(2); + target1.classList.add('animated'); + await waitForAnimationFrames(1); + assert_true(transitionstartFired); +}, 'all with an explicit discrete property should animate.'); + +promise_test(async () => { + let transitionstartFired = false; + target2.addEventListener('transitionstart', () => { + transitionstartFired = true; + }); + await waitForAnimationFrames(2); + target2.classList.add('animated'); + await waitForAnimationFrames(1); + assert_false(transitionstartFired); +}, 'all without an explicit discrete property should not animate.'); +</script> |