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

add checkVisibility #47

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Conversation

keithamus
Copy link
Member

This adds a checkVisibility polyfill which can be useful to check if an element isn't visible.

This method is quite new, Chrome 105+ and Firefox 106+ support it, and WebKit just merged their implementation 2 days ago (WebKit/WebKit#19210) so it'll likely land in Safari.

We want to use it in primer/view_components#2292 so figured the polyfill would be best placed here.

erinnachen
erinnachen previously approved these changes Oct 20, 2023
@keithamus keithamus merged commit 4389052 into github:main Oct 20, 2023
1 check passed
@keithamus keithamus deleted the add-checkvisibility branch October 20, 2023 14:45
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

Successfully merging this pull request may close these issues.

2 participants