line-break-strict-hyphens-002.html (914B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS test: hyphens and line-break:strict</title> 5 <link rel=author title="Florian Rivoal" href="https://florian.rivoal.net"> 6 <link rel=help href="https://drafts.csswg.org/css-text-3/#propdef-line-break"> 7 <link rel=help href="https://drafts.csswg.org/css-text-3/#word-break-property"> 8 <link rel=match href="reference/line-break-normal-hyphens-002-ref.html"> 9 <meta name=assert content="breaks before U+2010 or U+2013 when line-break is strict are not allowed if the preceding character is treated as having class ID due to word-break:break-all."> 10 <style> 11 div { 12 font-family: monospace; 13 width: 2ch; 14 line-break: strict; 15 word-break: break-all; 16 border: solid cyan; 17 } 18 </style> 19 20 <p>The test passes if the second line in each box below ends with a hyphen. 21 (Note: the hyphens in each box do no need to be the same size.) 22 23 <div>aa‐a</div> 24 <div>aa–a</div>