Re: [css-houdini-drafts] need to define the exact grammar accepted by "syntax"

> Relatedly, we should define how to parse the name member of the 
PropertyDescriptor.

That's fixed now - it gets parsed as a `<custom-property-name>`. 
Parsing trims leading/trailing whitespace (per Syntax), so that would 
be registering the `--a` property. If you want a newline in the name, 
you have to CSS-escape it.

> Another question is whether whitespace is allowed before the "+".

Like `foo +`? I think that shouldn't be allowed; it's hard to read. 
The multiplier should immediately follow the term it's modifying.

But this should all be defined by a proper parser, which I'm happy to 
write soonish.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at 
https://github.com/w3c/css-houdini-drafts/issues/112#issuecomment-246874717
 using your GitHub account

Received on Wednesday, 14 September 2016 01:02:33 UTC