tor-browser

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

text-box-trim-half-leading-block-box-003.html (1229B)


      1 <!DOCTYPE html>
      2 <title>text-box-trim should only be applied on the first/last formatted line</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-pseudo-4/#first-formatted-line">
      5 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      6 <link rel="match" href="text-box-trim-half-leading-block-box-003-ref.html">
      7 
      8 <style>
      9 .div-parent {
     10  outline: 1px solid orange;
     11  font: 20px/3 Ahem;
     12  text-box-trim: trim-both;
     13  text-box-edge: text;
     14 }
     15 span {
     16  border-block: solid red;
     17 }
     18 </style>
     19 
     20 <!-- The SPANs here will be wrapped inside anonymous blocks. #div-parent will
     21     thus start with an anonymous block (for the first SPAN). When looking for a
     22     first formatted line, it will have to be inside this anonymous block (or it
     23     doesn't exist at all).
     24 
     25     To quote the spec:
     26 
     27     The first formatted line of a block container [...] that contains
     28     block-level content [...] is the first formatted line of its first in-flow
     29     block-level child. If no such line exists, it has no first formatted
     30     line. -->
     31 <div class="div-parent">
     32  <span>    </span>
     33  <div>Testline1<br>Testline2<br>Testline3</div>
     34  <span>	</span>
     35 </div>