text-decoration-001-manual.html (820B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>text-decoration underline</title> 6 <meta name="assert" content="text-decoration:underline; there is a line at or under the alphabetic baseline"> 7 <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"> 8 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#line-decoration"> 9 <!-- cosmetic styling --> 10 <style> 11 #htmlsrc { margin: 2em; } 12 #htmlsrc p { 13 font-size: 28px; 14 border-radius: 5px; 15 line-height: 1.5; 16 } 17 </style> 18 <!-- the test --> 19 <style> 20 div span { 21 text-decoration:underline; 22 } 23 </style> 24 </head> 25 <body> 26 <p class="instructions">Test passes if there is a line at or under the alphabetic baseline.</p> 27 <div id="htmlsrc"> 28 29 <div> 30 <p lang="en"><span>The quick brown fox jumps over the lazy dog.</span></p> 31 </div> </div> 32 </body> 33 </html>