Implement "word-break: break-word"
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
People
(Reporter: dholbert, Assigned: emilio)
References
Details
(Keywords: dev-doc-complete, Whiteboard: [webcompat:p1] Use `overflow-wrap: anywhere`[wptsync upstream][wpt-new-tests])
Attachments
(1 file)
Reporter | ||
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Updated•7 years ago
|
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 15•6 years ago
|
||
Updated•6 years ago
|
Comment 16•6 years ago
|
||
According to the title we have
Implement "word-break: break-word"
This is another issue with
.activity-log-item__description {
font-size: 14px;
word-break: break-word;
}
no other value will satisfy the initial requirement.
Updated•6 years ago
|
Comment 17•6 years ago
|
||
Karl, overflow-wrap: anywhere
, which is in Firefox 65 release, is (afaik) equivalent to word-break: break-word
and should satsify the requirement.
Comment 18•6 years ago
|
||
This is also hitting Gigabyte's support pages, making their tables bleed off-screen without being able to scroll to see all of the detail (https://webcompat.com/issues/25500)
Comment 19•6 years ago
|
||
fantasai, do you know if Google and Webkit will now drop word-break:break-word, or should we now go ahead and treat it as an alias for overflow-wrap:anywhere, for webcompat's sake?
Comment 20•6 years ago
|
||
I think Google will implement once NG layout is finished, they're pushing off most fixes due to that... if you can make a good case to them that their lack of implementation is causing compat problems for Firefox, they might bump the priority, I don't know. I expect WebKit intends to fix as well, no idea about priority though.
Comment 21•6 years ago
|
||
The problem is existing sites which currently rely on word-break: break-word
. Getting sites to update CSS is mostly a losing battle. Perhaps we should rename this bug to "alias word-break: break-word to overflow-wrap: anywhere?
Comment 22•6 years ago
|
||
Given the reluctance to add word-break:break-word
to the spec, I don't think we should be adding such an alias without discussing it with the CSS WG first.
I suppose the real question, though, is whether Blink will be prepared to drop it given that the WG has resolved (presumably with input from the Blink team) to specify a different property (overflow-wrap:anywhere
) for this use case. If it's nevertheless going to remain in Chrome, I suspect we'll have no real choice but to implement (or alias) it anyway.
Comment 23•6 years ago
|
||
We could add it to the Compatibility Standard, if the CSSWG doesn't want it in their specs (if we alias it or not).
AFAIK, Chrome only has usecounters on properties, not values, so I'm not sure https://www.chromestatus.com/metrics/css/timeline/popularity/162 is helpful.
Philip, is there some other way to assess usage of a prop: val pair in Chrome?
Comment 24•6 years ago
|
||
We can estimate rough usage by combining with Edge data:
https://developer.microsoft.com/en-us/microsoft-edge/platform/usage/css/word-break/
The estimate is currently around 11% usage (31% * (4.9% / 13.7%)).
When the estimate gets closer to 0.03%, we can add a counter to measure more accurately. I talked about this with fantasai a couple of months ago at TPAC, it'll be at least a few decades until we can start thinking about it. 7 years or so has past since we wanted to rename 'word-wrap' to 'overflow-wrap', current usage is 55% vs 11%, so maybe "a few" decades is too optimistic.
Comment 25•6 years ago
|
||
I had a look at the compat bugs listed in See Also, and I think it's reasonable enough that we should implement word-break: break-word
as an alias of overflow-wrap: anywhere
. Hoping websites to update their CSS while Chrome is removing it is not going to work.
Comment 26•6 years ago
|
||
I mean, having a look at the compat bugs, I'm convinced that it's enough a compat problem we need to handle one way or the other.
I think CSSWG is trying not to complicate the stuff, which is reasonable desire. But given the compat issues, we don't really have choices. We can mark it legacy / deprecated, though, I guess.
Reporter | ||
Comment 27•6 years ago
|
||
The CSS Working Group just discussed word-break: break-word
, and agreed to the following:
* `RESOLVED: add word-break:break-word to text level 3, with a note`
https://github.com/w3c/csswg-drafts/issues/2390#issuecomment-467685010
Assignee | ||
Updated•6 years ago
|
Comment 28•6 years ago
|
||
Mike, we don't have use counters for all property values, but one can add them manually. Is this still relevant given that it's being added to the spec?
Comment 29•6 years ago
|
||
Probably not, Philip. At this point, I think the best thing for compat would be to just implement it. Thanks!
Updated•6 years ago
|
Assignee | ||
Comment 30•6 years ago
|
||
Comment 31•6 years ago
|
||
Comment 32•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Comment 34•6 years ago
|
||
I just verified that the sites where this still reproduces are fixed (from the see also list).
Reporter | ||
Comment 35•6 years ago
|
||
Adding one more "see-also" for a report on Google Photos (which I verified is fixed in Nightly as well, due to the break-word
support that was added here).
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 37•6 years ago
|
||
I left some comments on the WPT pull request (linked in comment 36), BTW.
The issue there is a wpt-firefox-nightly-stability
test failure, with Firefox getting a blank screenshot of the reference case. I've seen that happen at least one other time (with the test itself not being at fault), so I think we were just unlucky.
Comment 39•6 years ago
|
||
Note to MDN writers:
Release note added to MDN about this: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/67#CSS
When we come to document this, we really only need to update the BCD.
Comment 40•6 years ago
|
||
I've filed a PR to update the compat data for this: https://github.com/mdn/browser-compat-data/pull/4055
I also tweaked https://developer.mozilla.org/en-US/docs/Web/CSS/word-break to improve it a bit.
With that, I think the docs here are done.
Updated•6 years ago
|
Updated•5 years ago
|
Description
•