hyphens-2-ref.html 661 B

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <style type="text/css">
  6. p { margin: 5px 1em; }
  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-<br>“special”<br>
  15. “extra”-<br>special<br>
  16. “extra”-<br>“special”<br>
  17. extra-<br>«special»<br>
  18. «extra»-<br>special<br>
  19. «extra»-<br>«special»<br>
  20. extra-<br>(special)<br>
  21. (extra)-<br>special<br>
  22. (extra)-<br>(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>