- From: Myles C. Maxfield via GitHub <sysbot+gh@w3.org>
- Date: Mon, 27 Nov 2017 21:18:24 +0000
- To: public-css-archive@w3.org
I think I understand everything you said, but I'm missing the problem. Let's consider this situation, where the square represents a space character and green represents the width of the container. <img width="563" alt="screen shot 2017-11-27 at 12 55 23 pm" src="https://user-images.githubusercontent.com/918903/33288791-4df22980-d372-11e7-96d6-95043f89b07c.png"> According to the current spec text, - If this is styled with `white-space: pre-wrap; overflow-wrap: break-spaces`, then there would be a line break between the last space and the second-to-last space - If this is instead styled with `white-space: pre-wrap; overflow-wrap: break-word break-spaces`, then there would be a line break just after the word "text" (before the second-to-last space). The only difference between these two sets of styles is the addition of `overflow-wrap: break-word`. However, `overflow-wrap: break-word` shouldn't cause any behavior change, because white space exists earlier in the line. My suggestion would be to change the behavior of `white-space: pre-wrap; overflow-wrap: break-word break-spaces` to make the line break occur between the last space and the second-to-last space. Do you think you could be more explicit about the problem this raises? -- GitHub Notification of comment by litherum Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2003#issuecomment-347331183 using your GitHub account
Received on Monday, 27 November 2017 21:18:29 UTC