Skip to content

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

tianon opened this Issue Apr 28, 2011 · 2 comments

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.

Modernizr member

You could always add your own test

    return Modernizr.testAllProps("user-select");
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
@phistuck phistuck pushed a commit that referenced this issue Aug 31, 2012
PhistucK -moz-user-select:none test. fixes #250 c6c38c8
@patrickkettner patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015
@paulirish paulirish -moz-user-select:none test. fixes #250 fdd1e52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.