tor-browser

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

transform-iframe-scroll-position.html (994B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Test (Transforms): iframe scroll position</title>
      5    <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
      6    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
      7    <meta name="assert" content="This test ensures that when an iframe element is transformed, the scroll position of the iframe content is preserved.">
      8    <link rel="match" href="transform-iframe-scroll-position-ref.html">
      9    <style>
     10        iframe {
     11            border: 0;
     12            width: 50px;
     13            height: 50px;
     14            border: solid;
     15        }
     16 
     17        .rotate {
     18            transform: rotate(90deg);
     19        }
     20    </style>
     21    <body onload="onLoad();">
     22        <iframe id="iframe" src="support/transform-iframe-scroll-position-contents.html"></iframe>
     23        <script>
     24            function onLoad() {
     25                iframe.classList.toggle("rotate");
     26            }
     27        </script>
     28    </body>
     29 </html>