:dir() CSS pseudo-class

- WD

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

Chrome

  1. 4 - 90: Not supported
  2. 91 - 107: Disabled by default
  3. 108: Disabled by default
  4. 109 - 111: Disabled by default

Edge

  1. 12 - 104: Not supported
  2. 105 - 106: Disabled by default
  3. 107: Disabled by default

Safari

  1. 3.1 - 16.0: Not supported
  2. 16.1: Not supported
  3. 16.2: Not supported
  4. TP: Supported

Firefox

  1. 2 - 16: Not supported
  2. 17 - 48: Supported
  3. 49 - 106: Supported
  4. 107: Supported
  5. 108 - 109: Supported

Opera

  1. 9 - 90: Not supported
  2. 91: Disabled by default
  3. 92: Disabled by default

IE

  1. 5.5 - 10: Not supported
  2. 11: Not supported

Chrome for Android

  1. 107: Not supported

Safari on iOS

  1. 3.2 - 16.0: Not supported
  2. 16.1: Not supported

Samsung Internet

  1. 4 - 18.0: Not supported
  2. 19.0: Not supported

Opera Mini

  1. all: Not supported

Opera Mobile

  1. 10 - 12.1: Not supported
  2. 72: Not supported

UC Browser for Android

  1. 13.4: Not supported

Android Browser

  1. 2.1 - 4.4.4: Not supported
  2. 107: Not supported

Firefox for Android

  1. 106: Supported

QQ Browser

  1. 13.1: Not supported

Baidu Browser

  1. 13.18: Not supported

KaiOS Browser

  1. 2.5: Supported
Resources:
Chrome issue #576815: CSS4 pseudo-class :dir()
WebKit bug #64861: Need support for :dir() pseudo-class
MDN Web Docs - CSS :dir
HTML specification for `:dir()`
JS Bin testcase