tor-browser

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

medialist-dynamic-001.html (522B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Test: Dynamic changes to the stylesheet media attributes via CSSOM get reflected</title>
      4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      5 <link rel="match" href="medialist-dynamic-001-ref.html">
      6 <link rel="help" href="https://drafts.csswg.org/cssom/#dom-medialist-mediatext">
      7 <style media="all">* { color: red }</style>
      8 Should not be red.
      9 <script>
     10  document.body.offsetTop;
     11  document.styleSheets[0].media.mediaText = "not all";
     12 </script>