dir

Read More at MDN DocsView Spec

Safe to Use

dir is mostly safe to use.

It’s supported by 85% of global browsers.

Browsers

ChromeJan 10, 2023v109.0.0
23%88%
There are no users of Chrome running a supported version.
SafariOct 16, 2014v8.0.0
5%100%
100% of Safari users are running a supported version.
EdgeJan 12, 2023v109.0.0
4%98%
There are no users of Edge running a supported version.
FirefoxOct 22, 2019v70.0.0
2%98%
There are no users of Firefox running a supported version.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Jan 10, 2023 v109.0.0
23%88%
There are no users of Chrome running a supported version.
Jan 10, 2023 – Latest
v109.0.0+
23%88%

Full Support

Feb 4, 2020 – Latest
v80.0.0+
25%96%

This feature is behind the #enable-experimental-web-platform-features preference (needs to be set to Enabled

Chrome Android
Jan 10, 2023 v109.0.0
32%90%
There are no users of Chrome Android running a supported version.
Jan 10, 2023 – Latest
v109.0.0+
32%90%

Full Support

Feb 4, 2020 – Latest
v80.0.0+
36%100%

This feature is behind the #enable-experimental-web-platform-features preference (needs to be set to Enabled

Edge
Jan 12, 2023 v109.0.0
4%98%
There are no users of Edge running a supported version.
Jan 12, 2023 – Latest
v109.0.0+
4%98%

Full Support

Feb 7, 2020 – Latest
v80.0.0+
5%100%

This feature is behind the #enable-experimental-web-platform-features preference (needs to be set to Enabled

Firefox
Oct 22, 2019 v70.0.0
2%98%
There are no users of Firefox running a supported version.
Oct 22, 2019 – Latest
v70.0.0+
2%98%

Full Support

Prior to Firefox 70, the attribute was only accepted on a few elements, as specified in MathML 3.

Firefox for Android
Jul 28, 2020 v79.0.0
Firefox for Android supports this feature.
Jul 28, 2020 – Latest
v79.0.0+

Full Support

Prior to Firefox 70, the attribute was only accepted on a few elements, as specified in MathML 3.

Internet Explorer
Unsupported
Internet Explorer does not support this feature.

No Support

 
Quest Browser
Unsupported
Quest Browser does not support this feature.
Unknown
v9.0.0+

This feature is behind the #enable-experimental-web-platform-features preference (needs to be set to Enabled

Opera
Unsupported
Opera does not support this feature.

No Support

Opera Android
Mar 13, 2023 v74.0.0
Opera Android supports this feature.
Mar 13, 2023 – Latest
v74.0.0+

Full Support

Safari
Oct 16, 2014 v8.0.0
5%100%
100% of Safari users are running a supported version.
Oct 16, 2014 – Latest
v8.0.0+
5%100%

Full Support

Safari on iOS
Sep 17, 2014 v8.0.0
16%100%
There are no users of Safari on iOS running a supported version.
Sep 17, 2014 – Latest
v8.0.0+
16%100%

Full Support

Samsung Internet
May 19, 2023 v21.0.0
2%79%
There are no users of Samsung Internet running a supported version.
May 19, 2023 – Latest
v21.0.0+
2%79%

Full Support

WebView Android
Jan 10, 2023 v109.0.0
WebView Android supports this feature.
Jan 10, 2023 – Latest
v109.0.0+

Full Support

See Also

Contribute