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

[Feature request] Add focus-visible WICG polyfill #454

Closed
toddparker opened this issue Feb 4, 2020 · 2 comments
Closed

[Feature request] Add focus-visible WICG polyfill #454

toddparker opened this issue Feb 4, 2020 · 2 comments

Comments

@toddparker
Copy link

What

The new focus-visible CSS4 spec allows a developer to get rid of the focus outline if you interacted with a mouse or touch to avoid the messiness of the focus outline while maintaining accessibility.

Spec:
https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo

Explainer:
https://github.com/WICG/focus-visible/blob/master/explainer.md

Details

This is semi-official polyfill because it's maintained by WICG. Based on the proposed CSS :focus-visible pseudo-selector, this prototype adds a focus-visible class to the focused element, in situations in which the :focus-visible pseudo-selector should match.

https://github.com/WICG/focus-visible

Additional information

@JakeChampion
Copy link
Owner

Hi @toddparker, polyfill.io does not aim to polyfill CSS features such as this because they are not yet possible to do correctly, you can see this with the focus-visible polyfill as it requires using a specific classname to work.

When CSS Houdini has landed in stable browsers, polyfill.io may start supporting CSS polyfills.

@toddparker
Copy link
Author

Thanks for the quick reply @JakeChampion. Should I close this then?

@JakeChampion JakeChampion transferred this issue from polyfillpolyfill/polyfill-service Feb 4, 2020
Origami ✨ automation moved this from incoming to complete Feb 4, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2020
@robertboulton robertboulton removed this from Done in Origami ✨ Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants