tor-browser

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

quirk-origin-check-positive.html (656B)


      1 <!-- quirks -->
      2 <title>Same-origin stylesheet with non-CSS MIME type quirk</title>
      3 <link rel="help" href="https://html.spec.whatwg.org/multipage/#link-type-stylesheet">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <link rel="stylesheet" href="resources/quirk-stylesheet.css.txt">
      7 <p class="test">This text should be green.</p>
      8 <script>
      9 setup({ single_test: true });
     10 onload = () => {
     11  assert_equals(
     12    getComputedStyle(document.querySelector('.test')).color,
     13    'rgb(0, 128, 0)',
     14    "Same-origin stylesheet with non-CSS MIME type should be applied in quirks mode"
     15  );
     16  done();
     17 };
     18 </script>