tor-browser

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

content-height-002.html (1295B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS2 inline level box content height test</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
      5 <link rel="help" href="https://drafts.csswg.org/css2/visudet.html#line-height">
      6 <link rel="match" href="reference/content-height-002-ref.html">
      7 <meta name="assert" content="The height of the content area of an inline-level box does not depend on the value of the line-height property,
      8                             even when fallback fonts are used">
      9 <style>
     10 @font-face {
     11  font-family: 'high-a-only';
     12  font-style: normal;
     13  font-weight: 400;
     14  src:  url(/fonts/Revalia.woff) format('woff');
     15  unicode-range: U+0061, U+0020;
     16 }
     17 @font-face {
     18  font-family: 'deep-b-only';
     19  font-style: normal;
     20  font-weight: 400;
     21  src: url(/fonts/AD.woff) format('woff');
     22  unicode-range: U+0062, U+0020;
     23 }
     24 
     25 div {
     26  font-size: 50px;
     27  display: inline-block;
     28  color: transparent;
     29  font-family: high-a-only, deep-b-only;
     30 }
     31 
     32 span { background: blue; }
     33 
     34 div { line-height: 200px; }
     35 div:nth-of-type(2) { line-height: 30px; }
     36 div:nth-of-type(3) { line-height: normal; }
     37 </style>
     38 
     39 <p>Test passes if the blue shape below is a rectangle, but not some other polygon.
     40 
     41 <div><span>ab</span></div><div><span>ab</span></div><div><span>ab</span></div>