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

[polyfill] - Sometimes there's an empty array and no overlays are shown #8

Open
jasonwilliams opened this issue Nov 19, 2024 · 0 comments

Comments

@jasonwilliams
Copy link
Member

In the examples sometimes the polyfill breaks, this is because the polyfil relies on element timing which sometimes returns entries that are all zereo'd out. The polyfill then doesn't have enough data to carry forward any container timing information to the user, so an empty array may appear.

The polyfill fix would be to not emit any entries if the array is empty. The underlying fix would be in Chromium itself, I've raised this upstream https://issues.chromium.org/issues/379844652

Example
debug-zero-intersect

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

1 participant