Skip to content
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

Closed
tianon opened this issue Apr 28, 2011 · 2 comments
Closed

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

tianon opened this issue Apr 28, 2011 · 2 comments

Comments

@tianon
Copy link

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.

@ryanseddon
Copy link
Member

You could always add your own test

Modernizr.addTest("userselect",function(){
    return Modernizr.testAllProps("user-select");
});

@tianon
Copy link
Author

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!

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants