-
Notifications
You must be signed in to change notification settings - Fork 142
need to define the exact grammar accepted by "syntax" #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you think this should block FPWD? I definitely think we need to have it The CSS value metasyntax is compelling because if we get 100% coverage then On Sun, 31 Jan 2016 at 11:15 Cameron McCormack notifications@github.com
|
No that can be done later.
I'm talking one level up. So how do we describe the value accepted by the
But you might need to add additional restrictions on white space not being allowed inside the angle brackets for example. |
Ah got it, thanks. Yes, that would be confusing :) On Sun, 31 Jan 2016 at 11:42 Cameron McCormack notifications@github.com
|
Another question is whether the <ident> allows escapes. For example:
|
Relatedly, we should define how to parse the |
That's fixed now - it gets parsed as a
Like But this should all be defined by a proper parser, which I'm happy to write soonish. |
Currently the answer is no - I've clarified the "literal ident" part to be specifically a name-start char followed by 0+ name chars. Would prefer to avoid having to do CSS parsing on the syntax string. ^_^ |
@tabatkins Should we add something like what @heycam proposed in #112 (comment)? Or define the allowed values some other way? |
Ping @tabatkins. This came up in Intent to ship: CSS Properties and Values API Level 1 on blink-dev. |
I'll get to work on defining this parser ASAP, since it's :checks notes: 2 years overdue. ^_^ |
This defines how to parse the syntax strings using some algorithms and concepts from css-syntax, while leaning as little as possible on its concept of tokens. * Whitespace behavior is now defined. * Escaping is now allowed for ident syntax strings. Resolves w3c#112.
…g. (#860) * [css-properties-values-api] Define parsing rules for the syntax string. This defines how to parse the syntax strings using some algorithms and concepts from css-syntax, while leaning as little as possible on its concept of tokens. * Whitespace behavior is now defined. * Escaping is now allowed for ident syntax strings. Resolves #112. * fixups changes: * refer directly to algorithms dfns * use and link to some Infra and Syntax concepts * strip whitespace from the syntax string * simplify algorithms a little * fix a reconsume bug in "consume a syntax component"
We need to define the grammar for the string used for describing the syntax of CSS properties. I'm not sure that using CSS value metasyntax is appropriate for this, or at the very least would be a little confusing. :-)
A question that would answer, for example, is whether
" *"
would be accepted, or what exact white space characters are accepted around the bar in"<length> | <number>"
.The text was updated successfully, but these errors were encountered: