scrollingElement-quirks-dynamic-001.html (774B)
1 <!-- quirks mode --> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSSOM View Test: Dynamically changing scrollingElement to html 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-001-ref.html"> 9 <meta name="assert" content="Checks that setting the overflow on html to scroll will stop propagating body scrollbars to viewport."> 10 </head> 11 <body style="overflow:scroll">The body box should have scrollbars. 12 <script> 13 document.body.offsetTop; // force layout 14 document.documentElement.style.overflow = "scroll"; 15 </script> 16 </body> 17 </html>