Problem/Motivation
When a new comment arrives during polling, it is inserted into its parent's group, which may be far above the viewport, with no height capture and no overflow-anchor management on the thread body. Arrivals are never announced either; refresh() calls announce() only on failure. Lower priority since polling is off by default, but this is the feature's entire purpose.
Steps to reproduce
- Enable polling, keep a thread open, and have a new comment arrive.
- Observe the arrival is inserted without announcement and can shift the layout.
Proposed resolution
- Announce new arrivals via the live region.
- Manage overflow-anchor on the thread body and capture heights to avoid scroll drift on insertion.
Remaining tasks
- Verify a live arrival is announced and does not shift the reader's scroll position.
User interface changes
New arrivals are announced and do not shift scroll.
API changes
None anticipated.
Data model changes
None anticipated.
AI-Generated: Yes (Used Opus 5 and DeepSeek Flash to review and discover these issues)
Comments
Comment #3
freelockInitial fix in Alpha3. Followup issue: #3623881: Scroll compensation oscillates after expanding or updating a thread.