tor-browser

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

block-ellipsis-021.html (1189B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: block-ellipsis and ::first-line</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-line pseudoelement of a child of the line-clamp container.">
      9 <style>
     10 .relative {
     11  position: relative;
     12  font: 25px/25px Ahem;
     13 }
     14 .bg, .clamp {
     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 .clamp {
     26  line-clamp: 3;
     27  color: green;
     28  max-width: 100px;
     29 }
     30 .child::first-letter, .red {
     31  color: red;
     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="relative">
     38  <div class="bg">XXXX<br>XXXX<br>X</div>
     39 
     40  <div class="clamp">
     41    XXXX<br>
     42    XXXX
     43    <div class="child">
     44      <span class="red">
     45        XXXXXXXXXXXXX<br>
     46        XXXXXXXXXXXXX
     47      </span>
     48    </div>
     49  </div>
     50 </div>