tor-browser

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

block-ellipsis-020.html (1153B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: block-ellipsis and ::first-letter</title>
      4 <link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp">
      6 <link rel="stylesheet" href="/fonts/ahem.css">
      7 <link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="The block overflow ellipsis must not be included in the ::first-letter pseudoelement of a parent of the line-clamp container.">
      9 <style>
     10 .container {
     11  position: relative;
     12  font: 25px/25px Ahem;
     13 }
     14 .bg, .parent {
     15  position: absolute;
     16  top: 0;
     17  left: 0;
     18 }
     19 .bg {
     20  height: 100px;
     21  width: 100px;
     22  color: red;
     23  background-color: green;
     24 }
     25 .parent::first-line, .red {
     26  color: red;
     27 }
     28 .clamp {
     29  max-width: 100px;
     30  line-clamp: 1;
     31  color: green;
     32 }
     33 </style>
     34 
     35 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     36 
     37 <div class="container">
     38  <div class="bg">X</div>
     39 
     40  <div class="parent">
     41    <div class="clamp">
     42      <span class="red">
     43        0000000000<br>
     44        0000000000
     45      </span>
     46    </div>
     47  </div>
     48 </div>