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

@upsuper I was just doing some testing in Firefox and Chrome, and have a further question.

`none` is *already* a valid predefined keyword for both 'list-style-type' and 'list-style-image'. Per spec, you have to treat it as being specified for whichever property doesn't otherwise have something specified. That is, in the following:

```html
<!DOCTYPE html>
<ul><li id=foo>foo<li id=bar>bar</ul>
<style>
#foo { list-style: none decimal; }
#bar { list-style: none url("https://www.xanthir.com/pony"); }
</style>
```

#foo should show a decimal, and #bar should show a pony.

This *conflicts with* the suggested treatment of custom list-style-type, which should treat the #bar rule as invalid (as the `none` gets consumed by 'list-style-image', then you can't match the `url()` against the remaining grammar terms).  So you should get decimal/disc if we're being consistent.

Both Firefox and Chrome disagree with this, in different ways - Firefox implements the current spec, showing decimal/pony. Chrome does the *opposite*, showing disc/pony.  (I presume it just consumes greedily, and gives list-style-type priority, rather than the opposite.) Is this behavior change okay?

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

Received on Thursday, 31 May 2018 20:49:51 UTC