W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

[csswg-drafts] [css-pseudo][css-lists] Allow counter-* in ::marker (#5265)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Thu, 25 Jun 2020 21:22:47 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-645859351-1593120166-sysbot+gh@w3.org>
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo][css-lists] Allow counter-* in ::marker ==
The ::marker pseudo-element can use

::marker {
  content: counter(my-counter);

However, something like `counter-increment: my-counter` won't work since `counter-increment` doesn't apply to ::marker. Gotcha, it has to be set in the list item instead.

So I think [`counter-increment`](https://drafts.csswg.org/css-lists/#propdef-counter-increment), [`counter-set`](https://drafts.csswg.org/css-lists/#propdef-counter-set) and [`counter-reset`](https://drafts.csswg.org/css-lists/#counter-reset) should just apply. Counters don't affect layout so there doesn't seem to be any problem.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5265 using your GitHub account
Received on Thursday, 25 June 2020 21:22:49 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:09 UTC