scrollingElement-quirks-dynamic-002.html (797B)
1 <!-- quirks mode --> 2 <html style="overflow:scroll"> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSSOM View Test: Dynamically changing scrollingElement to body in quirks mode</title> 6 <link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com"> 7 <link rel="help" href="https://www.w3.org/TR/cssom-view-1/#dom-document-scrollingelement"> 8 <link rel="match" href="scrollingElement-quirks-dynamic-002-ref.html"> 9 <meta name="assert" content="Checks that setting the overflow on html to visible will propagate body scrollbars to viewport."> 10 </head> 11 <body style="overflow:scroll">The body box should not have scrollbars. 12 <script> 13 document.body.offsetTop; // force layout 14 document.documentElement.style.overflow = "visible"; 15 </script> 16 </body> 17 </html>