text-decoration-thickness-001.xht (1283B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Text-decoration underline across elements with different font sizes</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#lining-striking-props" /> 7 <meta name="assert" content="Thickness and baseline are the same for all children of elements with 'text-decoration' set." /> 8 <style type="text/css"> 9 div 10 { 11 text-decoration: underline; 12 } 13 #span1 14 { 15 font-size: 50pt; 16 } 17 #span2 18 { 19 font-size: 30pt; 20 } 21 #span3 22 { 23 font-size: 20pt; 24 } 25 </style> 26 </head> 27 <body> 28 <p>Test passes if there is a contiguous line of the same thickness beneath all the "Filler Text" below.</p> 29 <div> 30 <span id="span1">Filler Text</span> 31 <span id="span2">Filler Text</span> 32 <span id="span3">Filler Text</span> 33 </div> 34 </body> 35 </html>