tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

iframe-scrolling-attribute.html (828B)


      1 <!DOCTYPE html>
      2 <title>iframe: changing the scrolling attribute</title>
      3 <link rel="author" href="mailto:masonf@chromium.org">
      4 <link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-page">
      5 <link rel="match" href="iframe-scrolling-attribute-ref.html">
      6 
      7 <style>
      8    iframe {
      9        width: 100px;
     10        height: 100px;
     11    }
     12 </style>
     13 
     14 <p>These two iframes should *both* render with scrollbars:</p>
     15 <iframe src="support/big-page.html" scrolling="unknown"></iframe>
     16 <iframe src="support/big-page.html" scrolling="unknown"></iframe>
     17 
     18 <script>
     19  var iframe = document.getElementsByTagName("iframe")[1];
     20  // Setting scrolling=no and then back to scrolling=unknown
     21  // should result in a final value of auto.
     22  iframe.setAttribute("scrolling", "no");
     23  iframe.setAttribute("scrolling", "unknown");
     24 </script>