diff options
Diffstat (limited to '')
-rw-r--r-- | devtools/client/inspector/animation/test/doc_infinity_duration.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/devtools/client/inspector/animation/test/doc_infinity_duration.html b/devtools/client/inspector/animation/test/doc_infinity_duration.html new file mode 100644 index 0000000000..10d19fc3cf --- /dev/null +++ b/devtools/client/inspector/animation/test/doc_infinity_duration.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <style> + div { + background-color: lime; + height: 100px; + } + </style> + </head> + <body> + <div class="infinity"></div> + <div class="infinity-delay-iteration-start"></div> + <div class="limited"></div> + <script> + "use strict"; + + document.querySelector(".infinity").animate( + { opacity: [1, 0] }, + { duration: Infinity } + ); + + document.querySelector(".infinity-delay-iteration-start").animate( + { opacity: [1, 0] }, + { + delay: 100000, + duration: Infinity, + iterationStart: 0.5, + } + ); + + document.querySelector(".limited").animate( + { opacity: [1, 0] }, + { + duration: 100000, + } + ); + </script> + </body> +</html> |