Web platform 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).

Learning resources on MDN

Browser support (view on caniuse.com)

Usage (according to Chrome Platform Status)

~2.986% of page loads. More data at chromestatus.