w3c / w3c/csswg-drafts

[css-pseudo][css-lists] Allow `counter-*` and `quotes` in ::marker

Open
#5,265 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-lists-4
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

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, counter-set and counter-reset should just apply. Counters don't affect layout so there doesn't seem to be any problem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the CSS Lists definitions linked in the issue, along with the ::marker pseudo-element requirements. Check how counter-increment, counter-set, counter-reset, and quotes are defined for ::marker, then update the specification so their applicability and behavior are explicit and consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.