:dir()

Read More at MDN DocsView Spec

Safe to Use

:dir() is not safe to use.

It’s supported by 15% of global browsers.

Browsers

ChromeUnsupported
Chrome does not support this feature.
SafariMar 27, 2023v16.4.0
3%48%
There are no users of Safari running a supported version.
EdgeUnsupported
Edge does not support this feature.
FirefoxSep 20, 2016v49.0.0
3%100%
100% of Firefox users are running a supported version.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Unsupported
Chrome does not support this feature.

No Support

Chrome Android
Unsupported
Chrome Android does not support this feature.

No Support

Edge
Unsupported
Edge does not support this feature.

No Support

Firefox
Sep 20, 2016 v49.0.0
3%100%
100% of Firefox users are running a supported version.
Sep 20, 2016 – Latest
v49.0.0+
3%100%

Full Support

Nov 20, 2012 – Apr 19, 2017
v17.0.0 – v53.0.0
0%2%

Implemented with the vendor prefix: -moz-

Firefox for Android
Sep 20, 2016 v49.0.0
Firefox for Android supports this feature.
Sep 20, 2016 – Latest
v49.0.0+

Full Support

Nov 20, 2012 – Apr 19, 2017
v17.0.0 – v53.0.0

Implemented with the vendor prefix: -moz-

Internet Explorer
Unsupported
Internet Explorer does not support this feature.

No Support

 
Quest Browser
Unsupported
Quest Browser does not support this feature.

No Support

Opera
Unsupported
Opera does not support this feature.

No Support

Opera Android
Unsupported
Opera Android does not support this feature.

No Support

Safari
Mar 27, 2023 v16.4.0
3%48%
There are no users of Safari running a supported version.
Mar 27, 2023 – Latest
v16.4.0+
3%48%

Full Support

Safari on iOS
Mar 27, 2023 v16.4.0
10%58%
There are no users of Safari on iOS running a supported version.
Mar 27, 2023 – Latest
v16.4.0+
10%58%

Full Support

Samsung Internet
Unsupported
Samsung Internet does not support this feature.

No Support

WebView Android
Unsupported
WebView Android does not support this feature.

No Support

See Also

Contribute