tor-browser

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

widget.html (763B)


      1 <!doctype html>
      2 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1918838">
      3 <link rel="help" href="https://drafts.csswg.org/css-viewport/#zoom-property">
      4 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
      5 <link rel="author" href="https://mozilla.org" title="Mozilla">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <input type=checkbox>
      9 <input type=radio>
     10 <script>
     11 for (let i of document.querySelectorAll("input")) {
     12  test(function() {
     13    let unzoomed = i.getBoundingClientRect().width;
     14    i.style.zoom = "2";
     15    let zoomed = i.getBoundingClientRect().width;
     16    assert_not_equals(unzoomed, zoomed, "Zoom should be applied");
     17  }, i.type);
     18 }
     19 </script>