Repository navigation
test(core): the adopters' edge proofs read the module's clock - #10150
Conversation
A close's edge ride compared what showed as the close came with the first frame the page read after it, an unknown time later. Under load a slow frame let the conceal move past a quarter of the content's height by then, so the proof failed with nothing wrong (21.09 against 21 in WebKit). It now reads where the conceal starts, its first keyframe: what showed, plus at most the container gap that the content after it travels. The edge ride and the single-open group proofs read boxes with getBoundingClientRect, which WebKit evaluates a little ahead of the frame, against clips read from their keyframes. Under load that difference now and then passed the 1.5 px bound. They now read layout offsets plus each glide's keyframes at its current time, as the module's own proofs do.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. The pull request is a draft and its branch is in a fork, so CI runs once a maintainer adds the ci:run label and the pull request is marked ready for review.
The close check now reads where the conceal starts instead of a later frame, and the gap checks read layout offsets plus glide keyframes. No bound is widened. In WebKit, one 200 ms busy frame after the close fails the current TreeList check (22.9 px against < 21), while the new check reads 0.05 px with or without it. The file passes in Chromium and WebKit.
[Automated review]
The Collapsible and TreeList edge proofs in
animatedLayoutAdopters.interaction.browser.spec.tsnow read the animated-layout module's own clock, so they no longer fail under load with nothing wrong. This is a test-only change onmain.Maintainer impact
CI's WebKit leg failed "a TreeList row's revealed group keeps its block-end edge on the rows after it on every frame, and a collapse while it expands conceals from what it shows (FR9)" with 21.09 against a strict
< 21. The module was right: the proof read the close at an unknown time. Every such failure costs a CI re-run and a triage.Intended invariant
The proofs keep checking the same behavior with the same bounds: the revealed content's block-end edge stays on the content after it on every frame, and a close while it opens conceals from what it shows. No bound is widened.
Change
beyond: 4 px for the Collapsible, 0 for the TreeList). That is far tighter than the old quarter of the content's height (21 and 22 px).getBoundingClientRect, which WebKit evaluates a little ahead of the frame, against clips read from their keyframes. They now read layout offsets plus each glide's keyframes at its current time, as the module's own proofs do.Evidence
mainthe close check failed 10 times (22.1 to 28.7 against 21 or 22, the CI failure's shape), the single-open group gap once (1.53 against 2.5) and the edge ride's gap once (1.75 against 1.5).main(vjeux@74112e3b50).main's proof fails 2 of 4 in Chromium (23.15) and 4 of 4 in WebKit (25.98, 28.58). The same frame over this change (vjeux@926ee3e34c) passes 4 of 4 in both.main2, this change 5); that load is past the repository's one-worker default, and no bound was changed. At one worker on the same 2-CPU pin, 3 rounds of 18 tests per arm,mainfailed once (the group gap, 2.44 against 2.5) and this change 0 of 54, with no starvation.Scope
Testing
animatedLayoutAdopters.interaction.browser.spec.ts, 3 repeats: Chromium 18 of 18, WebKit 18 of 18.CI=true pnpm lintand Prettier on the changed file.