tor-browser

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

text-underline-position-from-font-variable-ref.html (1199B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Text Decoration Test: text-underline-position respects variable font properties</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-underline-position-property">
      7 <meta name="assert" content="text-underline-position from-font respects MVAR table of variable fonts for variable metrics">
      8 <link rel="author" title="Dominik Röttsches" href="mailto:drott@chromium.org">
      9 <style>
     10 @font-face {
     11 font-family: underline-close;
     12 src: url(../resources/UnderlineTest-Close.ttf);
     13 }
     14 
     15 @font-face {
     16 font-family: underline-far;
     17 src: url(../resources/UnderlineTest-Far.ttf);
     18 }
     19 
     20 .test {
     21 text-underline-position: from-font;
     22 font-size: 64px;
     23 line-height: 1.8;
     24 }
     25 
     26 .close_underline {
     27 text-decoration: underline;
     28 font-family: underline-close;
     29 }
     30 
     31 .far_underline {
     32 text-decoration: underline;
     33 font-family: underline-far;
     34 }
     35 </style>
     36 </head>
     37 <body>
     38    <p>Test passes if the underline on the first line is close to the baseline and far from the baseline on the
     39    second line.</p>
     40    <div class="test"><span class="close_underline">aagaa</span></div>
     41    <div class="test"><span class="far_underline">aagaa</span></div>
     42 </body>
     43 </html>