text-underline-offset-overline.html (1064B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>text-underline-offset does not affect overline placement</title> 6 <meta name="assert" content="text-underline offset does not affect placement of an overline decoration"> 7 <link rel="author" title="Dominik Röttsches" href="mailto:drott@chromium.org"> 8 <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset"> 9 <link rel="match" href="reference/text-underline-offset-overline-ref.html"> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style> 12 #main { 13 margin: 30px; 14 } 15 #main div { 16 text-decoration: green overline; 17 text-decoration-thickness: 5px; 18 text-decoration-skip-ink: none; 19 font: 20px/1 Ahem; 20 text-underline-offset: 20px; 21 } 22 </style> 23 </head> 24 <body> 25 <p class="instructions">Test passes if the green overline is not shifted away from black box.</p> 26 <div id="main"> 27 <div>XXXX</div> 28 </div> 29 </body> 30 </html>