Repository navigation
docs(spec): AST-059 FR5 hides a layer while its anchor is out of view, unless a person is using it (draft) - #12736
nynexman4464 wants to merge 8 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on an engineering owner deciding the change to spec:AST-059 FR5: today a layer whose anchor leaves the viewport holds its place and stays visible (FR5, DEC-3), and this pull request makes every anchored layer that nobody is using hide instead (new FR5 text and DEC-11). An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision covers the rule itself, the compatibility class (a nonbreaking patch [feat] with no option that restores the hold, where spec:AST-017 FR3 treats a restoring option as the migration for a changed functional default), and the accepted screen-reader case. If the approver is not the decider DEC-11 names, that line should name the approver.
These record fixes are needed whatever the decision:
AST-059line 533: the FR4/FR8 scroll verification row still counts a layer that "vanishes instead of holding when its anchor leaves the page" as a failure, which the new FR5 requires for a hover-opened tooltip nobody is using.component:Tooltipandcomponent:HoverCardstill say "Released default preserved: yes" whilecomponent:Popovernow names FR5's hide as an exception, although tooltips and hover cards change most under the rule.- FR5 keeps "an outside press still closes a hidden layer", but
family:overlay-dismissalFR11 (the topmost surface consumes its outside press; a layer that hides on its own does not) does not say whether that press closes only the invisible layer inside an info Dialog, Drawer or CommandPalette or the host too. AST-059lines 506-507: the secondFR5 gap:line describes behaviour FR5 requires and the system does not do today, so it is not a gap underarchitecture:knowledge-contractsINV32, and the writing-rubric result that each gap line states an observable mismatch does not hold for it.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Carries only the AST-059 change, stacked on the Popover-anchoring spec pull request: verified; the base is that pull request's head and every hunk serves the hide.
- The rule's bullets (hidden layer takes no pointer input, leaves navigation, stays open and returns; in-use hold; not present for Escape or close requests; outside press still closes; no-box anchor hides with no hold; removed anchor left to the composing record; no hide without anchor positioning): verified against AST-059 FR5 and Platform support, overlay-dismissal FR2 and AST-116 AR1.
- Records changed list: verified for each of the five records.
- Today's FR5 and DEC-3 keep a layer visible and in place: verified on
main. - The runtime already observes anchor visibility and never moves a layer by script: verified (layer-runtime INV12, INV21).
- Escape and close requests go to the topmost present member: verified (overlay-dismissal FR2, FR3).
- Compatibility class is a nonbreaking patch
[feat]: left to the owner decision; AST-017 FR3, FR6 and FR25 bear on it beside the cited FR1 and FR5. - Tooltip and HoverCard keep their released-default lines unedited: verified, and reported above.
- Rejected alternatives (a per-layer option; closing the layer): verified in DEC-11 and DEC-3.
- Other libraries' defaults: not checked; outside the repository.
- Not built yet, with two
FR5 gap:lines: the first holds; the second is reported above. - The draft implementation built an opt-in hide for the popover hook only: verified.
- Writing rubric R1 to R6 and the decided-text note (DEC-3 and DEC-7 keep their Decider lines and gain
Amended:lines): verified; R7 does not hold for the second gap line. - Records only, no internal context: verified.
- Knowledge check and Prettier pass: verified by rerunning both on this head.
Files:
docs/specs/AST-059-layer-viewport-inset/spec.md: FR5 and DEC-11 wait on the owner decision; findings at lines 533 and 506-507.docs/architecture/layer-runtime.md: clear; restates the rule and waits on the same decision.docs/families/overlay-dismissal.md: the FR2 sentence waits on the decision; FR11 is not reconciled.docs/specs/AST-116-popover-anchoring/spec.md: clear; AR1 waits on the same decision.docs/specs/components/Popover/Popover.spec.md: inconsistent with the unedited Tooltip and HoverCard lines.
There was a problem hiding this comment.
Approval waits on an engineering owner deciding the change to spec:AST-059 FR5: today a layer whose anchor leaves the viewport holds its place and stays visible (FR5, DEC-3), and this pull request makes every anchored layer that nobody is using hide instead (new FR5 text and DEC-11). An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision covers the rule, its compatibility class (a nonbreaking patch [feat] with no option that restores the hold), the accepted screen-reader case, and the family:overlay-dismissal FR11 press that closes a host together with a hidden layer. DEC-11's Decider line and the Contract at a glance amendment date should then name that approver and date. The four record fixes from the last review are in; these two are still needed whatever the decision:
- Miss: DEC-11 says the rule "never hides a layer that a person is typing in, pressing, or scrolling", but FR5 hides such a layer when its anchor generates no box, so qualify the DEC-11 sentence or name that case there.
- Miss: FR5 leaves focus in a layer hidden for a no-box anchor to each component's record and only
spec:AST-116AR1 (popovers) says where it goes, so a keyboard user inside a hover card whose trigger becomesdisplay: noneloses focus; state the focus move in FR5 for every layer, or add it tocomponent:HoverCardwith a verification row.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- Carries only the AST-059 change, stacked on the popover-anchoring spec pull request: verified; the base is that pull request's head and every hunk serves the hide.
- The rule's bullets (a hidden layer takes no pointer input, leaves navigation, stays open and returns; the in-use hold; not present for Escape or close requests; an outside press closes it and is not consumed; a no-box anchor hides with no hold; a removed anchor is left to the composing record; no hide without anchor positioning): verified against AST-059 FR5 and Platform support, overlay-dismissal FR2 and FR11, and AST-116 AR1.
- Records changed list: verified for all seven records.
- Today's FR5 and DEC-3 keep a layer visible and in place: verified on
main. - The runtime already observes anchor visibility and never moves a layer by script: verified (layer-runtime INV12, INV21 on
main). - Escape and close requests go to the topmost present member, and FR11 had no rule for a hidden but open layer: verified on
main. - Tooltip and HoverCard said their released default is preserved, and each line now names the hide: verified.
- Compatibility class is a nonbreaking patch
[feat]: left to the owner decision; AST-017 FR3 and FR6 bear on it beside the cited FR1 and FR5. - Rejected alternatives (a per-layer option; closing the layer): verified in DEC-11 and DEC-3.
- Other libraries' defaults: not checked; outside the repository.
- Not built yet, with one
FR5 gap:line: verified; the line has the allowed gap form. - The screen-reader case is DEC-11's accepted cost, with a manual verification row: verified.
- The draft implementation built an opt-in hide for the popover hook only and will be reworked: verified.
- Writing rubric results and the decided-text note (DEC-3 and DEC-7 keep their Decider lines and gain
Amended:lines): verified for the changed lines; no pull request references remain. - Records only, no internal context: verified.
- Knowledge check and Prettier pass: verified by rerunning both on this head.
Files:
docs/specs/AST-059-layer-viewport-inset/spec.md: FR5 and DEC-11 wait on the owner decision; both findings above.docs/families/overlay-dismissal.md: the FR2 and FR11 sentences and the FR11 row wait on the decision; consistent with FR5.docs/architecture/layer-runtime.md: clear; restates the rule and waits on the same decision.docs/specs/AST-116-popover-anchoring/spec.md: clear; AR1 waits on the same decision.docs/specs/components/HoverCard/HoverCard.spec.md: released-default line clear; no focus clause for the no-box hide (second finding).docs/specs/components/Tooltip/Tooltip.spec.md: clear.docs/specs/components/Popover/Popover.spec.md: clear.
…, unless a person is using it
…ess; Tooltip and HoverCard name the hide; the screen-reader case is DEC-11's accepted cost
9284a26 to
1a6090b
Compare
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Approval waits on an engineering owner deciding the change to spec:AST-059 FR5. Today a layer whose anchor leaves the viewport holds its place and stays visible (FR5, DEC-3); this pull request makes every anchored layer that nobody is using hide instead (new FR5 and DEC-11), and rewrites spec:AST-116 AR1 to match. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision covers the rule, its compatibility class (a nonbreaking patch [feat] with no option that restores the hold), the accepted screen-reader case, and the family:overlay-dismissal FR11 press that closes a host together with a hidden layer. These three record fixes are needed whatever the decision:
- Miss: FR5 hides a layer whose anchor generates no box even while focus is inside it but gives only popovers a focus rule (
spec:AST-116AR1), so a keyboard user inside a hover card whose trigger becomesdisplay: nonedrops to the page; state the focus move in FR5 for every layer, or add it tocomponent:HoverCardwith a verification row. - Miss: the new
family:overlay-dismissalFR2 sentence makes a tooltip that FR5 hides not present for Escape, whilespec:AST-003FR4, the same record's FR8 andcomponent:Tooltip's review checks still say a pinned tooltip takes Escape first, so state in FR5 which rule a pinned tooltip follows while hidden and amend the others to match. - Miss: DEC-11 says the rule "never hides a layer that a person is typing in, pressing, or scrolling", but FR5 hides such a layer when its anchor generates no box, so qualify that sentence or name the no-box case there.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Carries only the AST-059 change that began inside the popover-anchoring spec work, now on
main: verified; the base ismainand every hunk serves the hide. - The rule's bullets (a hidden layer takes no pointer input, leaves navigation, stays open and returns; the in-use hold; not present for Escape or close requests; an outside press closes it and is not consumed; a no-box anchor hides with no hold and AST-116 AR1 gains that case; a removed anchor is left to the composing record; no hide without anchor positioning): verified against AST-059 FR5 and Platform support, overlay-dismissal FR2 and FR11, and AST-116 AR1.
- Records changed list: verified for all seven records; the VG1 sentence is also edited.
- Existing authority searched (today's FR5 and DEC-3 hold; the runtime observes anchor visibility and never moves a layer by script; topmost present member for Escape and close requests; AST-116 FR6 and AR1 for a removed anchor; Tooltip and HoverCard released-default lines; FR11 had no rule for a hidden open layer): verified on
main. - Compatibility class is a nonbreaking patch
[feat]: left to the owner decision; AST-017 FR3 and FR6 bear on it beside the cited FR1 and FR5. - Rejected alternatives (a per-layer option; closing the layer): verified in DEC-11 and DEC-3.
- Other libraries' defaults: not checked; outside the repository.
- Not built yet, with one
FR5 gap:line: verified; the line has the allowed gap form. - The screen-reader case is DEC-11's accepted cost, with a manual verification row: verified.
- The draft implementation adds an opt-in hide to the popover hook only: verified; its rework is stated intent.
- Writing rubric results and the decided-text note (DEC-3 and DEC-7 keep their Decider lines and gain
Amended:lines): verified for the changed lines; no pull request references remain. - Records only, no internal context: verified.
- Knowledge check and Prettier pass: verified by rerunning both on this head.
Files:
docs/specs/AST-059-layer-viewport-inset/spec.md: FR5 and DEC-11 wait on the owner decision; first and third findings.docs/families/overlay-dismissal.md: the FR2 and FR11 sentences wait on the decision; the FR2 sentence conflicts with FR8's pinned-Tooltip rule (second finding).docs/architecture/layer-runtime.md: clear; restates the rule and waits on the same decision.docs/specs/AST-116-popover-anchoring/spec.md: AR1 waits on the same decision; consistent with FR5 for popovers.docs/specs/components/HoverCard/HoverCard.spec.md: released-default line clear; no focus clause for the no-box hide (first finding).docs/specs/components/Tooltip/Tooltip.spec.md: released-default line clear; its review check is part of the second finding.docs/specs/components/Popover/Popover.spec.md: clear.
…anchor with no box; DEC-11 names that case
6aee8ed to
096613a
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner deciding the change to spec:AST-059 FR5. Today a layer whose anchor leaves the viewport holds its place and stays visible (FR5, DEC-3); this pull request makes every anchored layer that nobody is using hide instead (new FR5 and DEC-11), and rewrites spec:AST-116 AR1 to match. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision covers the rule, its patch [feat] class with no restoring option, the accepted screen-reader case, the family:overlay-dismissal FR11 press, and whether the in-use hold also applies inside scrolling panels. These two record fixes are needed whatever the decision:
- Miss: inside a scrolling panel the browser's initial
position-visibility: anchors-visiblealready hides an open layer even while it is in use (the ContextMenu "Inside a scroll container" browser test asserts it), and the new FR5 keeps that layer visible, yet theFR5 gap:line, the Compatibility row, Current-state impact and the description say a layer in use behaves as today, so correct the gap line and name that reversal, or limit the in-use hold to the viewport. - A tooltip pinned by
show()while focus is off its trigger is outside FR5's in-use hold, so the newfamily:overlay-dismissalFR2 sentence sends Escape to the Dialog beneath it, whilespec:AST-003FR4 and DEC-6, the same record's FR8 andcomponent:Tooltip's review checks still say a pinned tooltip takes Escape first; state which rule a hidden pinned tooltip follows and amend the others to match.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- Carries only the AST-059 change first drafted with the popover-anchoring spec, now on
main, so each record's owner approves their own part: verified; the base ismainand every hunk serves the hide. - DEC-11 names the record's owner as decider and needs her approval at this head: no approval is recorded at this head yet.
- Compatibility class, a nonbreaking patch
[feat]naming the old and new behavior: left to the owner decision; the stated old behavior leaves out the scrolling-panel case (first finding). - A hidden layer takes no pointer input, leaves keyboard and accessibility navigation, stays open, reports no dismissal and returns in place: verified in FR5.
- It does not hide while a person is using it and then holds as today: the in-use definition is verified in FR5; "as today" is false inside scrolling panels (first finding).
- A hidden layer is not present for Escape or a platform close request: verified in FR5 and the FR2 sentence, which conflicts with the pinned-tooltip rule (second finding).
- An outside press still closes a hidden light-dismiss layer and is not consumed, so a host under it handles it too: verified in FR5 and FR11 with its verification row.
- An anchor with no box hides the layer with no hold, focus moves through the fallback chain for any component and is not moved back, and a popover tries its trigger first: verified in FR5, AR1 and the HoverCard focus row.
- An anchor removed from the document is left to the composing record: verified against AST-116 FR6.
- Without CSS anchor positioning the rule does not apply: verified in the Platform support bullet, consistent with DEC-9.
- Records changed list: verified for all seven records; the VG1 sentence is also edited.
- Existing authority searched: verified on
main. - A layer a person is using behaves as today: false for a layer whose anchor a scrolling panel clips (first finding).
- Rejected alternatives, a per-layer option and closing the layer: verified in DEC-11 and DEC-3.
- Other libraries' defaults: not checked; outside the repository.
- Not built yet, with one
FR5 gap:line: the line has the allowed form, but it misstates today's behavior inside scrolling panels (first finding). - The screen-reader case is DEC-11's accepted cost, with a manual verification row: verified.
- The draft implementation pull request is reworked after approval: stated intent, not checked.
- Writing rubric results and the decided-text note: verified for the changed lines; DEC-3 and DEC-7 keep their Decider lines and gain
Amended:lines. - Records only, with no internal context: verified.
- The knowledge check and Prettier pass: verified by rerunning both on this head.
Files:
docs/specs/AST-059-layer-viewport-inset/spec.md: FR5 and DEC-11 wait on the owner decision; the gap line, Compatibility row and Current-state impact carry the first finding.docs/families/overlay-dismissal.md: the FR2 and FR11 sentences wait on the decision; the FR2 sentence conflicts with FR8's pinned-Tooltip rule (second finding).docs/architecture/layer-runtime.md: clear; restates the rule and waits on the same decision.docs/specs/AST-116-popover-anchoring/spec.md: AR1 waits on the same decision; consistent with FR5.docs/specs/components/HoverCard/HoverCard.spec.md: clear; its released-default line waits on the decision.docs/specs/components/Tooltip/Tooltip.spec.md: released-default line clear; its review check is part of the second finding.docs/specs/components/Popover/Popover.spec.md: clear; its released-default line names only the hide, as the first finding notes for every component line.
… clips the anchor
There was a problem hiding this comment.
Approval waits on an engineering owner deciding the change to spec:AST-059 FR5: today a layer whose anchor leaves the viewport holds its place and stays visible (FR5, DEC-3), and this pull request makes every anchored layer that nobody is using hide instead (new FR5 and DEC-11), with matching changes in family:overlay-dismissal, spec:AST-003, spec:AST-116 AR1 and the Popover, Tooltip and HoverCard records. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), covering the rule, its patch [feat] class with no option that restores the hold, the screen-reader case, the backdrop press, the scroll-panel scope and the hidden pinned tooltip. Whatever the decision, one record fix is needed:
- The
spec:AST-059Compatibility row, the Popover, Tooltip and HoverCard released-default lines and the description say a layer someone is using behaves as today (the title says a layer hides only when nobody is using it), but the new FR5 andspec:AST-116AR1 move focus out of such a layer and let Escape and an outside press pass it when a scrolling panel clips its anchor or its anchor getsdisplay: none, so name those changes there for the release note to carry.
Three smaller notes are inline: a build-status phrase on the Tooltip FR6 row, the FR5 gap line, and a Current-state impact bullet this pull request already carries out.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- Carries only the layer change first drafted with the popover-anchoring spec, so each record's owner approves their own part: verified; every hunk serves the hide rule.
- The decision record names the layer spec's owner as decider and needs her approval at this head: it names her; no approval is recorded at this head, and any engineering owner may give it.
- Inside scrolling panels the browser already hides a layer even in use, and this head keeps that: verified in FR5.
- Compatibility class, a nonbreaking patch
[feat]naming the old and new behavior: left to the owner decision; the stated old and new behavior leave out the changes to layers in use (finding). - A hidden layer takes no pointer input, leaves keyboard and accessibility navigation, stays open, reports no dismissal and returns in place: verified in FR5.
- A layer in use holds only while the viewport alone clips its anchor, and hides when use ends: verified in FR5.
- A scrolling panel's clip hides a layer even in use: verified in FR5.
- A hidden layer is not present for Escape or a close request, a pinned tooltip included, and an outside press closes it without being consumed: verified in FR5 and the overlay-dismissal FR2, FR8 and FR11 sentences and rows.
- An anchor with no box hides the layer with no hold; focus moves through the fallback chain for that case and for a panel clip, a popover's trigger first, and is not moved back: verified in FR5, AR1 and the HoverCard focus row.
- An anchor removed from the document is left to the composing record: verified against the popover-anchoring spec's FR6.
- Without CSS anchor positioning the rule does not apply: verified in Platform support.
- Records changed list: verified for all eight files; the VG1 sentence is also edited.
- Existing authority searched: verified on
main. - One released behavior changes, and a layer a person is using behaves as today: false inside a scrolling panel and for an anchor with no box (finding).
- Rejected alternatives, a per-layer option and closing the layer: verified in DEC-11 and DEC-3.
- Claim scope and non-goals: verified.
- Other libraries' defaults: not checked; outside the repository.
- Not built yet, with one FR5 gap line: the line has the allowed form but no longer covers an anchor with no box (note).
- The screen-reader case is an accepted cost with a manual verification row: verified.
- The draft implementation is reworked after approval: stated intent, not checked.
- Writing rubric results: verified, except that the Tooltip FR6 row this pull request edits keeps a build-status phrase (note).
- Decided text keeps its Decider lines and appends amendments: verified.
- Records only, with no internal context: verified.
- The knowledge check and the Prettier check pass: verified by rerunning both on this head.
Files:
docs/specs/AST-059-layer-viewport-inset/spec.md: FR5 and DEC-11 wait on the owner decision; the Compatibility row carries the finding; the gap line and a Current-state impact bullet carry notes.docs/families/overlay-dismissal.md: the FR2, FR8 and FR11 sentences wait on the decision; consistent with FR5.docs/specs/AST-003/spec.md: FR4 and the DEC-6 amendment wait on the decision; consistent with FR5.docs/specs/AST-116-popover-anchoring/spec.md: AR1 waits on the decision; consistent with FR5.docs/architecture/layer-runtime.md: clear; restates the rule.docs/specs/components/Popover/Popover.spec.md: the released-default line carries the finding.docs/specs/components/Tooltip/Tooltip.spec.md: the released-default line carries the finding; the FR6 row carries a note.docs/specs/components/HoverCard/HoverCard.spec.md: the released-default line carries the finding.
…covers an anchor with no box
There was a problem hiding this comment.
Approval waits on an engineering owner deciding the change to spec:AST-059 FR5: today a layer whose anchor leaves the viewport holds its place and stays visible (FR5, DEC-3), and this pull request makes every anchored layer hide instead, unless a person is using it while only the viewport clips its anchor (new FR5 and DEC-11), with matching changes in family:overlay-dismissal, spec:AST-003, spec:AST-116 AR1 and the Popover, Tooltip and HoverCard records. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), covering the rule, its release class, the screen-reader case, the backdrop press, the scroll-panel scope and the hidden pinned tooltip. The release-line fixes from the last review are in; these two record fixes are still needed whatever the decision:
- Miss: FR5's focus sentence and
spec:AST-116AR1 move focus out of a layer that a scrolling panel hides to its trigger, which that panel has just clipped, but neither says the move scrolls nothing (family:overlay-dismissalFR9 says so only for a close), so a plainfocus()scrolls the panel back and undoes the person's scroll; add that the move scrolls no scroller to the candidate, with a matching failure in the FR5 (focus) and AR1 verification rows. - The "What the other consumers inherit" bullet still says "inside scrolling panels layers hide as today" and the description still says "A layer a person is using behaves as today", although FR5 and AR1 now move focus out of such a layer and let Escape and the outside press pass it, so append the Compatibility row's sentence to the bullet and drop or qualify the description's sentence.
One wording note is inline: "loses … the outside press" can read as if the press no longer closes the hidden layer.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- Carries only the layer change first drafted with the popover-anchoring spec, so each record's owner approves their own part: verified; every hunk serves the hide rule.
- The decision belongs to the layer spec's owner, and the decision record names that owner as decider and needs their approval: it names them; no approval is recorded yet, and any engineering owner may give it.
- Inside scrolling panels the browser already hides a layer even in use, and this pull request keeps that: verified in FR5.
- The release class is pending the owner's choice, and the Contract at a glance still says a nonbreaking patch
[feat]: verified that the row still says so; the owner's choice is not on this pull request. - A hidden layer takes no pointer input, leaves keyboard and accessibility navigation, stays open, reports no dismissal and returns in place: verified in FR5.
- A layer in use holds only while the viewport alone clips its anchor, and hides when use ends: verified in FR5.
- A scrolling panel's clip hides a layer even in use: verified in FR5.
- A hidden layer is not present for Escape or a close request, a pinned tooltip included, and an outside press closes it without being consumed: verified in FR5 and the overlay-dismissal FR2, FR8 and FR11 sentences and rows.
- An anchor with no box hides the layer with no hold, and focus moves through the fallback chain for that case and for a panel clip, a popover's trigger first, and is not moved back: verified in FR5, AR1 and the HoverCard focus row; whether the move scrolls is not stated (first finding).
- An anchor removed from the document is left to the composing record: verified against the popover-anchoring spec's FR6.
- Without CSS anchor positioning the rule does not apply: verified in Platform support.
- Records changed list: verified for all eight files; the review-applicability trigger list and one verification-gap sentence are also edited.
- Existing authority searched: verified on
main. - One released behavior changes, and a layer a person is using behaves as today: false; the description's own next sentences, FR5 and AR1 change focus, Escape and the outside press for such a layer (second finding).
- The Compatibility row and the Popover, Tooltip and HoverCard lines name what a layer in use loses: verified.
- Rejected alternatives, a per-layer option and closing the layer: verified in DEC-11 and DEC-3.
- Claim scope and non-goals: verified.
- Other libraries' defaults: not checked; outside the repository.
- Not built yet, with one FR5 gap line covering the viewport, the panel clip and an anchor with no box: verified.
- The screen-reader case is an accepted cost with a manual verification row: verified.
- The draft implementation adds an opt-in hide to the popover hook only and is reworked after approval: verified that it is opt-in; the rework is stated intent.
- Writing rubric results: verified for the changed lines; no project-status phrase remains on a changed line.
- Decided text keeps its Decider lines and appends amendments: verified.
- Records only, with no internal context: verified.
- The knowledge check and the Prettier check pass: verified by rerunning both.
Files:
docs/specs/AST-059-layer-viewport-inset/spec.md: FR5 and DEC-11 wait on the owner decision; FR5's focus sentence carries the first finding and the consumer bullet the second; the Compatibility row carries the wording note.docs/specs/AST-116-popover-anchoring/spec.md: AR1 waits on the decision and is part of the first finding.docs/families/overlay-dismissal.md: the FR2, FR8 and FR11 sentences and rows wait on the decision; consistent with FR5.docs/specs/AST-003/spec.md: FR4 and the DEC-6 amendment wait on the decision; consistent with FR5.docs/architecture/layer-runtime.md: clear; restates the rule.docs/specs/components/Popover/Popover.spec.md: released-default line clear apart from the wording note.docs/specs/components/Tooltip/Tooltip.spec.md: released-default line, FR6 row and review check clear apart from the wording note.docs/specs/components/HoverCard/HoverCard.spec.md: released-default line clear apart from the wording note.
…r bullet names what a layer in use loses
There was a problem hiding this comment.
Approval waits on an engineering owner deciding the change to spec:AST-059 FR5: today a layer whose anchor leaves the viewport holds its place and stays visible (FR5, DEC-3), and this pull request makes every anchored layer hide instead, holding only while a person is using it and only the viewport clips its anchor. An engineering owner records that decision, together with the release class, by commenting /approve-spec <full head SHA> on the pull request; the author may do so as an engineering owner. Every point from the last review is fixed, and one record fix remains:
- Miss: the Compatibility row (
AST-059spec.md:78) ships a changed documented interaction as a nonbreaking patch[feat]with no option that restores the hold, whichspec:AST-017FR3 does not allow, so it should state the class the owner picks:[breaking]in the next minor, an accessibility[fix]that names its target, or a patch whose changeset names a restoring option.
Three small wording suggestions are in the inline comments.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: a layer whose anchor the viewport or a scrolling ancestor clips is hidden, stays open, reports no dismissal and returns in place: verified (AST-059 FR5).
- Claim: a layer in use holds only while the viewport alone clips its anchor, and hides when use ends: verified (FR5).
- Claim: a hidden layer is not present for Escape or a close request, a pinned tooltip included: verified (overlay-dismissal FR2 and FR8, AST-003 FR4 and DEC-6, Tooltip FR6).
- Claim: an outside press still closes a hidden light-dismiss layer and also reaches the host beneath: verified (FR5, overlay-dismissal FR11 and its row).
- Claim: an anchor with no box hides the layer with no hold; focus moves through the fallback chain, scrolls nothing, is not moved back, and a popover tries its trigger first: verified (FR5, AST-116 AR1 and its row).
- Claim: an anchor removed from the document is left to the composing record, and without anchor positioning the rule does not apply: verified (FR5, Platform support).
- Claim: the release class is pending and the row still carries the first-drafted patch
[feat]: verified; that sentence contradicts AST-017 FR3 (finding above). - Claim: the records-changed list, including the pinned-tooltip edits: verified (all eight files).
- Claim: decided text keeps its Decider lines and gains amendment lines, and DEC-11 is new: verified.
- Claim: no issue or pull request references in the changed lines, and one FR5 gap line: verified.
- Claim: the knowledge check and Prettier pass: verified (rerun on this head).
- Claim: the earlier draft implementation was an opt-in for usePopover only and will be reworked: verified (that pull request's title and body).
- Claim: other libraries' defaults: not checked (outside this repository).
- File: docs/specs/AST-059-layer-viewport-inset/spec.md: one blocking finding (release class), two wording suggestions.
- File: docs/families/overlay-dismissal.md: one wording suggestion (HoverCard matrix rows).
- File: docs/specs/components/Popover/Popover.spec.md: one wording suggestion (anchor with no box), which also applies to the Tooltip and HoverCard lines.
- File: docs/specs/AST-003/spec.md: clear.
- File: docs/specs/AST-116-popover-anchoring/spec.md: clear.
- File: docs/architecture/layer-runtime.md: clear.
- File: docs/specs/components/Tooltip/Tooltip.spec.md: clear apart from the shared wording suggestion.
- File: docs/specs/components/HoverCard/HoverCard.spec.md: clear apart from the shared wording suggestion.
| | Behavior | A layer renders at its own size — the caller's explicit size, or its content's — up to the viewport minus its gutters, and never beyond: content that cannot fit the viewport overflows inside the layer, where the composing component scrolls or clips it (FR2, FR3). Content that can wrap fits beside the trigger by wrapping; a size that cannot shrink flips, and fitting neither side it keeps its size and slides along the alignment axis into view (FR4, DEC-2); a tooltip instead flips to the opposite side, then goes beside its trigger, then to the roomier side (FR4). A layer whose anchor is out of view hides. While only the viewport clips the anchor, a layer a person is using holds its position and its size instead (FR5, DEC-3, DEC-11). The first frame a layer paints is its settled frame; it never paints and then moves, save the keyboard cap's change that FR8 names. During a scroll, CSS places every anchored layer and the runtime does no layout work per scroll frame (FR4, FR8, DEC-7). | | ||
| | End-user impact | A person who opens a 352px menu from a control near the edge of a panel gets a 352px menu, not a 274px one. A long menu on a phone keeps its labels readable instead of squeezing beside its trigger. A layer never ends under a phone navigation bar the app has declared (FR6). Nothing moves for an app that declares no bar. On a phone, a layer that would run under the software keyboard ends 10 px above it, its content scrolling (FR9). | | ||
| | Builder impact | `Popover.width` and `DropdownMenu.menuWidth` become ordinary sizes. An app with a floating bar declares it once, as `inset` on the `LayerProvider` it already mounts, beside `toast`; toasts and anchored layers both clear it. Components that compose `useLayer` or `usePopover` inherit the gutter, the caps, and the fallbacks without a record change (FR7). | | ||
| | Compatibility/readiness | Behavior change, one additive prop. An explicit size near an edge renders at its size instead of shrinking; unwrappable content near an edge flips or slides instead of overflowing its box; prose still wraps beside its trigger (DEC-2). Every anchor-mode layer gains the gutter and caps (FR7). `LayerProvider.inset` defaults to zero on every edge, so an app that declares none renders as before, with or without a provider; an existing `toast.inset` keeps its meaning (DEC-5). A layer that no person is using hides while the viewport clips its anchor instead of staying visible in place (FR5, DEC-11). Inside a scrolling panel, and for an anchor with no box, a hidden layer also loses focus and Escape, and an outside press that closes it also reaches the surface beneath, even while a person is using it. It stays open, keeps its state and returns with its anchor, so no caller changes code: a nonbreaking behavior change (`spec:AST-017` FR1) that ships as a patch `[feat]` naming the old and new behavior, not a `[fix]` (`spec:AST-017` FR5). Authority: `current`, approved by the owner on 2026-10-03; FR5 and DEC-11 amended on 2026-11-18. | |
There was a problem hiding this comment.
Miss (blocking): this classes FR5's hide as "a nonbreaking behavior change (spec:AST-017 FR1) that ships as a patch [feat]", and DEC-11 rejects any option that restores the hold. spec:AST-017 FR3 counts documented interaction as released contract and says a changed functional default is "judged under FR1 instead. Its Changeset names the old and new default and the prop or option that restores the old default, which is the migration"; FR6 adds that confidence that affected callers are uncommon does not make it nonbreaking. Please replace the sentence with the class the owner picks: [breaking] in the next minor (FR1), a patch [fix] that names its accessibility target (FR53), or a patch [feat] whose Changeset names the option that restores the hold (FR3), with DEC-11's Rejected: line amended to match.
|
|
||
| - Released default preserved: `yes`, except the accessibility fixes `spec:AST-116` FR22 names | ||
| and `spec:AST-059` FR5's hide for a popover that no person is using. | ||
| Inside a scrolling panel, and for an anchor with no box, a hidden layer also loses focus and Escape, and an outside press that closes it also reaches the surface beneath, even while a person is using it. |
There was a problem hiding this comment.
Non-blocking: this line, the Compatibility row, the consumer bullet in spec:AST-059 and the Tooltip and HoverCard lines mention an anchor with no box only through what "a hidden layer also loses". Today such a layer is not hidden at all (the FR5 gap: line), so the release note would not say it now hides. Suggested addition: "A layer whose anchor generates no box (display: none) now hides, even while a person is using it."
| | FR3 | Story "taller than the viewport" at both viewports; the runtime's viewport-fit style on every anchor-mode layer | Content 2000px tall | The layer box's block size exceeds the viewport minus gutters | | ||
| | FR4 | Stories "content-sized, does not fit beside the trigger", "trigger near an edge flips", "neither side fits", "trigger near the bottom flips above", "wide layer, trigger near the bottom" at both viewports | A flip to end alignment at content size and at an explicit size; a 1000px layer slid inside the gutters where it fits; a block flip with room only above; a block flip when the inline axis is also capped | A layer squeezed into the span, a flipped edge off the trigger's edge, a layer outside the gutters on either axis, or a layer left on the side with no room | | ||
| | FR4, Tooltip | The `TooltipTallContent` and `TooltipTallContentTracking` real-engine suites (Chromium, WebKit) at 1280×720 and 390×700; the runtime's anchor-clear unit suite; a wheel and a keyboard pass over a fitting and a tall tooltip in Chromium, before and after | A 60-line tooltip mid-page (beside it); a fitting tooltip whose side loses room in a scroll (it flips to the opposite side, not beside); on a phone, trigger in the upper or lower half (roomier side); a fitting tooltip; content growth, host move, trigger move by layout, a page scroll and a scroll inside a scrolling panel that carry the trigger past an edge, window resize, replaced trigger; a wheel over a fitting tooltip and at the end of a tall one; Tab through a page that holds a fitting and a scrolling tooltip | Moves beside its trigger while the flip to the opposite side fits; covers its trigger in any frame, including every frame of a scroll inside a panel; closes under a resting pointer, leaves the viewport, won't scroll, or a fitting tooltip moves; a wheel over a fitting tooltip does not scroll the page, or a tall tooltip's scroll does not chain to the page at its end; CSS `overflow-y: auto` adds a Tab stop in Chromium | | ||
| | FR5 | Stories "anchor leaves the viewport" and "anchor already off-screen when the layer opens"; the runtime's anchor-visibility unit suite; a real-browser interaction spec for the hide | A page scroll carries the anchor out of the viewport and back with focus elsewhere, with focus inside the layer, with focus on the anchor, and during a press and a scroll gesture that started inside the layer; an anchor that a scrolling panel clips, with focus elsewhere and with focus inside the layer; a layer opened with its anchor already off-screen; an anchor set to `display: none` with focus inside the layer | The layer stays visible with its anchor out of the viewport while no person uses it, hides for an anchor clipped only by the viewport with focus inside it or during a gesture that started in it, stays visible while a scrolling panel clips its anchor, keeps focus after a scrolling panel's clip hides it, takes pointer input or a tab stop while hidden, takes Escape while hidden, reports a dismissal, slides toward the viewport edge after the anchor is gone, changes size, does not return with its anchor, or opens pinned to the edge | |
There was a problem hiding this comment.
Non-blocking: the states include "with focus on the anchor" and "an anchor set to display: none", but no failure names a layer that hides while focus is on its anchor or one that stays visible for an anchor with no box. Suggested failures: "hides with focus on its anchor; stays visible for an anchor with no box".
| | Dialog inside Dialog | Inner dialog handles the first request | Dialog supplies native modality and focus behavior | | ||
| | Popover inside Dialog | A modal Popover, or a non-modal one holding focus, handles the first Escape | Popover supplies anchoring, portal placement, and focus policy | | ||
| | Registered descendant inside CommandPalette | Descendant handles the first Escape | CommandPalette inherits Dialog's shared stack participation | | ||
| | Tooltip or HoverCard inside Dialog, in page | An open HoverCard handles the first Escape; over an unpinned Tooltip, the Dialog takes it; a pinned Tooltip takes it first while it is shown | Hover families decide when they are present and how controlled state responds | |
There was a problem hiding this comment.
Non-blocking: "An open HoverCard handles the first Escape" still covers a HoverCard that spec:AST-059 FR5 hides, since FR5 keeps it open, while FR2 says it is not present; this cell qualifies only the pinned Tooltip with "while it is shown". Suggested: "An open HoverCard handles the first Escape while it is shown", and the same in the iframe row (line 293).
Exact decision needed
Whether every anchored layer hides while its anchor is out of view and no person is using it, in place of today's rule that it stays visible and holds its place (
spec:AST-059FR5, DEC-3).The decision is
spec:AST-059's owner's (cixzhang). DEC-11 names her as decider and needs her/approve-specat this head.A second question for the same owner: inside a scrolling panel, the browser already hides a layer whose anchor the panel clips, even while a person is using it. This head keeps that: the in-use hold applies only while the viewport clips the anchor. The other choice is to hold a layer in use there too, which reverses today's behavior inside scrolling panels.
Release class: pending the owner's decision. The Contract at a glance still carries the sentence as first drafted (a nonbreaking patch
[feat]). The owner is choosing between[breaking]in the next minor, an accessibility[fix], and a patch with an option that restores the hold (spec:AST-017FR3), and that sentence changes with her answer.What the rule says
family:overlay-dismissalFR2 gains that sentence). A pinned tooltip is no exception: while hidden it does not take Escape first. An outside press still closes a hidden layer that light-dismisses. The hidden layer does not consume that press, so a host surface under it handles the press as well.family:overlay-dismissalFR11 gains that sentence, beside its existing one for a layer that hides on its own.display: none) is out of view with no hold, because no box remains to hold against. Focus inside a layer that hides this way, or for an anchor a scrolling panel clips, does not stay in it: it moves throughspec:AST-116FR20's chain to the first candidate that qualifies, whichever component owns the layer, scrolls no scroller to it, and is not moved back when the layer shows again. A popover tries its trigger first;spec:AST-116AR1 gains that case.spec:AST-116FR6 for a popover'sanchorRef).Records changed
spec:AST-059: FR5, the Contract at a glance rows that restate it, FR8's sentence on the first frame, the Platform support bullet on the reduced fallback, its Current-state impact, its FR5 verification row, a manual screen-reader row and a focus row for a HoverCard, the FR4/FR8 scroll verification row (its failure now names a layer in use), one gap line,Amended:lines on DEC-3 and DEC-7, and DEC-11.architecture:layer-runtime: the positioning prose, INV12 and the change coupling name the hide.family:overlay-dismissal: FR2 says a layer that FR5 hides is not present. FR11 says such a layer does not consume an outside press, and its verification row covers that press.spec:AST-116: AR1 and its verification row gain the anchor with no box and the anchor a scrolling panel clips.component:Popover,component:Tooltipandcomponent:HoverCard: each released-default line names the hide.family:overlay-dismissalsays so in FR8, two matrix rows, its Tooltip adoption row and its FR8/FR9 verification row.spec:AST-003says so in FR4, its FR1–FR6 verification row and its completion list, and DEC-6 gains anAmendedparagraph.component:Tooltipsays so in FR6 and its review check.Existing authority searched
spec:AST-059(current) FR5 and DEC-3: a layer whose anchor has left the viewport does not slide; it keeps its position and size and stays visible. DEC-3 rejects closing the layer; hiding is not closing, and DEC-11 keeps DEC-3's hold for a layer in use. FR5 speaks only of the viewport: inside a scrolling panel, the browser's initialposition-visibility: anchors-visiblehides a layer whose anchor the panel clips, even one a person is using; the ContextMenu "Inside a scroll container" browser spec asserts that hide for an open menu.architecture:layer-runtimeINV12 and INV21: the runtime already observes anchor visibility for every layer, and script never moves a layer to follow its anchor. The hide uses that observation and writes no position.family:overlay-dismissalFR2 and FR3: Escape and platform close requests go to the topmost present member.spec:AST-116FR6 and AR1 (current): ausePopoversurface whoseanchorRefelement leaves the document shows no surface, and focus inside it moves out.spec:AST-017FR1, FR5 and FR53: what makes a change breaking, a fix, or an accessibility fix.component:Tooltipandcomponent:HoverCardsay their released default is preserved; each line now names the hide as an exception.spec:AST-003FR4 and DEC-6,family:overlay-dismissalFR8 andcomponent:TooltipFR6: a tooltip pinned open by a press takes Escape first. None of them said what happens while it is hidden.family:overlay-dismissalFR11: the topmost surface consumes the outside press that closes it, so a host under it stays open. A layer that hides on its own, which the press does not close, does not consume it. FR11 had no rule for a layer that is hidden but still open.Decision
See the record. One released behavior changes, for every anchored layer: a layer that no person is using (a tooltip or hover card, a coachmark, a popover left open after focus moved away) hides while the viewport clips its anchor, where today it stays visible at the position its flips give it. A layer a person is using holds as today while only the viewport clips its anchor. Inside scrolling panels layers hide as today; what is new there is FR5's other rules for a hidden layer: focus inside it moves out, and Escape and an outside press pass it. So inside a scrolling panel, and for an anchor with no box, a hidden layer also loses focus and Escape, and an outside press that closes it also reaches the surface beneath, even while a person is using it; the Compatibility row and the Popover, Tooltip and HoverCard released-default lines say so.
Rejected alternatives
spec:AST-059DEC-3 already rejects it, and DEC-11 keeps that.Claim scope and non-goals
Every anchored layer, through the layer runtime. Out of scope: an anchor removed from the document (the composing component's record), layers in custom or fixed mode, and any per-layer input.
Evidence and implementation relationship
spec:AST-059carries oneFR5 gap:line: a layer whose anchor has left the viewport stays visible whether or not a person is using it; and a layer that a scrolling panel's clip hides keeps focus inside it off the chain, still takes Escape and consumes an outside press, and in WebKit still takes pointer input; and a layer whose anchor generates no box is not hidden.usePopoveronly. It is reworked into the built-in rule after this record is approved.Writing rubric results
Rejected:line sits inside the decision.FR5 gap:line inspec:AST-059, stating an observable mismatch.spec:AST-059DEC-3 and DEC-7 keep their text and Decider lines and each gains oneAmended:line naming DEC-11;spec:AST-003DEC-6 keeps its text and Decider line and gains oneAmendedparagraph (architecture:knowledge-contractsINV31). DEC-11 is new.Scope
Components: Layer (every anchored layer), usePopover (AR1), Popover, Tooltip, HoverCard
Validation
pnpm check:knowledge: passes ("Knowledge templates and records are aligned").prettier --checkon every changed file: passes.