Open ebraminio opened 1 month ago
This seems to be related to https://github.com/w3c/csswg-drafts/issues/7959
I have some reservations about relying on the browser to automatically substitute the desired counter style. These are just thoughts off the top of my head, so feel free to disagree.
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.