- From: Roman Dvornov via GitHub <sysbot+gh@w3.org>
- Date: Fri, 28 Oct 2016 14:40:54 +0000
- To: public-css-archive@w3.org
lahmatiy has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-content] Fix syntaxes according to CSS Values and Units grammar == ## \<'content'\> - First group comma shouldn't be quoted. ``` [ <image> ',' ]* [ normal | none | <content-list> ] [/ <string> ]? -> [ <image> , ]* [ normal | none | <content-list> ] [/ <string> ]? ``` ## \<content-list\> - `<uri>` -> `<url>` (https://github.com/w3c/csswg-drafts/issues/412, https://github.com/mdn/data/pull/9) - No details or references about `document-url`, but looks like it's a keyword and therefore shouldn't be quoted - `leader()` should be surrounded by angle brackets instead of quotes ``` [ <string> | contents | <uri> | <quote> | 'document-url' | <target> | 'leader()' ]+ -> [ <string> | contents | <url> | <quote> | document-url | <target> | <leader()> ]+ ``` ## \<leader()\> - Missed angle brackets in syntax reference - Space before closing parenthesis is missed - No semicolon at the end ``` leader() = leader( dotted | solid | space | <string>); -> <leader()> = leader( dotted | solid | space | <string> ) ``` ## \<target\> - All functions should be surrounded by angle brackets - Square brackets aren't needed ``` [ target-counter() | target-counters() | target-text() ] -> <target-counter()> | <target-counters()> | <target-text()> ``` ## \<target-counter()\> - Missed angle brackets in syntax reference - No space between `[` and `,` (most specs are omit it) ``` target-counter() = target-counter( [ <string> | <url> ] , <custom-ident> [ , <counter-style> ]? ) -> <target-counter()> = target-counter( [ <string> | <url> ] , <custom-ident> [, <counter-style> ]? ) ``` ## \<target-counters()\> - Missed angle brackets in syntax reference - Missed `s` in function's name - No space between `[` and `,` (most specs are omit it) ``` target-counters() = target-counter( [ <string> | <url> ] , <custom-ident> , <string> [ , <counter-style> ]? ) -> <target-counters()> = target-counters( [ <string> | <url> ] , <custom-ident> , <string> [ , <counter-style> ]? ) ``` ## \<target-text()\> - Missed angle brackets in syntax reference - No space between `[` and `,` (most specs are omit it) ``` target-text() = target-text( [ <string> | <url> ] [ , [ content | before | after | first-letter] ]? ) -> <target-text()> = target-text( [ <string> | <url> ] [, [ content | before | after | first-letter] ]? ) ``` ## \<string()\> - Missed angle brackets in syntax reference ``` string() = string( <custom-ident> , [ first | start | last | first-except ]? ) -> <string()> = string( <custom-ident> , [ first | start | last | first-except ]? ) ``` ## \<content()\> - Missed angle brackets in syntax reference - Missed space between `[` and `text` ``` content() = content( [text | before | after | first-letter | marker ]? ) -> <content()> = content( [ text | before | after | first-letter | marker ]? ) ``` Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/663 using your GitHub account
Received on Friday, 28 October 2016 14:41:05 UTC