Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make some local counter styles the default for some of the languages #65

Open
ebraminio opened this issue Jul 21, 2024 · 0 comments
Open

Comments

@ebraminio
Copy link

ebraminio commented Jul 21, 2024

I think it could be great if user-agent stylesheet could make some of the defined counter styles as the default for some of the languages (or maybe under some pseudo class / meta tag?) basically integrating this source file from MediaWiki/Wikipedia to the user-agent stylesheet.

This makes ordered list numbers aligned with JavaScript's (123).toLocaleString('fa') that returns ۱۲۳,

Testcase:
data:text/html,<html dir=rtl lang=fa><ol><li>1<li>2<li>3</ol>

data:text/html,<html dir=rtl lang=fa><ol><li>1<li>2<li>3</ol><style>ol:lang(fa) li { list-style-type: persian; }</style>

Expected:
Both to be same

Actual:
User-agent stylesheet doesn't contain that language specific styles.

Maybe like the way charset or dark mode is supported <meta name="color-scheme" content="light dark"> to be exposed only under some special meta tag, and maybe not.

@ebraminio ebraminio changed the title Make some local counter styles the default for some of the language in user-agent stylesheet Make some local counter styles the default for some of the languages Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant