propagated-overflow-style-2d.html 562 B

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