-
Notifications
You must be signed in to change notification settings - Fork 756
[css-content] Fix syntaxes according to CSS Values and Units grammar #1381
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
Conversation
css-content/Overview.bs
Outdated
|
|
||
| <pre class="prod"> | ||
| <dfn><<leader-type>></dfn> = leader( dotted | solid | space | <<string>>); | ||
| <dfn><<leader()>></dfn> = leader( <<leader-type>> ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be defined as just <dfn>leader()</dfn>. (The grammar non-terminal automagically works when the function is defined normally.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's confusing a bit, but looks like I was wrong. Fixed.
|
|
||
| <pre class="prod"> | ||
| <dfn><<target>></dfn> = [ ''target-counter()'' | ''target-counters()'' | ''target-text()'' ] | ||
| <dfn><<target>></dfn> = <<target-counter()>> | <<target-counters()>> | <<target-text()>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same deal as previous function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
target is not a function. I missed something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, sorry, was overcorrecting.
css-content/Overview.bs
Outdated
|
|
||
| <pre class="prod"> | ||
| <dfn>target-counter()</dfn> = target-counter( [ <<string>> | <<url>> ] , <<custom-ident>> [ , <<counter-style>> ]? ) | ||
| <dfn><<target-counter()>></dfn> = target-counter( [ <<string>> | <<url>> ] , <<custom-ident>> , <<counter-style>>? ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous function.
css-content/Overview.bs
Outdated
|
|
||
| <pre class="prod"> | ||
| <dfn>target-counters()</dfn> = target-counter( [ <<string>> | <<url>> ] , <<custom-ident>> , <<string>> [ , <<counter-style>> ]? ) | ||
| <dfn><<target-counters()>></dfn> = target-counters( [ <<string>> | <<url>> ] , <<custom-ident>> , <<string>> , <<counter-style>>? ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous function.
css-content/Overview.bs
Outdated
|
|
||
| <pre class="prod"> | ||
| <dfn id="target-text-function">target-text()</dfn> = target-text( [ <<string>> | <<url>> ] [ , [ content | before | after | first-letter] ]? ) | ||
| <dfn id="target-text-function"><<target-text()>></dfn> = target-text( [ <<string>> | <<url>> ] , [ content | before | after | first-letter ]? ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
css-content/Overview.bs
Outdated
|
|
||
| <pre class="prod"> | ||
| <dfn>string()</dfn> = string( <<custom-ident>> , [ first | start | last | first-except ]? ) | ||
| <dfn><<string()>></dfn> = string( <<custom-ident>> , [ first | start | last | first-except ]? ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
css-content/Overview.bs
Outdated
|
|
||
| <pre class="prod"> | ||
| <dfn>content()</dfn> = content( [text | before | after | first-letter | marker ]? ) | ||
| <dfn><<content()>></dfn> = content( [ text | before | after | first-letter | marker ] ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same.
Also, don't remove the ?, that's a significant and important bit. (It allows the "If no value is specified" bit a few lines later down.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for clarification, I missed this. Fixed.
Fix and simplify syntaxes, see #663 for details