necolas / normalize.css

A modern alternative to CSS resets
http://necolas.github.io/normalize.css/
MIT License
52.32k stars 10.66k forks source link

Word-break inconsistency between Chrome and Firefox #851

Open Gaboris opened 3 years ago

Gaboris commented 3 years ago

While my friend was working on a project to learn how to build a webpage they've found that Chrome doesn't wrap its links at all while Firefox does.

After taking a look at the matter it seems that Chrome uses a different default value for word-break then Firefox as after adding word-break: break-word; on its links it behaved the same way as Firefox did.

Can anyone confirm this? I can't remember where to find the default styles right no, but it would be nice to follow FF's more reasonable approach.

I also saw that similar questions have come up before and they were put aside because of "unexpected behaviors", but this seems like a special case as it to only happens with the <a> tag so it could be an exception.

My friend also said that they'll do a fork and add a fix for it in case the project would want to add it in as a pull request.

VixieTSQ commented 3 years ago

I'm said friend. Just created the pull request. I tested it with another friend it works with their Chrome.