Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2022-08-18 | 458 Bytes | |
v3.4.0.tar.gz | 2022-08-18 | 200.7 kB | |
v3.4.0.zip | 2022-08-18 | 219.5 kB | |
Totals: 3 Items | 420.6 kB | 0 |
Aligns polyfill with spec changes.
Initial value of lastReportedSize
changed from 0, 0
to -1, -1
allowing for consistent notifications to be triggered when an element is observed for the first time.
:::typescript
const el = document.createElement('div');
const ro = new ResizeObserver(() => { ... });
ro.observe(el); // Will now notify with size `0, 0`.
https://github.com/w3c/csswg-drafts/issues/3664#issuecomment-1218270926