text-decoration-position-001.xht (1394B)
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 - font-size</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." name="assert" /> 14 15 <style type="text/css"><![CDATA[ 16 div 17 { 18 color: black; 19 font-size: 4em; 20 margin-left: 1em; 21 text-decoration: overline; 22 } 23 24 span#wrapper {color: white;} 25 26 span#very-big {font-size: 1em;} 27 28 span#big {font-size: 0.5em;} 29 30 span#medium {font-size: 0.25em;} 31 ]]></style> 32 33 </head> 34 35 <body> 36 37 <p>Test passes if there is one <strong>and only one</strong> short straight horizontal black line.</p> 38 39 <div> 40 <span id="wrapper"> 41 <span id="very-big">abc</span><span id="big">def</span><span id="medium">hik</span> 42 </span> 43 </div> 44 45 </body> 46 </html>