tor-browser

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

first-line-line-height-001.html (857B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS-Pseudo testcase: first-line</title>
      4 <link rel="author" title="Jonathan Kew" href="jkew@mozilla.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-pseudo/#first-line-styling">
      6 <link rel="match" href="first-line-line-height-001-ref.html">
      7 <meta name="assert" content="The ::first-line pseudo-element’s generated box behaves similar to that of an inline-level element">
      8 <style>
      9 div {
     10  font: 16px monospace;
     11  line-height: 24px;
     12  width: 45ch;
     13  background: #eee;
     14 }
     15 div:first-line {
     16  font-size: 2.5em;
     17  line-height: 2em;
     18  background: yellow;
     19 }
     20 </style>
     21 <div>
     22 Lorem ipsum dolor sit amet, consectetur adipiscing elit,
     23 sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
     24 Ut enim ad minim veniam, quis nostrud exercitation ullamco
     25 laboris nisi ut aliquip ex ea commodo consequat.
     26 </div>