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

Support anchoring on :hover #214

Open
jamesnw opened this issue Jul 16, 2024 · 0 comments
Open

Support anchoring on :hover #214

jamesnw opened this issue Jul 16, 2024 · 0 comments
Labels

Comments

@jamesnw
Copy link
Contributor

jamesnw commented Jul 16, 2024

Currently, the polyfill does not support :hover selector on either the anchor or anchored element.

While there is no specific mention of :hover in the CSS spec, or any tests in the WPT, this does work in the Chromium implementation- https://codepen.io/jamessw/pen/zYVveBw

While making the anchored element conditional on :hover is likely to not be desired as it would cause a layout shift that likely un-hovers the element (and a loop), making the anchor conditional on :hover could be a useful pattern.

@jamesnw jamesnw added enhancement New feature or request needs-prioritization labels Jul 16, 2024
@jamesnw jamesnw mentioned this issue Jul 16, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant