Repository navigation
spec(layers): layers follow anchors through CSS only and never inherit a press transform - #11024
Conversation
|
/approve-spec 6a4a4f4 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 158590b |
|
/approve-spec f05367e |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Requesting changes: both rules are owner-approved at this revision, but four record corrections are needed before they land.
spec:AST-059DEC-9 bans any scroll, resize, observer or frame handler that writes a layer'sinsetfrom a measured rectangle and says the runtime's kept reads write no coordinates, yet the software-keyboard lift that FR9 and DEC-6 require does exactly that (useLayerKeyboardClearance.ts:263-268), so name it as a fourth exception in DEC-9 and INV21 and exclude it from INV21's source check.architecture:layer-runtimestill presents INV22 as shipped (its scope line excepts only INV14, INV15 and INV17, and the gap line names only missing tests), but DropdownMenu anchors its menu to the Button it scales to 0.98 on press (DropdownMenu.tsx:1736,Button.tsx:152-176), so list INV22 as unmet and state that mismatch as its gap.- The
AGENTS.mdbullet "position with CSS anchor positioning only" contradicts fixed mode (INV3) and the exceptions INV21 lists; scope it to anchored layers. - The new gap lines sit above the list's lead-in, which now renders inside the INV22 bullet, and the paragraph below assigns them to
spec:AST-003, which covers neither invariant; restore the lead-in and say AST-003 does not cover INV21 or INV22.
Smaller points: the two gap lines state build status rather than an observable mismatch, and the two new verification rows leave the failure-signal column empty.
[Automated review]
… scope the agents line
|
/approve-spec f93909d |
There was a problem hiding this comment.
Approved pending CI: the required test and docsite checks are still running on this head.
Both rules are owner-approved at this revision, and the earlier record corrections are in: the keyboard lift is a named exception, INV22 is recorded as unmet with DropdownMenu's mismatch as its gap, the agents line is scoped to anchored layers, and the gap list reads correctly again.
Optional follow-ups:
- Selector anchors its popover to its own press-scaled ghost and secondary trigger, the same as MultiSelector, so it belongs in the INV22 gap line; the INV22 verification row could also name MultiSelector and ComplexSelector.
- The description still lists three exceptions and INV21 and INV22 gaps for checks that are not built; it no longer matches the records.
- Neither record's review-applicability block lists DEC-9, DEC-10, INV21 or INV22, so layering reviews are not routed to the new rules.
[Automated review]
| - DropdownMenu anchors its menu to the Button it scales on press, so a press | ||
| while the menu is open moves the menu and narrows it (INV22). Popover with a | ||
| caller-supplied anchor, MultiSelector and ComplexSelector anchor to their own | ||
| pressed control the same way. |
There was a problem hiding this comment.
Non-blocking: Selector has the same mismatch as MultiSelector. Its ghost and secondary trigger scales to 0.98 on press (Selector.tsx:265-321), that trigger is the element its popover anchors to (Selector.tsx:2286-2288), and the list's minimum is anchor-size(width) (Selector.tsx:437). Suggest naming Selector here, and naming MultiSelector and ComplexSelector in the INV22 verification row.
Records only. Two owner decisions, 2026-11-10 (Cindy), on layer positioning:
spec:AST-059DEC-9 andarchitecture:layer-runtimeINV21: an anchored layer follows its anchor only through CSS anchor positioning, and no script moves a layer to keep it on its anchor. Three uses are outside the rule because none follows an anchor: fixed mode's one-time coordinates, a one-time entrance or exit transform, and the reduced fallback for browsers without anchor positioning (spec:AST-003FR22).spec:AST-059DEC-10 andarchitecture:layer-runtimeINV22: a layer never inherits its trigger's press transform. Press feedback scales only the trigger's own visual, and the layer renders outside that subtree and anchors to the trigger's untransformed box.Writing rubric results
Scope
Records: AST-059, layer-runtime