hyphens-2.html 637 B

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <style type="text/css">
  6. p { margin: 5px 1em; width: 0px; }
  7. </style>
  8. </head>
  9. <body>
  10. <!-- bug 827779:
  11. Allow break after hyphen even when there is adjacent closing punctuation
  12. before the hyphen, or opening punctuation after it. -->
  13. <p>
  14. extra-“special”<br>
  15. “extra”-special<br>
  16. “extra”-“special”<br>
  17. extra-«special»<br>
  18. «extra»-special<br>
  19. «extra»-«special»<br>
  20. extra-(special)<br>
  21. (extra)-special<br>
  22. (extra)-(special)
  23. </p>
  24. <!-- but not in variants such as these: -->
  25. <p>
  26. (extra-)special<br>
  27. extra(-special)
  28. </p>
  29. </body>
  30. </html>