786740-1.html 549 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE HTML>
  2. <html class="reftest-wait">
  3. <head>
  4. <style>
  5. #d {
  6. transition:opacity 1s;
  7. }
  8. #p {
  9. position:absolute;
  10. }
  11. </style>
  12. </head>
  13. <body>
  14. <div id="d">
  15. Hello
  16. <span id="s"><div id="p">Kitty</div></span>
  17. </div>
  18. <script>
  19. var d = document.getElementById("d");
  20. d.getBoundingClientRect();
  21. d.style.opacity = 0.3;
  22. window.addEventListener("MozReftestInvalidate",
  23. function() {
  24. setTimeout(function() {
  25. document.body.removeChild(d);
  26. document.documentElement.removeAttribute("class");
  27. }, 50);
  28. }, false);
  29. </script>
  30. </body>
  31. </html>