Web features explorer

:dir()

Newly available since 2023-12-07
Tags: css Groups: CSS > Selectors

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)