text-decoration-097-manual.html (1117B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>text-decoration line-through sideways-lr</title> 6 <meta name="assert" content="text-decoration:line-through; there is a line through the CENTRE of the characters for horizontal scripts set vertically using writing-mode: sideways-lr"> 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 .hint { color: brown; font-family: sans-serif; font-size: 90%; } 18 .hint:before { content: '❗ '; } 19 </style> 20 <!-- the test --> 21 <style> 22 div span { 23 text-decoration:line-through; 24 }</style> 25 </head> 26 <body> 27 <p class="instructions">Test passes if there is a line through the CENTRE of the characters.<br/><span class="hint">Skip the test if the text is not vertical.</span></p> 28 <div id="htmlsrc" style="writing-mode:sideways-lr"> 29 30 <div> 31 <p lang="en"><span>The quick brown fox jumps over the lazy dog.</span></p> 32 </div> </div> 33 </body> 34 </html>