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

[csswg-drafts] [css-lists] Should list-item counter reset rule be in a UA stylesheet? (#4244)

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Tue, 27 Aug 2019 16:38:40 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-485916466-1566923918-sysbot+gh@w3.org>
emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-lists] Should list-item counter reset rule be in a UA stylesheet? ==
Or should it be browser-engine magic like the increment?

The TLDR is this. Gecko implements the counter reset as suggested in the appendix:

https://drafts.csswg.org/css-lists/#ua-stylesheet

Which is something like:

```css
/* Set up ol and ul so that they scope the list-item counter */
ol, ul {
  counter-reset: list-item;
}
```

So the issue with doing it at the UA stylesheet level is that pages can override it.

We've received two reports of broken lists, the first of them is fixed, the second of them is from today. So arguably not a lot of breakage, but still worth discussing, I think.

 * https://bugzilla.mozilla.org/show_bug.cgi?id=1576802
 * https://bugzilla.mozilla.org/show_bug.cgi?id=1545746

cc @MatsPalmgren @tabatkins 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4244 using your GitHub account
Received on Tuesday, 27 August 2019 16:38:42 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:13 UTC