W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2019

Re: [csswg-drafts] [css-lists] How does the list-item counter affect display? (#4168)

From: Domenic Denicola via GitHub <sysbot+gh@w3.org>
Date: Fri, 02 Aug 2019 16:47:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-517770158-1564764425-sysbot+gh@w3.org>
> It renders because the other CSS properties implies a generated marker that is using the list-item counter value. As I outlined in my first reply: if we assume the UA sheet contains ol { list-style-type: decimal; } then example 16 needs no additional rules since it's the default rendering for list-style-type: decimal. The marker box and its contents is generated by the CSS properties in the sections I indicated.

Thank you! That was what I was missing. So there is a normative requirement in the spec, it's just in the list-style-type property section, not in the list-item section.

I know I could have clicked on the 'list-item' definition to see that, but may I suggest adding an explicit note explaining this connection? E.g. in the list-item counter section, something like

> NOTE: The 'list-item' counter is automatically used to assemble the contents of the generated marker when certain 'list-style-type' values apply; see section 3.4.

---

> Well, the one in the css-lists spec is a lot closer to the actual UA sheet we have in Gecko than the "normative" rules in the HTML spec (which lacks counter-* properties!).
>
> (I implemented HTML list numbering using a built-in list-item counter and the ::marker pseudo in Gecko so I know a little bit about how it's implemented there.)

Right. I'm aware that Gecko implemented a UA stylesheet based on no normative spec. I'd hoped that as @dbaron [asked](https://groups.google.com/d/msg/mozilla.dev.platform/5V37Xg997Mg/nSS_7oxaAwAJ), we'd see an update to the normative UA stylesheet at some point---at least in pull request form---but that hasn't materialized yet. As such I hesitate to take such unspecified, not-even-proposed UA stylesheets into account.

-- 
GitHub Notification of comment by domenic
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4168#issuecomment-517770158 using your GitHub account
Received on Friday, 2 August 2019 16:47:08 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:51 UTC