Intent to Prototype: CSS custom counter styles

101 views
Skip to first unread message

Xiaocheng Hu

unread,
Nov 3, 2020, 6:31:36 PM11/3/20
to blink-dev

Contact emails

xiaoc...@chromium.org

Explainer


https://developer.mozilla.org/en-US/docs/Web/CSS/@counter-style

Specification

https://drafts.csswg.org/css-counter-styles-3

API spec

Yes

Design docs


https://bit.ly/2Gm1oMC

Summary

This implements the CSS @counter-style rule so that web authors can specify and use custom counter styles in list markers and CSS counters. This improves internationalization of the web.



Blink component

Blink>CSS

Motivation

This is a highly demanded CSS feature, especially by developers with needs in internationalization. The tracking bug (crbug.com/687225) has 40 stars, and already contains multiple detailed use cases of the feature.



Initial public proposal

None

Search tags

csscountercounter-style

TAG review

Not needed as Firefox already shipped it in 2014.

TAG review status

Not applicable

Risks



Interoperability and Compatibility

This should greatly improve interoperability. The spec is already in Candidate Recommendation status and Firefox already shipped it in 2014, while no other browser has shipped it yet.



Gecko: Shipped/Shipping (https://bugzilla.mozilla.org/show_bug.cgi?id=966166) Other than the 'speak-as' descriptor, Firefox has fully shipped the feature.

WebKit: No signal (https://bugs.webkit.org/show_bug.cgi?id=167645)

Web developers: No signals


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes



Is this feature fully tested by web-platform-tests?

Yes

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=687225

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5692693659254784

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages