text-decoration-skip-ink-003.html (1398B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test case for text-decoration-skip-ink</title> 6 <meta name="assert" content="text-decoration-skip-ink: an uninterrupted underline is rendered below the text"> 7 <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@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-4/#text-decoration-skip-ink-property"> 10 <link rel="match" href="reference/text-decoration-skip-ink-003-ref.html"> 11 <link rel="mismatch" href="reference/text-decoration-skip-ink-003-notref.html"> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 13 <style> 14 /* 15 This test ensures that the underline offset is taken into account 16 when calculating the skip-ink. No skip-ink should be applied 17 because the underline is being moved below the text. 18 */ 19 div{ 20 font: 20px/1 Ahem; 21 color: rgba(255,255,0,0.25); 22 text-decoration: green underline; 23 text-decoration-skip-ink: auto; 24 text-underline-offset: .5em; 25 } 26 </style> 27 </head> 28 <body> 29 <p>Test passes if underline is rendered below the text</p> 30 <div>XXXX</div> 31 </body> 32 </html>