tor-browser

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

text-decoration-va-sub-super-002.xht (1401B)


      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: line-through - vertical-align: sub</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 
     13   <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" />
     14 
     15   <style type="text/css"><![CDATA[
     16   div
     17   {
     18   font: 4em/0.5 serif;
     19   margin-left: 1em;
     20   }
     21 
     22   span#vertical-align-sub
     23   {
     24   font-size: 0.4em;
     25   vertical-align: sub;
     26   }
     27 
     28   span#striken {text-decoration: line-through;}
     29   ]]></style>
     30 
     31  </head>
     32 
     33  <body>
     34 
     35   <p>Test passes if "vwxyz" has an black line across it; the black line must <strong>not be above</strong> "vwxyz".</p>
     36 
     37   <div>
     38     <span id="vertical-align-sub">
     39       <span id="striken">vwxyz</span>
     40     </span>
     41   </div>
     42 
     43  </body>
     44 </html>