tor-browser

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

text-decoration-skip-ink-004.html (1292B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8">
      5        <title>Test case for text-decoration-skip-ink</title>
      6        <meta name="assert" content="text-decoration-skip-ink: a partial underline is rendered above the 'p'">
      7        <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
      8        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
      9        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
     10        <link rel="mismatch" href="reference/text-decoration-skip-ink-004-notref.html">
     11        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     12        <style>
     13         /*
     14            This test ensures that the underline offset is taken into account
     15            when calculating the skip-ink. The underline should skip all
     16            characters except the third.
     17          */
     18         div{
     19             font: 20px/1 Ahem;
     20             color: rgba(255,255,0,0.25);
     21             text-decoration: green underline;
     22             text-decoration-skip-ink: auto;
     23             text-underline-offset: -.3em;
     24         }
     25        </style>
     26    </head>
     27    <body>
     28        <p>Test passes if underline appears only across the 'p' glyph</p>
     29        <div>XXpX</div>
     30    </body>
     31 </html>