propagated-overflow-style-2a.html 535 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <head>
  4. <title>
  5. Testcase with only one of [html,body] being scrollable,
  6. after body's "overflow" is reset dynamically.
  7. </title>
  8. <style>
  9. html {
  10. overflow: scroll;
  11. }
  12. body {
  13. overflow: scroll;
  14. }
  15. </style>
  16. <script>
  17. function doTest() {
  18. document.body.style.overflow = "visible";
  19. document.documentElement.removeAttribute("class");
  20. }
  21. window.addEventListener("MozReftestInvalidate", doTest);
  22. </script>
  23. </head>
  24. <body>
  25. </body>
  26. </html>