tor-browser

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

writing-mode-dynamic-change.html (527B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <link rel="match" href="writing-mode-dynamic-change-ref.html">
      4 <link rel="help" href="https://crbug.com/1273783">
      5 <body>
      6 <svg style="border: 1px solid gray;">
      7  <text id="test-text" y="0" x="50" font-size="16">πŸŽ“πŸ‘ΊπŸ‘•πŸ‘–πŸ‘’</text>
      8 </svg>
      9 <p id="result"></p>
     10 
     11 <script>
     12 var text  = document.getElementById("test-text");
     13 text.getBBox();
     14 
     15 text.style.writingMode = "vertical-rl";
     16 var bbox = text.getBBox();
     17 result.textContent = `BBox: ${bbox.width} x ${bbox.height}`;
     18 </script>
     19 </body>