summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-animations/crashtests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-animations/crashtests
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-animations/crashtests')
-rw-r--r--testing/web-platform/tests/css/css-animations/crashtests/replace-keyframes-animating-filter-001.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-animations/crashtests/replace-keyframes-animating-filter-001.html b/testing/web-platform/tests/css/css-animations/crashtests/replace-keyframes-animating-filter-001.html
new file mode 100644
index 0000000000..e6355376f7
--- /dev/null
+++ b/testing/web-platform/tests/css/css-animations/crashtests/replace-keyframes-animating-filter-001.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html class="test-wait">
+<title>CSS Test (Animations): Changing an @keyframes that animates filter</title>
+<link rel="author" title="L. David Baron" href="https://dbaron.org/">
+<link rel="author" title="Google" href="http://www.google.com/">
+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1301937">
+<link rel="help" href="https://drafts.csswg.org/css-animations-1/#keyframes">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects/#supported-filter-functions">
+<link rel="help" href="https://drafts.csswg.org/cssom-1/#the-cssstylesheet-interface">
+<meta name="assert" content="This should not crash.">
+
+<style>
+#el1 {
+ height: 100px;
+ width: 100px;
+ animation: kf1 2s linear;
+}
+@keyframes kf1 {
+ from { filter: grayscale(0.9) }
+ to { filter: grayscale(0.8) }
+}
+</style>
+<div id="el1"></div>
+<script>
+
+document.documentElement.addEventListener("TestRendered", step1);
+
+function step1() {
+ requestAnimationFrame(function() { requestAnimationFrame(step2); });
+}
+
+function step2() {
+ let css = document.styleSheets[0];
+ css.insertRule("@keyframes kf1 { from { color: blue } to { color: blue } } ", css.rules.length);
+ requestAnimationFrame(step3);
+}
+
+function step3() {
+ document.documentElement.classList.remove("test-wait");
+}
+
+</script>