I have some text that contains hyphen (-). When the text is long enough to not fit in the container, it is wrapped.
When a hyphenated word is encountered towards the end of the line, all major browsers except Firefox break that hyphenated word on the hyphen.
I want to keep the Firefox behavior across my target browsers (Opera, Safari, Chrome, IE9+(good-to-have))
On Firefox, the behavior is seen even on resizing. Here is the markup:
<h2>Testing awesome hyphens vvvcsvdcsacscsaccccc asvcvadcvdvv-ysys sdcvsdvavv</h2>
h2 { font-size: 2em; margin: 15px 0 10px; }
Here is my jsfiddle. Open it in Firefox v/s other browsers to see different behaviors.(Resize the containers as required)
Thanks for any pointers!