tor-browser

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

viewport-script-dynamic.html (740B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Test: Meta viewport after a script and stylesheets</title>
      4 <link rel="author" href="mailto:emilio@crisal.io">
      5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1424878">
      6 <link rel="help" href="https://drafts.csswg.org/mediaqueries/#mf-dimensions">
      7 <link rel="match" href="viewport-script-dynamic-ref.html">
      8 <style>
      9 p { color: green; }
     10 /* Ensure that we initially match it, and stop matching it afterwards */
     11 @media (min-width: 310px) {
     12  p {
     13    color: red;
     14  }
     15 }
     16 </style>
     17 <!-- The broken script below is the point of the test, see the bugzilla bug. -->
     18 <script src="intentionally-broken-url.js"></script>
     19 <meta name="viewport" content="width=300">
     20 <p>Should be green</p>