[csswg-drafts] Pull Request: [css-counter-styles-3] Add negative sign processing to CJK custom algorithms #12714

svgeesus has just labeled a pull request from sakupi01 for https://github.com/w3c/csswg-drafts as "css-counter-styles-3":

== [css-counter-styles-3] Add negative sign processing to CJK custom algorithms #12714 ==
Fixed missing negative sign processing in CJK custom algorithms.
The Limited Chinese and Extended CJK algorithms defined negative signs but lacked explicit steps to handle negative values.

Closes #12714 

## Change

Added negative value processing steps to both custom algorithms(Limited Chinese& Extended CJK Algorithms).
- Added step to use absolute value when counter is negative
- Added step to prepend negative sign at the end

## WPT

No WPT changes should be required. 
The existing WPT already implement this behavior, as the negative sign characters were defined in the specification tables. This change clarifies the algorithmic steps that were implicitly expected but not explicitly documented.

/cc @nt1m @fantasai @tabatkins 

See https://github.com/w3c/csswg-drafts/pull/12717


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 2 September 2025 14:38:41 UTC