W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

Re: [csswg-drafts] [css-text] A single leading white-space should prevent word breaking honoring white-space: pre-wrap

From: Ilya Streltsyn via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Jul 2018 12:51:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-404824455-1531486303-sysbot+gh@w3.org>
I believe so should work `overflow-break: break-word`, but not `word-break: break-all`. Since `work-break` is already applied, the content has soft break opportunities before/after any character (i.e. letters effectively don't make a "word" anymore), so one letter _would not_ cause overflowing, but two letters would, so _the second_ letter should be wrapped to the new line. In my understanding, the word "additional" for the wrap opportunities created by `word-break` doesn't mean "secondary" (and doesn't imply that other wrap opportunities were "primary"), it just means that the content has more wrap opportunities with the `break-all` value than without it.

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2907#issuecomment-404824455 using your GitHub account
Received on Friday, 13 July 2018 12:51:48 UTC

This archive was generated by hypermail 2.3.1 : Friday, 13 July 2018 12:51:51 UTC