Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do any browsers support CSS4 language/direction selectors yet? RTL TTB

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 */
}
like image 589
Alex Avatar asked Aug 29 '12 15:08

Alex


1 Answers

: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

like image 92
AlvaroGMJ Avatar answered Oct 07 '22 01:10

AlvaroGMJ