tor-browser

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

text-box-trim-not-ignore-nested-text-box-edge.html (937B)


      1 <!DOCTYPE html>
      2 <title>No need to consult the block container requesting the trim for text-box-edge</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
      4 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge">
      5 <link rel="match" href="text-box-trim-not-ignore-nested-text-box-edge-ref.html">
      6 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      7 <!-- https://github.com/w3c/csswg-drafts/issues/10904 -->
      8 <style>
      9 .spacer {
     10  background: lightgray;
     11  block-size: 100px;
     12 }
     13 .target {
     14  font: 50px/2 Ahem;
     15  text-box-trim: trim-both;
     16  text-box-edge: ex alphabetic;
     17 }
     18 .inner {
     19  text-box-edge: auto;
     20  /* auto keyword uses the value of line-fit-edge on the root inline box of the affected line box,
     21  interpreting leading (the initial value) as text. */
     22 }
     23 </style>
     24 <div class="spacer"></div>
     25 <div class="target">
     26  <div class="inner">ABC</div>
     27 </div>
     28 <div class="spacer"></div>