I know that the working draft from the W3C is not finalised yet (at the time of writing this) but a lot of non standardised CSS have often been implemented by vendors ahead of formalization.
I'm finding it hard to find resources on this, and wondered if anyone knew which (if any browsers) support language or text-direction based selectors yet?
For example:
p:dir(rtl){
/* some rules for right-to-left languages */
}
p:lang(somelanguage){
/* some rules for specific language */
}
:lang() has good support (and has had it since some time back now) https://developer.mozilla.org/en-US/docs/CSS/:lang
:dir() (first time I see it) seems to be only supported in Gecko https://developer.mozilla.org/en-US/docs/CSS/:dir
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With