tor-browser

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

font-size-adjust-reload.html (914B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4 <link rel="author" title="Vitor Roriz" href="https://github.com/vitorroriz">
      5 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-size-adjust-prop">
      6 <link rel="match" href="font-size-adjust-reload-ref.html">
      7 <style>
      8 body {
      9    margin: 0;
     10    padding: 0;
     11 }
     12 iframe {
     13    border: 0;
     14    width: 400px;
     15    height: 400px;
     16 }
     17 </style>
     18 </head>
     19 <body>
     20    <script>
     21        let loadCount = 0;
     22        const iframe = document.createElement("iframe");
     23        iframe.addEventListener("load", function() {
     24            if (loadCount == 2) {
     25                document.documentElement.classList.remove("reftest-wait");
     26                return;
     27            }
     28            iframe.contentWindow.location.reload();
     29            loadCount++;
     30        });
     31        iframe.src = "font-size-adjust-reload-ref.html";
     32        document.body.append(iframe);
     33    </script>
     34 </body>
     35 </html>