text-decoration-va-sub-super-003.xht (1456B)
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: super</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/1 serif; 19 margin-left: 1em; 20 } 21 22 span#striken 23 { 24 color: black; 25 text-decoration: line-through; 26 } 27 28 span#vertical-align-super 29 { 30 color: orange; 31 font-size: 0.4em; 32 vertical-align: super; 33 } 34 ]]></style> 35 36 </head> 37 38 <body> 39 40 <p>Test passes if "abcde" has a black line under it; "abcde" must <strong>not be crossed out</strong> by such black line.</p> 41 42 <div> 43 <span id="striken"> 44 <span id="vertical-align-super">abcde</span> 45 </span> 46 </div> 47 48 </body> 49 </html>