Re: [csswg-drafts] [css-text] Clarify whether soft breaks exist at boundaries of an inline element with `word-break:break-all` (#3897)

> Regarding 2, following your approach would not only keep the name unbroken, but would also forbid a break between the name and adjacent characters, wouldn't it?

I don't think so. I admit I haven't attempted to reason through all cases at this point, but my intuitive sense of what `keep-all` should mean when applied to a run of characters is that it prohibits soft breaks between CJK characters (etc) within that run, but does not influence whether a break can occur before the first character of the run, or after the last.

If there's an inline boundary (e.g. one span ends and another begins), but the `word-break:keep-all` property is present on both sides of the boundary, then that boundary is irrelevant for line-breaking purposes (as per #3886); the run of `keep-all` text extends across it and therefore doesn't break (regardless of the style of the ancestor of the two spans).


-- 
GitHub Notification of comment by jfkthame
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3897#issuecomment-490944890 using your GitHub account

Received on Thursday, 9 May 2019 15:10:40 UTC