tor-browser

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

text-decoration-va-length-001.xht (1600B)


      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: overline - 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-001-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/1 serif;
     21   margin-left: 1em;
     22   text-decoration: overline;
     23   }
     24 
     25   span#wrapper
     26   {
     27   color: white;
     28   font-size: 0.4em;
     29   }
     30 
     31   span#up {vertical-align: 0.5em;}
     32 
     33   span#baseline {vertical-align: 0em;}
     34 
     35   span#below {vertical-align: -0.5em;}
     36   ]]></style>
     37 
     38  </head>
     39 
     40  <body>
     41 
     42   <p>Test passes if there is one <strong>and only one</strong> short straight horizontal black line.</p>
     43 
     44   <div>
     45     <span id="wrapper">
     46       <span id="up">abcde</span><span id="baseline">fghij</span><span id="below">klmno</span>
     47     </span>
     48   </div>
     49 
     50  </body>
     51 </html>