: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.

IE

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

Edge

  1. 12 - 86: Not supported
  2. 87: Not supported

Firefox

  1. 2 - 16: Not supported
  2. 17 - 48: Supported
  3. 49 - 83: Supported
  4. 84: Supported
  5. 85 - 86: Supported

Chrome

  1. 4 - 86: Not supported
  2. 87: Not supported
  3. 88 - 90: Not supported

Safari

  1. 3.1 - 13.1: Not supported
  2. 14: Not supported
  3. TP: Not supported

Opera

  1. 9 - 71: Not supported
  2. 72: Not supported

iOS Safari

  1. 3.2 - 13.7: Not supported
  2. 14: Not supported

Opera Mini

  1. all: Not supported

Android Browser

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

Opera Mobile

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

Chrome for Android

  1. 87: Not supported

Firefox for Android

  1. 83: Supported

UC Browser for Android

  1. 12.12: Not supported

Samsung Internet

  1. 4 - 12.0: Not supported
  2. 13.0: Not supported

QQ Browser

  1. 10.4: Not supported

Baidu Browser

  1. 7.12: Not supported

KaiOS Browser

  1. 2.5: Supported
Resources:
JS Bin testcase
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()`
Microsoft Edge feature request on UserVoice