tor-browser

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

web-font-no-longer-accessible-when-stylesheet-removed.html (905B)


      1 <!DOCTYPE html>
      2 
      3 <html>
      4    <head>
      5        <title>CSS fonts: Web fonts from removed stylsheets should not be accessible</title>
      6        <link rel="author" title="Martin Robinson" href="mrobinson@igalia.com">
      7        <link rel="match" href="web-font-no-longer-accessible-when-stylesheet-removed-ref.html">
      8        <link rel="help" href="https://drafts.csswg.org/css-fonts/#font-face-rule">
      9    </head>
     10 
     11    <body>
     12        <style id="web-font-stylesheet">
     13        @font-face {
     14            font-family: CustomFontFamily;
     15            src: url(/fonts/Ahem.ttf);
     16        }
     17        </style>
     18 
     19        <p>Test passes if the text below is not rendered with Ahem.</p>
     20        <p style="font-family: CustomFontFamily;">TEXT</p>
     21 
     22        <script>
     23            let styleTag = document.getElementById("web-font-stylesheet");
     24            styleTag.parentNode.removeChild(styleTag);
     25        </script>
     26    </body>
     27 
     28 </html>