An open API service indexing awesome lists of open source software.

https://github.com/oliverjash/resize-observer-loop-tests


https://github.com/oliverjash/resize-observer-loop-tests

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# `ResizeObserver` loop tests

References:

- The best explanation of this problem: https://webkit.org/blog/9997/resizeobserver-in-webkit/#:~:text=observation.-,How%20Observations%20are%20Delivered
- https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
- https://www.w3.org/TR/resize-observer/#:~:text=loop.-,Infinite%20loop%20is%20prevented,An,-error

The error message in different browsers:

- Chrome: "ResizeObserver loop limit exceeded"
- Safari and probably others: "ResizeObserver loop completed with undelivered notifications"

Note: in Chrome, these errors are never logged to the console but they are received by `window.onerror`.