summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transitions/crashtests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-transitions/crashtests
parentInitial commit. (diff)
downloadfirefox-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-transitions/crashtests')
-rw-r--r--testing/web-platform/tests/css/css-transitions/crashtests/transition-during-style-attr-mutation.html12
-rw-r--r--testing/web-platform/tests/css/css-transitions/crashtests/transition-large-word-spacing-001.html15
2 files changed, 27 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-transitions/crashtests/transition-during-style-attr-mutation.html b/testing/web-platform/tests/css/css-transitions/crashtests/transition-during-style-attr-mutation.html
new file mode 100644
index 0000000000..255794bfa8
--- /dev/null
+++ b/testing/web-platform/tests/css/css-transitions/crashtests/transition-during-style-attr-mutation.html
@@ -0,0 +1,12 @@
+<!DOCTYPE HTML>
+<title>Don't crash when mutating style attribute with non-initial transition</title>
+<link rel="help" href="https://crbug.com/1313554">
+<style>
+ #foo { transition: --unset 1s linear; }
+</style>
+<div id=foo style="background-color:red">PASS if no crash</div>
+<script>
+foo.offsetTop;
+foo.style.backgroundColor = 'green';
+foo.offsetTop;
+</script>
diff --git a/testing/web-platform/tests/css/css-transitions/crashtests/transition-large-word-spacing-001.html b/testing/web-platform/tests/css/css-transitions/crashtests/transition-large-word-spacing-001.html
new file mode 100644
index 0000000000..24ac2a7780
--- /dev/null
+++ b/testing/web-platform/tests/css/css-transitions/crashtests/transition-large-word-spacing-001.html
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML>
+<title>CSS Test (Transitions): Transition of large word-spacing value</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=1266769">
+<meta name="assert" content="This should not crash.">
+
+<div id="d" style="transition-duration: 1s"></div>
+<script>
+
+let d = document.getElementById("d");
+d.offsetTop;
+d.style.wordSpacing = "100000000000000000000000000000000000000000000000000in";
+
+</script>