tor-browser

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

text-box-trim-set-dynamically.html (540B)


      1 <!DOCTYPE html>
      2 <title>Test trimming applied dynamically</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
      4 <link rel="match" href="text-box-trim-set-dynamically-ref.html">
      5 <style>
      6 @import "support/TestMetricsFont.css";
      7 
      8 #container {
      9  font: 100px/1 MetricsTestFont;
     10 }
     11 </style>
     12 <div id="container">
     13  <div class="inner">ApÉx</div>
     14  <div class="inner">ApÉx</div>
     15  <div class="inner">ApÉx</div>
     16 </div>
     17 <script>
     18 document.body.offsetHeight;
     19 container.style.textBox = "trim-both ex alphabetic";
     20 </script>