summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/compositing/opacity-and-transform-animation-crash.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/compositing/opacity-and-transform-animation-crash.html')
-rw-r--r--testing/web-platform/tests/css/compositing/opacity-and-transform-animation-crash.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/compositing/opacity-and-transform-animation-crash.html b/testing/web-platform/tests/css/compositing/opacity-and-transform-animation-crash.html
new file mode 100644
index 0000000000..294a823cd8
--- /dev/null
+++ b/testing/web-platform/tests/css/compositing/opacity-and-transform-animation-crash.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML>
+<html class=test-wait>
+<style type="text/css">
+ @keyframes anim {
+ from {
+ opacity: 0.99;
+ }
+ to {
+ opacity: 0.9;
+ transform: scale(1, 1);
+ }
+ }
+</style>
+<div id="div" style="transform: scale(1, 10); animation: 50ms linear 0s anim;"></div>
+<script>
+ function boom() {
+ div.style.transform = '';
+ document.execCommand("SelectAll", false, "");
+ requestAnimationFrame(function() {
+ requestAnimationFrame(function() {
+ document.documentElement.classList.remove('test-wait');
+ });
+ });
+ }
+ setTimeout(boom, 50);
+</script>
+</html> \ No newline at end of file