css-lists/parsing/list-style-type-invalid.html refuses symbols(fixed url(...)), which css-counter-styles-3 allows

Open Beginner friendly
#65,826 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
html, javascript

Research direction

Open css/css-lists/parsing/list-style-type-invalid.html and read the test_invalid_value subtests for list-style-type. Remove the assertion that rejects symbols(fixed url("https://example.com")), or move it into a separate tentative test as the issue describes. Confirm the other subtests remain unchanged.

Written by the indexing model from the issue text.

Description

css/css-lists/parsing/list-style-type-invalid.html asserts that list-style-type: symbols(fixed url("https://example.com")) does not set the property. css-counter-styles-3 defines symbols() as symbols( <symbols-type>? [ <string> | <image> ]+ ), and a fixed system needs one symbol, so the value is valid by the grammar.

The draft marks <image> in <symbol> at-risk, with a note that no implementation plans to support it, and Chromium, Firefox and WebKit all refuse the value. While the grammar keeps <image>, an engine that implements it fails this subtest, and the test asserts the outcome of an at-risk decision the WG has not taken.

Steps to reproduce

Reproducer: https://gist.github.com/YevheniiKotyrlo/0c270aecb76301971d0f5eeecefb1632

git clone https://gist.github.com/0c270aecb76301971d0f5eeecefb1632.git wpt-list-style-type-image-symbol
cd wpt-list-style-type-image-symbol
sh ./run.sh

run.sh installs Playwright and runs repro.mjs, which reads the symbols() grammar and the at-risk note from the css-counter-styles-3 Editor's Draft and list-style-type-invalid.html from wpt master, prints the subtest that refuses an <image> symbol, and prints what Chromium, Firefox and WebKit do with the value. It exits 1 while the grammar takes <image> and the test refuses it.

Expected

test_invalid_value('list-style-type', 'symbols(fixed url("https://example.com"))') leaves list-style-type-invalid.html, or moves to a test of its own marked .tentative until the at-risk decision is made. The other subtests stay as they are.

Actual

On Windows 11 with Node 26.12.1 and Playwright 1.65.0:

css-counter-styles-3 at revision 6f177f4c13fbc3153474b66e88c25cf58ce5cfdd; list-style-type-invalid.html from web-platform-tests/wpt@6f48032a9675c1d4cd53124d9fb36ccd8d6bd354 (master)
  symbols() = symbols( <symbols-type>? [ <string> | <image> ]+ )
  "If the system is fixed, the symbols descriptor must contain at least one counter symbol, otherwise the rule does not define a counter style (but is still a valid rule)."
  "Note: The <image> syntax in <symbol> is currently at-risk. No implementations have plans to implement it currently, and it complicates some usages of counter() in ways that haven’t been fully handled."
  list-style-type-invalid.html: test_invalid_value('list-style-type', 'symbols(fixed url("https://example.com"))')
playwright 1.65.0
chromium 158.0.8127.18:
  symbols(fixed url("https://example.com")) -> invalid
  symbols(fixed "a") -> specified symbols(fixed "a")
  symbols(cyclic url("https://example.com") "a") -> invalid
[…]

SUMMARY: css-counter-styles-3's symbols() takes an <image> symbol, and list-style-type-invalid.html refuses symbols(fixed url("https://example.com"))

Firefox 159.0 and WebKit 27.2 print the same as Chromium.

Dominant language
HTML
Stars
6.3k
Forks
4.1k
Avg merge
17h 20m
Merged PRs (30d)
841

Getting set up

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.

More from web-platform-tests/wpt

All issues in web-platform-tests/wpt

Similar issues

More Testing & QA issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.