Re: [csswg-drafts] [css-lists] canonical property order of list-style.

Hi Emilio,

> `list-style-type` accepts an arbitrary identifier via `<counter-style>`, and thus should be last, since it can overlap with values of `list-style-position`.

It is a bit confusing. A counter-style name is a custom identifier, and custom identifiers are defined like "if it can mess with other identifiers, it is invalid". There is the following at:

https://www.w3.org/TR/css3-values/#identifier-value

> Note: When designing grammars with <custom-ident>, the <custom-ident> should always be "positionally unambiguous", so that it’s impossible to conflict with any keyword values in the property.

Then, at:

https://www.w3.org/TR/css-counter-styles-3/#at-ruledef-counter-style

you have this:

> Note: Note that `<custom-ident>` also automatically excludes the CSS-wide keywords. In addition, some names, like `inside`, are valid as counter style names, but conflict with the existing values of properties like `list-style`, and so won’t be usable there.

So `inside` is a valid counter-style name, but is "not usable" in the shorthand. That sounds a lot like an invalid `<custom-ident>`. The "Counter Styles" specification should be changed to declare `inside` and `outside` invalid counter-style names.

-- 
GitHub Notification of comment by carlosame
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2624#issuecomment-387710755 using your GitHub account

Received on Wednesday, 9 May 2018 11:38:42 UTC