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

@domenic 

> Right. I'm aware that Gecko implemented a UA stylesheet based on no normative spec.

Fwiw, the CSSWG resolutions on redefining HTML list numbering to integrate with CSS counters predate the HTML spec by quite a few years: https://www.w3.org/TR/2002/WD-css3-lists-20021107/#declaring Gecko's implementation is fulfilling a longstanding intention, and they _have_ been coordinating with the CSSWG to work out missing details on how exactly to make it work.

> I'd hoped that as @dbaron asked, 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.

You don't need to. As @MatsPalmgren points out, `list-style-type` is normatively defined to use the `list-item` marker, so all that needs to be taken into account to make the quoted example work is the definitions in the css-lists-3 spec together with the `display: list-item` and `list-style-type: decimal` declaration already in the HTML spec.

That said, yes, the HTML spec should be updated to hook into css-lists-3 for list numbering, as it currently doesn't define the rendering of list numbers for CSS UAs at all. (I'm guessing this is what the red-boxed note at the end of [14.3.8 Lists](https://html.spec.whatwg.org/multipage/rendering.html#lists) is about?) Thus, every browser's HTML `OL` implementation is based on no normative spec. Tab and I haven't made specific suggestions to HTML yet, because we needed to get css-lists-3 into a more solid state: besides needing to rewrite the list styling section, which we did in April, the counters section had enough CSS2.1 sync errors until last week that it wasn't legitimately referenceable. (As of this weekend, I think, it's cleaned up enough that we can republish a referenceable draft and take on edits to HTML as the next task on this topic.)

> 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

We've done one better, and revised the section overall to be a little clearer. :) There's now a cross-reference to the `list-style-type` behavior up front. You can see the results at https://drafts.csswg.org/css-lists-3/#list-item-counter Let us know if that works for you.

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

Received on Monday, 5 August 2019 06:56:28 UTC