text-underline-offset-overline-vertical.html (1141B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>text-underline-offset does not affect overline placement in vertical text</title> 6 <meta name="assert" content="text-underline offset does not affect placement of an overline decoration in vertical"> 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-vertical-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 writing-mode: vertical-lr; 17 text-decoration: green overline; 18 text-decoration-thickness: 5px; 19 text-decoration-skip-ink: none; 20 font: 20px/1 Ahem; 21 text-underline-offset: 20px; 22 } 23 </style> 24 </head> 25 <body> 26 <p class="instructions">Test passes if the green overline is not shifted away from black box.</p> 27 <div id="main"> 28 <div>XXXX</div> 29 </div> 30 </body> 31 </html>