Page MenuHomePhabricator

"Invalid or unsupported value" for CSS counter-style in Bengali
Closed, ResolvedPublicFeature

Description

Steps to replicate the issue (include links if applicable):

What happens?: I was trying to implement the Bengali number counting using a css property counter(count, bengali) but the page is not saving.

What should have happened instead?:

The page should save and it should display ১. ২. ৩.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Screenshot_2024-08-05-19-41-06-51.jpg (1×720 px, 260 KB)

Details

Related Changes in Gerrit:

Event Timeline

This comment was removed by R1F4T.

What page did this occur on?

On Every css page

Please provide a specific page.

Izno changed the subtype of this task from "Bug Report" to "Feature Request".Aug 5 2024, 4:25 PM
Izno moved this task from Backlog to External (css-sanitizer) on the TemplateStyles board.
Izno moved this task from Unsorted to W3C Working Draft (or earlier) on the css-sanitizer board.
Aklapper renamed this task from Facing problem with custom counter in css like counter(count, Bengali) to "Invalid or unsupported value" for custom CSS "counter" in Bengali.Aug 5 2024, 4:52 PM
Izno renamed this task from "Invalid or unsupported value" for custom CSS "counter" in Bengali to "Invalid or unsupported value" for custom CSS "counter()" in Bengali.Aug 5 2024, 8:57 PM
Aklapper renamed this task from "Invalid or unsupported value" for custom CSS "counter()" in Bengali to "Invalid or unsupported value" for CSS counter-style in Bengali.May 1 2025, 9:14 AM

This seems to be about https://bn.m.wikipedia.org/w/index.php?title=টেমপ্লেট:স্থিত_সারির_সংখ্যা/খেলাঘর/শৈলী.css#L-58 being content: counter(rowNumber); and changing to content: counter(rowNumber, bengali); throws an error.
(Please always provide clear steps to reproduce instead of leaving that empty.)

Per https://developer.mozilla.org/en-US/docs/Web/CSS/counter#counter-style and https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type#bengali this should indeed be supported.

Change #1149532 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[css-sanitizer@master] Add Counter Styles 3 and Lists 3

https://gerrit.wikimedia.org/r/1149532

Change #1149532 merged by jenkins-bot:

[css-sanitizer@master] Add Counter Styles 3 and Lists 3

https://gerrit.wikimedia.org/r/1149532