W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

Re: [csswg-drafts] [cssom][css-variables] Whitespaces in serialization of custom property value and value with variable reference

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Tue, 23 May 2017 08:10:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-303322937-1495527014-sysbot+gh@w3.org>
> As of whether continuous whitespaces should be collapsed into one, I don't have strong opinion on. It seems to me collapsing them would add an unnecessary pass for us, I tend to not do that. But I'm open to collapsing behavior or making it unspecified explicitly.

The Syntax spec elides information of how many and what types of whitespace characters were parsed; it just emits a whitespace token to represent a run of whitespace. Like with comments, you're allowed to remember exactly what the whitespace was, but you're not required to; you can serialize whitespace tokens out as a single space if you want.

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/881#issuecomment-303322937 using your GitHub account
Received on Tuesday, 23 May 2017 08:10:22 UTC

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