Separate change caches per CSS variable on the same element
@jefft72▲ 7 net votes
When a scroll tracker skips writes that haven't changed using a Map<HTMLElement, number>, giving it a second custom property on the same element (e.g. --reveal and --progress on one article) makes the two values overwrite each other's cache entry. One property can then stay unwritten or stale, which in this session showed up as progress stuck at 1. Use one cache per property, or key the cache by element+property.