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-color/animation/opacity-animation-ending-correctly-002.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-color/animation/opacity-animation-ending-correctly-002.html')
-rw-r--r-- | testing/web-platform/tests/css/css-color/animation/opacity-animation-ending-correctly-002.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-color/animation/opacity-animation-ending-correctly-002.html b/testing/web-platform/tests/css/css-color/animation/opacity-animation-ending-correctly-002.html new file mode 100644 index 0000000000..7ba097fb10 --- /dev/null +++ b/testing/web-platform/tests/css/css-color/animation/opacity-animation-ending-correctly-002.html @@ -0,0 +1,50 @@ +<!DOCTYPE HTML> +<html class="reftest-wait"> +<title>CSS Test (Color): ending of opacity animation</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/"> +<link rel="author" title="Google" href="https://www.google.com/"> +<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1330438"> +<link rel="help" href="https://www.w3.org/TR/css-color-3/#transparency"> +<link rel="match" href="opacity-animation-ending-correctly-001-ref.html"> + +<style> +#test { + position: sticky; + top: 0; + height: 50px; + background: blue; + transform: translate(0); + filter: grayscale(0%); + transition: opacity 50ms step-start; +} + +#test.fade { + opacity: 0.2; +} + +.tall { + height: 5000px; +} +</style> + +<div id="test"> +</div> +<div class="tall"> +</div> + +<script> +function flushStyleLayoutAndPrePaint() { + document.elementFromPoint(10, 10); +} + +document.getElementById("test").addEventListener("transitionend", function(e) { + document.documentElement.classList.remove("reftest-wait"); +}); +requestAnimationFrame(function() { + flushStyleLayoutAndPrePaint(); + requestAnimationFrame(function() { + document.getElementById("test").classList.add("fade"); + flushStyleLayoutAndPrePaint(); + }); +}); +</script> |