:dir() CSS pseudo-class External Link

Baseline 2023 Newly available

Since December 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Matches elements based on their directionality. :dir(ltr) matches elements which are Left-to-Right. :dir(rtl) matches elements which are Right-to-Left.

IE

Edge

Firefox

Chrome

Safari

Safari iOS

Opera Mini

Chrome Android

Android Browser

Samsung Internet

12-104 0.01%
2-16 0.08%
4-90 0.45%
105-119 0.04%
17-48 0.01%
91-119 4.08%
3.1-16.3 0.19%
3.2-16.3 0.88%
4-24 0.06%
5.5-10 0.08%
120-143 4.21%
49-146 1.77%
120-143 22.84%
16.4-26.1 1.14%
16.4-26.1 11.08%
2.1-4.4.4 0%
25-28 0.24%
11 0.36%
144 0%
147 0%
144 0.04%
26.2 0.09%
26.2 0.25%
all 0.04%
144 44.12%
144 0.55%
29 1.63%
148-150 0%
145-147 0.01%
26.3-TP 0%
26.3 0.01%
Globals: 89.93%
Partial support
Prefixed
Behind a browser flags Behind a Flag