New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

would be cool to detect user-select CSS3 property #250

tianon opened this Issue Apr 28, 2011 · 2 comments


None yet
3 participants

tianon commented Apr 28, 2011

The user-select CSS property is great for disabling text selection on elements. Currently, it is mostly implemented by renderer-specific tags like '-webkit-user-select', '-moz-user-select', and '-khtml-user-select', with 'user-select' itself being ignored. It'd be nice to have support for detecting this in Modernizr (at least, at some point -- possibly when the majority of browsers finally recognize 'user-select' directly, although I'm not familiar enough with general Modernizr policy on the issue of browser-specific CSS).

Right now, I just use draganddrop for this purpose, because I figure that's a pretty good prereq for "proper" draganddrop, so it's good enough for me.


This comment has been minimized.


ryanseddon commented Apr 29, 2011

You could always add your own test

    return Modernizr.testAllProps("user-select");

This comment has been minimized.

tianon commented Apr 29, 2011

Well that's pretty awesome. I didn't even realize Modernizr supported that. Guess I should look into the documentation further, thanks!

@paulirish paulirish closed this in 9345ef5 May 21, 2011

patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment