tor-browser

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

inline-style-allowed.sub.html (971B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4 <head>
      5    <!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
      6    <meta http-equiv="Content-Security-Policy" content="style-src 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-inline'; connect-src 'self';">
      7    <title>inline-style-allowed</title>
      8    <script src="/resources/testharness.js"></script>
      9    <script src="/resources/testharnessreport.js"></script>
     10    <script src='../support/logTest.sub.js?logs=["PASS"]'></script>
     11    <script src="../support/alertAssert.sub.js?alerts=[]"></script>
     12    <script>
     13       window.addEventListener('securitypolicyviolation', function(e) {
     14            log("Fail");
     15       });
     16    </script>
     17 
     18    <style>
     19        .target {
     20            background-color: blue;
     21        }
     22 
     23    </style>
     24 </head>
     25 
     26 <body class="target">
     27    <script>
     28        log(document.styleSheets.length > 0 ? 'PASS' : 'FAIL');
     29 
     30    </script>
     31    <div id="log"></div>
     32 </body>
     33 
     34 </html>