tor-browser

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

text-decoration-subelements-003.html (1235B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>Test case for text-decoration with subelements</title>
      6    <meta name="assert" content="line decorations, if any, are added to the element">
      7    <link rel="author" title="Jonathan Kew" href="mailto:jkew@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-3/#text-underline-position-property">
     10    <link rel="match" href="reference/text-decoration-subelements-003-ref.html">
     11    <style>
     12      p {
     13        margin: 0;
     14        padding: 1em;
     15      }
     16      div.wrapper {
     17        font-size: 2em;
     18        text-decoration: underline; /* so browsers that don't accept the color will still show something */
     19        text-decoration: underline blue;
     20      }
     21      sup.test {
     22        text-decoration: underline;
     23        text-decoration: underline green;
     24      }
     25    </style>
     26  </head>
     27  <body>
     28    <p>Test passes if all the text below has a continuous blue underline,
     29        and the raised word “underlined” has an <i>extra</i> green underline.</p>
     30    <div class=wrapper>
     31      <p>All this text should be <sup class=test>underlined</sup>.</p>
     32    </div>
     33  </body>
     34 </html>