Open Bug 1272059 Opened 8 years ago Updated 2 years ago

word-wrap: break-all should not break at spaces

Categories

(Core :: Layout: Text and Fonts, defect)

defect

Tracking

()

Tracking Status
firefox49 --- affected

People

(Reporter: dbaron, Unassigned)

Details

(Keywords: css3)

Attachments

(1 file)

Per the discussion at the CSS WG meeting in the past few minutes, word-wrap: break-all should not break at non-breaking spaces or preserved spaces (I think); it should only make other types of characters behave like CJK.  Or something like that.

The spec is supposed to be clarified next week; hopefully this should be clearer then.
Attached image firefox, safari, chrome
David,
did you mean?

break-word: break-all

because there is no `word-wrap: break-all`
https://www.w3.org/TR/css-text-3/#word-break-property

It seems to do do that. Using 

data:text/html,<p style="word-break:break-all;width:12ch">superlongstring&nbsp;superlongstring&nbsp;superlongstring&nbsp;superlongstring&nbsp;superlongstring&nbsp;superlongstring&nbsp;superlongstring&nbsp;</p>

There might be other cases.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: