-
Notifications
You must be signed in to change notification settings - Fork 746
Description
See #2270 (comment) and #2390 //cc @Dan503
Right now word-wrap/overflow-wrap: break-word
allows long words to wrap if they are too long to fit in the container, but in an auto-sized container, they will still force the container to grow. This is frustrating to authors. Issue 2390 is about adding a break-word
value to word-break
to address this feature (because WebKit/Blink happen to have implemented such a thing), but then we end up with two extremely similar-looking property-value pairs that do almost exactly the same thing except for this side-effect of how they influence the min-content size.
The number of line-breaking controls in CSS is already crazy confusing; we really don't need to have the similarity between word-wrap: break-word
and word-break: break-word
compounding the situation. Also I suspect that making the already-existing word-wrap: break-word
influence min-content sizes is a reasonable thing to do regardless: it can't do its job of allowing breaking if the container is forced to fit the thing that it's trying to break anyway.
So the proposal is to make the existing word-wrap/overflow-wrap
property affect intrinsic sizing and, hopefully, also close #2390 as no change.