:dir()
Newly available since 2023-12-07
The :dir()
CSS functional pseudo-class matches elements by text direction, either right to left (rtl
) or left to right (ltr
).
To learn more, see
:dir() at MDN.
Compatibility (view on caniuse.com)
- Chrome 120 Released on 2023-12-05
- Chrome Android 120 Released on 2023-12-05
- Edge 120 Released on 2023-12-07
- Firefox 49 Released on 2016-09-20
- Firefox for Android 49 Released on 2016-09-20
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27