tor-browser

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

font-inflation-1e.html (677B)


      1 <!DOCTYPE HTML>
      2 <style>
      3 html { writing-mode: vertical-lr; text-orientation: sideways-right; }
      4 #outer { width: 450px; }
      5 #inner { font-size: 12px; width: 100%; height: 100%; }
      6 </style>
      7 <div id="outer">
      8 <div id="inner">Inflated?
      9 
     10 <script>
     11 // When AccessibleCaret is enabled, the above markup is sufficient to trigger
     12 // the assertion on the custom content container. This script forces
     13 // AccessibleCaret to show, and tests that font inflation doesn't trigger
     14 // assertion for elements in the custom content container subtree.
     15 var sel = window.getSelection();
     16 sel.selectAllChildren(document.documentElement);
     17 document.documentElement.offsetWidth;
     18 sel.removeAllRanges();
     19 </script>