1178575-2.html 871 B

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE HTML>
  2. <html class="reftest-wait"><head>
  3. <meta charset="utf-8">
  4. <title>Testcase #2 for bug 1178575</title>
  5. <style type="text/css">
  6. html,body {
  7. color:black; background-color:white; font-size:16px; padding:0; margin:20px;
  8. }
  9. div {
  10. position: absolute;
  11. left: 0;
  12. right: 0;
  13. box-shadow: 0 0 0 10px rgba(0, 255, 0, 0.5);
  14. margin-top: 10px;
  15. }
  16. span {
  17. position: relative;
  18. display: block;
  19. overflow: hidden;
  20. height: 200px;
  21. }
  22. </style>
  23. <script>
  24. function tweak() {
  25. document.querySelector('div').style.height = "40px";
  26. document.documentElement.removeAttribute("class");
  27. }
  28. window.addEventListener("MozReftestInvalidate", tweak, false);
  29. </script>
  30. </head>
  31. <body><span><div></div><span></body></html>