line-break-loose-hyphens-001.html (744B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS test: hyphens and line-break:loose</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=match href="reference/line-break-loose-hyphens-001-ref.html"> 8 <meta name=assert content="breaks before U+2010 or U+2013 when line-break is loose are allowed if the preceding character has class ID."> 9 <style> 10 div { 11 width: 2em; 12 line-break: loose; 13 border: solid cyan; 14 } 15 </style> 16 17 <p>The test passes if the second line in each box below starts with a hyphen. 18 (Note: the hyphens in each box do no need to be the same size.) 19 20 <div>文文‐文</div> 21 <div>文文–文</div>