Skip to content

break-words class might need to include word-break: break-word #10004

@cysabi

Description

@cysabi

What version of Tailwind CSS are you using? v3.2.4
What build tool (or framework if it abstracts the build tool) are you using? Gatsby v5.2.0
What version of Node.js are you using? 18
What browser are you using? Firefox
What operating system are you using? Windows

Reproduction URL

https://play.tailwindcss.com/OVE2UF43o2

Describe your issue

I state "might" because this might be a browser bug, or another class that I should add, apologies if this is the case.

  • The flex class is required on the parent for this to occur, if I remove that, both results become identical.
  • Adding flex-col also causes both results to become identical, which is a bit odd to me.

Here is what it looks like on my screen:
image

I found it odd that in the docs the break-words class uses overflow-wrap exclusively, while all of the other classes at least include word-break.
image

Perhaps all of those classes should include both overflow-wrap and word-break.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions