::selection
Read More at MDN DocsView SpecSafe to Use
::selection
is not safe to use.
It’s supported by 78% of global browsers.
Browsers
ChromeDec 11, 2008v1.0.0
26%╱100%
100% of Chrome users are running a supported version.
SafariOct 24, 2003v1.1.05%╱100%
100% of Safari users are running a supported version.
EdgeJul 28, 2015v12.0.05%╱100%
100% of Edge users are running a supported version.
FirefoxSep 5, 2018v62.0.02%╱98%
There are no users of Firefox running a supported version.
Version Breakdown
Support
Adoption
Chrome
Dec 11, 2008 v1.0.0
26%╱100%
100% of Chrome users are running a supported version.
Dec 11, 2008 – Latest
v1.0.0+
26%╱100%
Full Support
Chrome Android
Jun 27, 2012 v18.0.0
36%╱100%
100% of Chrome Android users are running a supported version.
Jun 27, 2012 – Latest
v18.0.0+
36%╱100%
Full Support
Edge
Jul 28, 2015 v12.0.0
5%╱100%
100% of Edge users are running a supported version.
Jul 28, 2015 – Latest
v12.0.0+
5%╱100%
Full Support
Firefox
Sep 5, 2018 v62.0.0
2%╱98%
There are no users of Firefox running a supported version.
Sep 5, 2018 – Latest
v62.0.0+
2%╱98%
Full Support
Nov 9, 2004 – Latest
v1.0.0+
3%╱100%
Implemented with the vendor prefix: -moz-
Firefox for Android
Sep 5, 2018 v62.0.0
Firefox for Android supports this feature.
Sep 5, 2018 – Latest
v62.0.0+
Full Support
Mar 29, 2011 – Latest
v4.0.0+
Implemented with the vendor prefix: -moz-
Internet Explorer
Mar 14, 2011 v9.0.0
0%╱94%
There are no users of Internet Explorer running a supported version.
Mar 14, 2011 – Latest
v9.0.0+
0%╱94%
Full Support
Unknown v5.0.0
Quest Browser supports this feature.
Unknown
v5.0.0+
Full Support
Opera
Jun 12, 2008 v9.5.0
1%╱100%
100% of Opera users are running a supported version.
Jun 12, 2008 – Latest
v9.5.0+
1%╱100%
Full Support
Opera Android
May 21, 2013 v14.0.0
Opera Android supports this feature.
May 21, 2013 – Latest
v14.0.0+
Full Support
Safari
Oct 24, 2003 v1.1.0
5%╱100%
100% of Safari users are running a supported version.
Oct 24, 2003 – Latest
v1.1.0+
5%╱100%
Full Support
Safari on iOS
Unsupported
Safari on iOS does not support this feature.
No Support
Samsung Internet
Apr 27, 2013 v1.0.0
2%╱100%
100% of Samsung Internet users are running a supported version.
Apr 27, 2013 – Latest
v1.0.0+
2%╱100%
Full Support
WebView Android
Sep 3, 2014 v37.0.0
WebView Android supports this feature.
Sep 3, 2014 – Latest
v37.0.0+
Full Support