tor-browser

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

zoom-computed.html (1026B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Test: getComputedStyle().zoom</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-viewport/#zoom-property">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="/css/support/computed-testcommon.js"></script>
      8 <div id="container">
      9  <div id="target"></div>
     10 </div>
     11 <script>
     12 test_computed_value("zoom", "normal", "1");
     13 
     14 test_computed_value("zoom", "1", "1");
     15 test_computed_value("zoom", "1.5", "1.5");
     16 test_computed_value("zoom", "0.75", "0.75");
     17 test_computed_value("zoom", 'calc(1 - 0.5)', '0.5');
     18 test_computed_value("zoom", 'calc(1 * 0.5)', '0.5');
     19 
     20 test_computed_value("zoom", "100%", "1");
     21 test_computed_value("zoom", "150%", "1.5");
     22 test_computed_value("zoom", "75%", "0.75");
     23 test_computed_value("zoom", 'calc(100% - 50%)', '0.5');
     24 test_computed_value("zoom", 'calc(100% * 0.5)', '0.5');
     25 
     26 // Legacy crap, wat
     27 test_computed_value("zoom", "0", "1");
     28 test_computed_value("zoom", "0%", "1");
     29 </script>