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: Koji Ishii via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Jul 2018 14:27:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-404849596-1531492067-sysbot+gh@w3.org>
> I'm asking confirmation of my understanding of current spec, indeed.

Thank you, this totally makes sense then. I should have asked that first, apologies.

> I understand from that that wrapping, when enabled, should be one of the first steps. Then, in the white-space processing phase

I understood where your idea comes from. Please have a look at [Appendix A: Text Processing Order of Operations](https://drafts.csswg.org/css-text-3/#order). White space processing is split into part I and part II because we want to process before and after line breaking (the spec above calls it 'text wrapping'.) So the order is opposite, run White space processing part I, then line breaking.

Does the Appendix A clarified your question?

Off topic but I was wondering if the spec defines break opportunities on leading spaces in `pre-wrap`, and the part you quoted answered to my question, thank you so much about it.

-- 
GitHub Notification of comment by kojiishi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2907#issuecomment-404849596 using your GitHub account
Received on Friday, 13 July 2018 14:27:52 UTC

This archive was generated by hypermail 2.3.1 : Friday, 13 July 2018 14:27:55 UTC