Custom CSS 3.0 Property Selection

I am using CSS 3.0 and it complains that the "user-select" property does not exist. Does anyone know what is suitable for replacement or replacement?

+7
source share
1 answer

It seems not. user-select was defined as part of the CSS3 User Interface , which was later replaced by the CSS3 Basic User Interface Module . However, the last document does not contain the user-select specification. After a search recently, I was unable to find a discussion on why it could be removed from the specification.

Please note that user-select does not work in any browsers (what I know), although versions with a vendor prefix will work in Firefox, Chrome, Safari, Opera and IE 10 +:

 #something { -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; } 

If you use only these vendor prefixes, your CSS should be checked if you install the Vendor extensions for Warning. For IE and Opera, you can use the unselectable attribute for elements. Oddly enough, this will invalidate the HTML code.

See my answer on disabling text selection does not work in IE using jquery .

+19
source

All Articles