tor-browser

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

quirk-origin-check.html (492B)


      1 <!-- quirks -->
      2 <title>Origin check for stylesheet with non-CSS MIME type quirk</title>
      3 <link rel="stylesheet" href="data:text/plain,.test { background: red }">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <p class=test>There should be no red.</p>
      7 <script>
      8 setup({ single_test: true });
      9 onload = () => {
     10  assert_equals(getComputedStyle(document.querySelector('.test')).backgroundColor, 'rgba(0, 0, 0, 0)');
     11  done();
     12 };
     13 </script>