tor-browser

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

webkit-line-clamp-abspos-001.html (1011B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>line-clamping perhaps shouldn't prevent abspos content from painting</title>
      4 <link rel="author" href="mailto:dholbert@mozilla.com" title="Daniel Holbert">
      5 <link rel="author" href="https://mozilla.org" title="Mozilla">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
      7 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#propdef--webkit-line-clamp">
      8 <link rel="help" href="https://bugzil.la/1934547">
      9 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11379">
     10 <style>
     11 .line-clamp {
     12  display: -webkit-box;
     13  -webkit-box-orient: vertical;
     14  -webkit-line-clamp: 1;
     15  position: relative;
     16  overflow: hidden;
     17  height: 100px;
     18  width: 100px;
     19 }
     20 .abspos {
     21  position: absolute;
     22  top: 0;
     23  left: 0;
     24  height: 100px;
     25  width: 100px;
     26  background: green;
     27 }
     28 </style>
     29 <p>Test passes if there is a filled green square.</p>
     30 
     31 <div class="line-clamp">
     32  FAIL<br>
     33  FAIL<br>
     34  FAIL<br>
     35  <div class="abspos"></div>
     36 </div>