tor-browser

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

content-height-004.html (1379B)


      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-004-ref.html">
      7 <meta name="assert" content="The height of the content area of an inline-level does not depend on fallback fonts
      8                             regardless of whether they are used on not.">
      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 { }
     35 div:nth-of-type(2) { }
     36 div:nth-of-type(3) { }
     37 div:nth-of-type(4) { font-family: high-a-only }
     38 aside {
     39  max-width: 300px;
     40  overflow: hidden;
     41  white-space: pre;
     42 }
     43 </style>
     44 
     45 <p>Test passes if the blue shape below is a rectangle, but not some other polygon.
     46 
     47 <aside>
     48 <div><span>aa</span></div><div><span>bb</span></div><div><span>ab</span></div><div><span>aaa</span></div>
     49 </aside>