-
Notifications
You must be signed in to change notification settings - Fork 3k
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
CSS feature detection request: :focus-within
pseudo selector
#2270
Comments
I'd be happy to take a stab at this. I guess we want it to look something like https://github.com/Modernizr/Modernizr/blob/e6aafdec12f7cb7dba7a5033a54ac30ada91c927/feature-detects/css/checked.js? We'd have to focus the element to see if it receives the style or not, though. Would that cause any issues? |
hey @OliverJAsh! Edit:
|
Oh, neat! If I was to raise a PR and add a test for this, how would I test the Modernizr test locally? Is there a testing framework I can use? Are the Modernizr tests tested at build time? I couldn't find any docs on this. |
add the file to the feature-detects folder, and then run
the repo uses mocha, however the tests will be run at PR time, so by all means feel free to let travis to the work |
Would it be possible to add a feature detection for the new
:focus-within
pseudo selector?The text was updated successfully, but these errors were encountered: