w3c / w3c/csswg-drafts

[css-counter-styles-3][css-lists-3] Unable to feature detect built-in counter styles

Open
#8,907 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-counter-styles-3 css-lists-3
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

In the CSS2-era, pre-@counter-style, you can feature detect whether a given counter style is supported via CSS.supports("list-style-type", "foo") (or similar CSSOM incantations which work further back).

However, with list-style-type now taking <counter-style>, (almost) any <custom-ident> is a valid value for list-style-type, which means you can no longer feature detect what counter styles have built-in support as far as I can tell.

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

No repository file or test is named. Start with the CSS.supports examples in the issue and the CSS Counter Styles 3 and CSS Lists 3 topics named in the title; done requires an agreed, testable resolution to the feature-detection problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.