Repository navigation
Skip hidden reading regions in user-view reports - #1989
Merged
Merged
Conversation
leaf-agent
commented
Oct 7, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
Closed native <details> disclosures still send their reading regions into geometry. concealed checks only hidden and aria-hidden, while a closed <details> has neither; user-view then calls seenRect(body), which starts with getBoundingClientRect() in the skipped subtree. The existing geometry.skipped(body) reading recognizes closed disclosures without measuring them, so the sampling filter should use it before seenRect.
A passive user-view report measured every registered reading body, including bounded logs inside a closed tab. The geometry walk forced style and clientHeight reads under hidden="until-found". Share the structural concealment rule with reading-region ownership and filter those regions before user-view geometry. The failing hidden-log browser test reproduced in 8 of 18 instrumented runs before the fix and passed in 18 of 18 instrumented and 18 of 18 ordinary runs after it. The tab context test, pre-commit, and runtime tests passed. Fixes #1987.
A closed details element skips its contents without a hidden attribute. Keep its reading region registered, but exclude it from user-view geometry until the disclosure opens. The browser test now protects that transition.
leaf-agent
force-pushed
the
fix/ci-37596375818-hidden-logs
branch
from
October 7, 2026 12:10
9efe990 to
35b3650
Compare
max-sixty
added a commit
that referenced
this pull request
Oct 7, 2026
On Linux CI, widening the visual review journey from phone width to 1366px left the open comment field 700px below the window. The resize scrolled the page, and continuity recorded the user's place from that scroll in the same frame, after the review had rewrapped but before the size observer announced the width shift. The field was off screen by then, so the record held a text landmark instead of the editor, and the shift's restore returned the page to that moved place. macOS Chrome sent no scroll during the resize, so the stale editor record survived there. `scrollersSettled` already refused a record while a region's scroller handover was unannounced. It is now `regionsSettled`, and compares the width the observer last saw as well, so the width shift announced since d8dc7df gets the same protection. Regions hidden from layout are left out of both readings: they show no words to move, a hidden region no longer records a zero width that would announce a shift when it shows, and measuring one in skipped content would lay out what it skips (#1989). Reproduced in Ubuntu 24.04 with fonts-dejavu and Playwright's Chromium headless shell: the journey failed with the field at y=1390 before this change and passes after it. module-authoring.md now says a shift follows a width change too. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User-view reports now skip reading regions inside concealed tabs and closed disclosures before measuring their geometry. A frame trace from the failed hidden-log test showed the optional report entering
seenRectfor each closed-tab log; its geometry walk forcedgetComputedStyleandclientHeightreads underhidden="until-found". The reading-region owner now applies its structural concealment rule and the geometry module's existingskippedreading, which also covers closed native<details>, while keeping those regions registered for when they open.The hidden-log test failed in 8 of 18 repeated instrumented runs before this change and passed in 18 of 18 instrumented and 18 of 18 ordinary runs after it. The closed-disclosure regression and real-tab user-view test passed. All 232 runtime tests and pre-commit passed before the review addition; the PR's current head has passed its focused browser tests and is running the full CI suite.
Fixes #1987