W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

Re: [csswg-drafts] [css-text] `line-break: anywhere` but normal breaking at spaces (#3561)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Wed, 06 Feb 2019 08:31:21 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-460939782-1549441880-sysbot+gh@w3.org>
Basically yes, and I'm all for making the spec clearer if it isn't now, but to me the way you describe it more confusing than what's in the spec (even though I now understand what you mean):
>     * `line-break: anywhere` changes nothing about breaking before/after spaces.

well, it changes nothings about breaking before or after **preserved spaces** when there are no preserved spaces. Other kinds of spaces (nbsp, narrow non breaking spaces, etc) do get break opportunities. Also, line-break is about breaking **opportunities**, not forced breaks, so it has no effect when you don't need to wrap at all, as is the case when preserved spaces hang (pre-wrap), or when wrapping is disabled entirely (pre, nowrap).

Maybe we can keep the normative prose as it is, and add a note like:

> Note: `anywhere` only allows preserved spaces at the end of the line to be wrapped to the next line when white-space is break-spaces, because in other cases:
> * preserved spaces at the end/start of the line are discarded (`normal`, `pre-line`)
> * wrapping is forbidden altoghether (`nowrap`, `pre`)
> * wrapping spaces is unecessary as they hang (`pre-wrap`).
> When it does have an effect on preserved spaces, with `break-spaces`, it allows breaking before the first of a sequence of preserved spaces, which `break-spaces` does not do on its own.

GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3561#issuecomment-460939782 using your GitHub account
Received on Wednesday, 6 February 2019 08:31:22 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:43 UTC