text-decoration-subelements-001.html (1212B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test case for text-decoration with subelements</title> 6 <meta name="assert" content="for underlines and overlines the UA must use a single thickness and position on each line for the decorations deriving from a single decorating box"> 7 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"> 8 <link rel="author" title="Mozilla" href="https://www.mozilla.org"> 9 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-underline-position-property"> 10 <link rel="mismatch" href="reference/text-decoration-subelements-001-notref.html"> 11 <style> 12 p { 13 margin: 0; 14 padding: 1em; 15 } 16 div.wrapper { 17 font-size: 2em; 18 text-decoration: underline; 19 } 20 </style> 21 </head> 22 <body> 23 <p>Test passes if there is a single uniform underline for all the text in each line, 24 <i>not</i> a separate underline for the superscripts: 25 </p> 26 <div class=wrapper> 27 <p>Einstein said that <i>e = mc<sup>2</sup></i>.<br></p> 28 <p>Is <i>a<sup>n</sup> + b<sup>n</sup> = c<sup>n</sup></i> ever true for <i>n</i> > 2?</p> 29 </div> 30 </body> 31 </html>