tor-browser

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

mq-calc-resolution.html (600B)


      1 <!DOCTYPE html>
      2 <title>Test: support for calc resolution in Media Queries</title>
      3 <link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation">
      4 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      5 <meta name="assert" content="calc resolution can be used in Media Queries">
      6 <style>
      7  #test {
      8    width: 100px;
      9    height: 100px;
     10    background-color: red;
     11  }
     12 
     13  @media (resolution >= calc(2x - 96dpi)){
     14    #test {
     15      background-color: green;
     16    }
     17  }
     18 </style>
     19 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     20 <div id="test"></div>