Re: [csswg-drafts] [css-counter-styles-3] Support automatically localized counters (#7959)

> @r12a You seem to describe [actual @counter-style specifications](https://drafts.csswg.org/css-counter-styles-3/#the-counter-style-rule). And I’m not sure to understand how it is related to this issue.

I may be mistaken, but i think you are asking for the ability to use a generic keyword which will trigger the application of a particular type of counter style, dependent on the context (usually language).  For example, `list-item-type:digits` might apply the `arabic-indic` counter style for text in Arabic, the `bengali` style if the text is labelled as Bengali, the `myanmar` style for Burmese text, and so on. (And presumably default to the `decimal` style if there is no defined digit-based counter style for the language of the text.)

So then i was thinking around how we would define those generic keywords, and how we would map actual counter style definitions to them.

So we might end up with a declaration something like (off the top of my head):
````
generic-counter-style: "digits" { 
    'ar':'arabic-indic', 
    'bn':'bengali', 
    'my':'myanmar', 
    'az-arab':'arabic-indic', 
    'suz':'my-own-sunuwar-style', 
    .... }
````


Is that what you were thinking of?

-- 
GitHub Notification of comment by r12a
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7959#issuecomment-1592610379 using your GitHub account


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

Received on Thursday, 15 June 2023 08:35:53 UTC