tor-browser

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

text-decoration-va-length-002.xht (1634B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Test: text-decoration: underline - vertical-align: &lt;length&gt;</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#lining-striking-props" title="16.3.1 Underlining, overlining, striking, and blinking: the 'text-decoration' property" />
     11   <link rel="bookmark" href="https://bugzilla.mozilla.org/show_bug.cgi?id=695442" title="Mozilla Bug 695442: strike style not correctly applied to sub and sup elements" />
     12   <link rel="match" href="text-decoration-va-length-002-ref.xht" />
     13 
     14   <meta content="The position of text decoration lines must be determined in relation to the same baseline and is not affected by 'vertical-align' applied on its descendants." name="assert" />
     15 
     16   <style type="text/css"><![CDATA[
     17   div
     18   {
     19   color: black;
     20   font: 3.75em/0.4 serif;
     21   margin-left: 1em;
     22   text-decoration: underline;
     23   text-decoration-skip-ink: none;
     24   }
     25 
     26   span#wrapper
     27   {
     28   color: white;
     29   font-size: 0.4em;
     30   }
     31 
     32   span#high {vertical-align: 1em;}
     33 
     34   span#up {vertical-align: 0.5em;}
     35 
     36   span#baseline {vertical-align: 0em;}
     37   ]]></style>
     38 
     39  </head>
     40 
     41  <body>
     42 
     43   <p>Test passes if there is one <strong>and only one</strong> short straight horizontal black line.</p>
     44 
     45   <div>
     46     <span id="wrapper">
     47       <span id="high">abcde</span><span id="up">fghij</span><span id="baseline">klmno</span>
     48     </span>
     49   </div>
     50 
     51  </body>
     52 </html>