diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-transitions/crashtests')
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> |