- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Wed, 26 Sep 2018 23:27:13 +0000
- To: public-css-archive@w3.org
svgeesus has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-variables][css-conditional] allowing a white space only variable value == from https://lists.w3.org/Archives/Public/www-style/2013Aug/0520.html by @heycam > I assume we want: > @supports (var-a: ) { } >to succeed, since "var-a: " is a valid declaration. However, > css-conditional-3 has: > ``` > supports_declaration_condition > : '(' S* declaration ')' > ; > ``` > with "declaration" linking to CSS 2.1, where it is defined as: > ``` > declaration : property S* ':' S* value; > value : [ any | block | ATKEYWORD S* ]+; > any : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING > | DELIM | URI | HASH | UNICODE-RANGE | INCLUDES > | DASHMATCH | ':' | FUNCTION S* [any|unused]* ')' > | '(' S* [any|unused]* ')' | '[' S* [any|unused]* ']' > ] S*; > ``` > This doesn't allow for a property value that consists only of white space. > On the other hand, http://dev.w3.org/csswg/css-syntax/#consume-a-declaration seems to allow a declaration to be parsed that has no tokens at all after the ':'. I guess that's OK as css-variables then defines that no tokens after the ':' is invalid? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3169 using your GitHub account
Received on Wednesday, 26 September 2018 23:27:14 UTC