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 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-transitions/crashtests
parentInitial commit. (diff)
downloadfirefox-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/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>