Repository navigation
fix(Layer): keep decorator portals outside renderer-managed DOM - #7633
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| LayerProvider | 4.2 kB (0) · 20 B CSS (0) | — | ✓ · ✓ · ✗ |
| richtext/RichTextEditor · Storybook | 295.0 kB (+125 B) · 2.6 kB CSS (0) | 678 (+2) | — · ✓ · ✓ |
| Pagination | 108.0 kB (+115 B) · 17.5 kB CSS (0) | — | — · — · — |
116 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| DateTimeInput | 203.7 kB (+111 B) · 18.4 kB CSS (0) | — | — · — · — |
| Slider | 105.7 kB (+110 B) · 8.8 kB CSS (0) | — | — · — · — |
| DropdownMenu | 95.4 kB (+108 B) · 17.1 kB CSS (0) | — | — · — · — |
| MobileNav | 69.3 kB (+108 B) · 10.5 kB CSS (0) | — | — · — · — |
| Table | 116.1 kB (+106 B) · 17.7 kB CSS (0) | — | — · — · — |
| lab/ListInput | 100.2 kB (+106 B) · 1.6 kB CSS (0) | — | — · — · — |
| NumberInput | 70.4 kB (+103 B) · 11.3 kB CSS (0) | — | — · — · — |
| lab/SelectableCardGroup | 63.0 kB (+102 B) · 162 B CSS (0) | — | — · — · — |
| Selector | 98.0 kB (+101 B) · 17.1 kB CSS (0) | — | — · — · — |
| lab/CommentComposer | 146.6 kB (+101 B) · 1.9 kB CSS (0) | — | — · — · — |
| lab/ChatEmojiPicker | 101.8 kB (+100 B) · 773 B CSS (0) | — | — · — · — |
| Carousel | 68.3 kB (+99 B) · 10.8 kB CSS (0) | — | — · — · — |
| MoreMenu | 95.7 kB (+99 B) · 17.1 kB CSS (0) | — | — · — · — |
| TopNav | 70.9 kB (+99 B) · 10.8 kB CSS (0) | — | — · — · — |
| lab/Schedule | 104.1 kB (+99 B) · 3.9 kB CSS (0) | — | — · — · — |
| AppShell | 88.9 kB (+98 B) · 13.4 kB CSS (0) | — | — · — · — |
| lab/Comments | 328.8 kB (+98 B) · 2.5 kB CSS (0) | — | — · — · — |
| Popover | 87.3 kB (+97 B) · 13.9 kB CSS (0) | — | — · — · — |
| lab/EmojiPicker | 84.9 kB (+96 B) · 751 B CSS (0) | — | — · — · — |
| DateRangeInput | 90.9 kB (+95 B) · 12.3 kB CSS (0) | — | — · — · — |
| MultiSelector | 93.3 kB (+95 B) · 16.6 kB CSS (0) | — | — · — · — |
| RadioList | 55.0 kB (+95 B) · 7.2 kB CSS (0) | — | — · — · — |
| lab/TransferList | 106.1 kB (+95 B) · 1.7 kB CSS (0) | — | — · — · — |
| Drawer | 49.1 kB (+93 B) · 8.2 kB CSS (0) | — | — · — · — |
| TextInput | 66.4 kB (+93 B) · 11.1 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 112.8 kB (+93 B) · 1.9 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 249.9 kB (+93 B) · 454 B CSS (0) | — | — · — · — |
| HoverCard | 26.3 kB (+92 B) · 4.4 kB CSS (0) | — | — · — · — |
| CheckboxListItem | 69.6 kB (+91 B) · 11.3 kB CSS (0) | — | — · — · — |
| DateInput | 182.0 kB (+91 B) · 16.7 kB CSS (0) | — | — · — · — |
| FileInput | 67.9 kB (+91 B) · 10.8 kB CSS (0) | — | — · — · — |
| TopNavHeading | 73.5 kB (+91 B) · 11.0 kB CSS (0) | — | — · — · — |
| ChatComposer | 76.3 kB (+90 B) · 11.7 kB CSS (0) | — | — · — · — |
| RadioListItem | 66.0 kB (+90 B) · 10.1 kB CSS (0) | — | — · — · — |
| SideNavHeading | 74.1 kB (+90 B) · 11.2 kB CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 102.9 kB (+89 B) · 1.1 kB CSS (0) | — | — · — · — |
| charts/Chart | 197.1 kB (+88 B) · 494 B CSS (0) | — | — · — · — |
| ComplexSelector | 69.6 kB (+88 B) · 11.7 kB CSS (0) | — | — · — · — |
| richtext/RichTextView | 274.7 kB (+87 B) · 2.3 kB CSS (0) | — | — · — · — |
| TableCell | 107.2 kB (+86 B) · 17.4 kB CSS (0) | — | — · — · — |
| ChatComposerInput | 74.3 kB (+85 B) · 11.2 kB CSS (0) | — | — · — · — |
| ChatComposerTokenElement | 74.3 kB (+85 B) · 11.2 kB CSS (0) | — | — · — · — |
| DropdownMenuSubMenu | 68.7 kB (+85 B) · 9.7 kB CSS (0) | — | — · — · — |
| InputGroup | 55.3 kB (+84 B) · 7.8 kB CSS (0) | — | — · — · — |
| TopNavMegaMenu | 68.4 kB (+84 B) · 11.7 kB CSS (0) | — | — · — · — |
| Typeahead | 78.3 kB (+84 B) · 12.3 kB CSS (0) | — | — · — · — |
| lab/CommentThread | 322.2 kB (+84 B) · 2.4 kB CSS (0) | — | — · — · — |
| DrawerHeader | 62.0 kB (+83 B) · 12.8 kB CSS (0) | — | — · — · — |
| StatusDot | 29.6 kB (+82 B) · 5.3 kB CSS (0) | — | — · — · — |
| lab/TourStep | 93.6 kB (+82 B) · 590 B CSS (0) | — | — · — · — |
| AlertDialog | 103.7 kB (+81 B) · 14.3 kB CSS (0) | — | — · — · — |
| Avatar | 41.5 kB (+81 B) · 5.5 kB CSS (0) | — | — · — · — |
| Thumbnail | 63.4 kB (+81 B) · 11.5 kB CSS (0) | — | — · — · — |
| Calendar | 70.0 kB (+80 B) · 10.5 kB CSS (0) | — | — · — · — |
| ContextMenu | 106.0 kB (+79 B) · 17.0 kB CSS (0) | — | — · — · — |
| SideNavItem | 69.1 kB (+79 B) · 11.0 kB CSS (0) | — | — · — · — |
| lab/DiffViewer | 85.4 kB (+79 B) · 2.1 kB CSS (0) | — | — · — · — |
| charts/ChartTooltip | 174.3 kB (+78 B) · 423 B CSS (0) | — | — · — · — |
| FieldLabel | 49.7 kB (+78 B) · 5.7 kB CSS (0) | — | — · — · — |
| Link | 52.0 kB (+78 B) · 7.0 kB CSS (0) | — | — · — · — |
| TabList | 42.1 kB (+77 B) · 6.5 kB CSS (0) | — | — · — · — |
| TextArea | 61.0 kB (+77 B) · 9.2 kB CSS (0) | — | — · — · — |
| Button | 59.0 kB (+76 B) · 9.9 kB CSS (0) | — | — · — · — |
| CheckboxInput | 63.0 kB (+76 B) · 9.1 kB CSS (0) | — | — · — · — |
| ListItem | 68.6 kB (+76 B) · 11.3 kB CSS (0) | — | — · — · — |
| TabMenu | 70.3 kB (+76 B) · 11.0 kB CSS (0) | — | — · — · — |
| Toolbar | 41.4 kB (+76 B) · 8.0 kB CSS (0) | — | — · — · — |
| AvatarGroup | 44.2 kB (+75 B) · 5.6 kB CSS (0) | — | — · — · — |
| IconButton | 59.0 kB (+75 B) · 9.9 kB CSS (0) | — | — · — · — |
| Switch | 100.2 kB (+75 B) · 9.9 kB CSS (0) | — | — · — · — |
| ToggleButton | 59.9 kB (+75 B) · 10.0 kB CSS (0) | — | — · — · — |
| ChatLayout | 79.0 kB (+74 B) · 10.4 kB CSS (0) | — | — · — · — |
| CheckboxList | 67.8 kB (+74 B) · 8.1 kB CSS (0) | — | — · — · — |
| Tooltip · Storybook | 27.9 kB (+74 B) · 4.4 kB CSS (0) | 865 (0) | ✓ · ✓ · ✓ |
| lab/CommentPin | 55.3 kB (+74 B) · 1.2 kB CSS (0) | — | — · — · — |
| BaseTypeahead | 69.9 kB (+73 B) · 10.8 kB CSS (0) | — | — · — · — |
| ChatSendButton | 59.4 kB (+73 B) · 9.9 kB CSS (0) | — | — · — · — |
| MobileNavToggle | 59.3 kB (+73 B) · 9.9 kB CSS (0) | — | — · — · — |
| SideNavCollapseButton | 59.8 kB (+73 B) · 10.0 kB CSS (0) | — | — · — · — |
| TableHeaderCell | 106.7 kB (+73 B) · 17.2 kB CSS (0) | — | — · — · — |
| TimeInput | 157.9 kB (+72 B) · 15.7 kB CSS (0) | — | — · — · — |
| PowerSearch | 280.9 kB (+71 B) · 23.5 kB CSS (0) | — | — · — · — |
| DialogHeader | 61.8 kB (+70 B) · 11.4 kB CSS (0) | — | — · — · — |
| Stepper | 60.7 kB (+70 B) · 10.0 kB CSS (0) | — | — · — · — |
| Banner | 61.0 kB (+68 B) · 10.4 kB CSS (0) | — | — · — · — |
| ChatLayoutScrollButton | 59.5 kB (+68 B) · 10.1 kB CSS (0) | — | — · — · — |
| Field | 53.6 kB (+68 B) · 7.2 kB CSS (0) | — | — · — · — |
| SideNav | 88.3 kB (+68 B) · 11.3 kB CSS (0) | — | — · — · — |
| AvatarGroupOverflow | 47.1 kB (+67 B) · 5.5 kB CSS (0) | — | — · — · — |
| ChatDictationButton | 59.6 kB (+67 B) · 10.0 kB CSS (0) | — | — · — · — |
| Toast | 96.6 kB (+67 B) · 10.2 kB CSS (0) | — | — · — · — |
| Tokenizer | 89.9 kB (+65 B) · 18.3 kB CSS (0) | — | — · — · — |
| CodeBlock | 73.7 kB (+64 B) · 11.2 kB CSS (0) | — | — · — · — |
| Markdown | 179.2 kB (+64 B) · 20.0 kB CSS (0) | — | — · — · — |
| InfoTip | 45.3 kB (+63 B) · 5.3 kB CSS (0) | — | — · — · — |
| SegmentedControl | 92.0 kB (+62 B) · 6.8 kB CSS (0) | — | — · — · — |
| TableSelectionToolbar | 68.6 kB (+62 B) · 13.0 kB CSS (0) | — | — · — · — |
| BreadcrumbItem | 83.0 kB (+61 B) · 12.0 kB CSS (0) | — | — · — · — |
| TopNavMenu | 73.1 kB (+58 B) · 11.1 kB CSS (0) | — | — · — · — |
| Lightbox | 110.8 kB (+57 B) · 10.4 kB CSS (0) | — | — · — · — |
| CommandPalette | 72.1 kB (+2 B) · 12.4 kB CSS (0) | — | — · — · — |
| Text | 11.1 kB (+1 B) · 5.4 kB CSS (0) | — | — · — · — |
| Timestamp | 32.2 kB (+1 B) · 10.2 kB CSS (0) | — | — · — · — |
| charts/ChartLegend | 48.3 kB (0) · 224 B CSS (0) | — | — · — · — |
| BottomSheet | 65.3 kB (0) · 7.5 kB CSS (0) | — | — · — · — |
| ChatMessageList | 27.4 kB (0) · 7.0 kB CSS (0) | — | — · — · — |
| ChatToolCalls | 31.3 kB (0) · 8.3 kB CSS (0) | — | — · — · — |
| CommandPaletteInput | 31.0 kB (0) · 7.5 kB CSS (0) | — | — · — · — |
| Dialog | 23.5 kB (0) · 6.7 kB CSS (0) | — | — · — · — |
| Heading | 11.7 kB (0) · 5.4 kB CSS (0) | — | — · — · — |
| ProgressBar | 11.7 kB (0) · 6.3 kB CSS (0) | — | — · — · — |
| SelectableCard | 17.9 kB (0) · 7.3 kB CSS (0) | — | — · — · — |
| Spinner | 24.0 kB (0) · 6.2 kB CSS (0) | — | — · — · — |
| Timer | 13.2 kB (−1 B) · 6.0 kB CSS (0) | — | — · — · — |
| layer | — | — | — · ✓ · — |
| Layer | — | — | ✓ · ✓ · — |
Package size:
- @astryxdesign/core 6.94 MB packed (+1.1 kB); no new dependencies
- @astryxdesign/richtext 213.8 kB packed (+957 B); no new dependencies
API changes: none in this pull request
Committed API report behind this build: cli 21 rows, core 33 rows; run pnpm api:report.
Touched components checked; add ci:run-visual or ci:run-rtl to run the full suites.
CI impact: 0 job-min per update · pool 0% · standard runners · 1 CI action or script file changed (not measured)
| Before | After | Change | |
|---|---|---|---|
| Job-minutes per PR update | 112.4 | 112.4 | 0 |
| Runner pool, runner-minutes a day | 58,103 | 58,103 | 0 (0%) |
| Average concurrent jobs | 40.3 | 40.3 | 0 |
| Time to green (median → this run) | — | 17.6 min | — |
| Runs a day | 517 | 517 | 0 |
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/story-play-guard.js.
Assumptions: before is each job's average over the last 20 pull-request runs; after keeps that for unchanged jobs and uses this run's minutes for added or changed ones, weighted by how often each changed job ran in those runs; runs a day averages the seven whole days before today; time to green compares this run with the median of those runs that ran the same jobs.
Accessibility: 1 violation(s)
Accessibility Audit
Status: 1 accessibility violation(s) found — 1 serious.
Tooltip - 1 issue(s)
- 🟠 serious: Ensure elements that have scrollable content are accessible by keyboard in Safari
- Rule:
scrollable-region-focusable· Affects 1/28 stories · Learn more - WCAG: 2.1.1, 2.1.3 (Level A)
- Rule:
Generated by PR Enrichment workflow | View full report
9a51c4d to
8b681a7
Compare
8b681a7 to
0943c0b
Compare
There was a problem hiding this comment.
Approval of this fix for #7580 waits on a maintainer decision. The decorator tooltip now renders and unmounts cleanly, but letting corrective layer portals escape DOM that an integration marks as renderer-managed (data-astryx-layer-portal-boundary) is an addition that architecture:layer-runtime does not yet cover: INV1 moves a layer "only outside the outermost unsafe ancestor". A maintainer needs to provide or identify the governing spec, settling whether the record adopts that boundary, who may declare it, and whether it spans the whole contenteditable or only Lexical-reconciled positions (as written, it also moves block-decorator tooltips that already worked). Independently of that decision, please:
- Drop
exportfromTooltipDecoratorFixtureinapps/storybook/stories/TooltipDecorator.stories.tsx, which Storybook currently publishes as an extra "Tooltip Decorator Fixture" story. - Add the RichTextEditor
dirchange to the changeset:dirnow sets the direction of the editing surface and placeholder, which it previously did not.
[Automated review]
0943c0b to
69d59da
Compare
There was a problem hiding this comment.
Approval of this fix for #7580 waits on a maintainer decision: letting corrective layer portals escape DOM that an integration marks with data-astryx-layer-portal-boundary="external" is not covered by architecture:layer-runtime, whose INV1 moves a layer only outside the outermost unsafe ancestor. A maintainer needs to provide or identify the governing spec, settling whether the record adopts this boundary, who may declare it, and whether it covers the whole contenteditable or only Lexical-reconciled positions (as written, it also moves block-decorator tooltips that already worked). The fixture export is fixed; independently of the spec decision, please correct the changeset:
- It says the editable surface "already" followed
dir, but onmainLexical removesdirfrom the contenteditable, sodir="rtl"renders an LTR field; with this change the editing surface, its blocks and the placeholder all become RTL, and the changeset should say so.
[Automated review]
69d59da to
5ac5561
Compare
There was a problem hiding this comment.
Approval of this fix for #7580 waits on a maintainer decision: letting corrective layer portals escape DOM that an integration marks with data-astryx-layer-portal-boundary="external" is not covered by architecture:layer-runtime, whose INV1 moves a layer only outside the outermost unsafe ancestor. A maintainer needs to provide or identify the governing spec, settling whether the record adopts this boundary, who may declare it, and whether it covers the whole contenteditable or only Lexical-reconciled positions (as written, it also moves block-decorator tooltips that already worked). The changeset now describes the dir change accurately and no other change is requested; the new RichTextEditor test fails on main and passes on this branch.
[Automated review]
Resolves the useLayer.tsx file-header @input line: main's popoverOperations ledger wording plus this branch's owned DOM boundaries.
A layer whose host sits inside a declared managed root (RichTextEditor's editable area) portals outside it; a safe inline layer stays; the moved wrapper mirrors dir; the declaration is internal. Owner decision, Nov 6 2026 (Cindy). Verification row names the boundary tests and browser specs.
|
/approve-spec 44a3d2a |
There was a problem hiding this comment.
Approved pending CI: some required checks were still running on this head when this review finished.
A tooltipped control in a RichTextEditor decorator now opens its tooltip and unmounts without NotFoundError in Chromium and WebKit, and the four changes requested last time are in (owner modules for the private attribute, @astryxdesign/a11y-spec/playwright imports in the browser specs, the existing layer-root mark in the resolver, and INV19's corrected-layer failure signal). An engineering owner approved the INV19 record change for this head. Optional: point the layer-runtime System model's "only beyond the outermost unsafe ancestor" sentence to INV19, and narrow the resolver's JSDoc to what the code does (see the inline note).
[Automated review]
| * A null result means the layer stays inline. A corrective portal escapes | ||
| * unsafe ancestors and explicitly marked integration-managed DOM. |
There was a problem hiding this comment.
Miss (non-blocking): this JSDoc says a corrective portal escapes "explicitly marked integration-managed DOM", but the code escapes a renderer-managed root only after an unsafe ancestor inside it, and never past a nearer layer root. A shorter, exact version:
* A null result means the layer stays inline. Otherwise the target is outside
* every unsafe ancestor, and outside the renderer-managed root around it
* unless a nearer layer root holds the layer.Resolves layer-runtime.md: keeps INV19 and its verification row beside main's INV11 and INV18 changes.
|
/approve-spec bc107be |
There was a problem hiding this comment.
Approving. Corrective layer portals now stay out of the DOM Lexical reconciles, so a tooltipped control in a RichTextEditor decorator opens its tooltip and unmounts cleanly, and the editor's dir now reaches its editing surface and moved overlays. INV19 is approved for this head, the new RichTextEditor test fails without the fix, and the decorator and nested-popup browser cases pass in Chromium and WebKit.
Optional: the layer-runtime System model paragraph and the resolveLayerPortalTarget JSDoc still describe the old rule; a short pointer to INV19 in each would keep them exact.
[Automated review]
Resolves layer-runtime.md again: keeps INV19 and its verification row beside main's Tooltip placement changes.
|
/approve-spec c06ea0a |
There was a problem hiding this comment.
Approving. Corrective layer portals now stay out of the DOM Lexical reconciles, so a tooltipped control in a RichTextEditor decorator opens its tooltip and unmounts without NotFoundError. The new RichTextEditor test fails without the fix, and the decorator browser specs pass in Chromium and WebKit. architecture:layer-runtime INV19 is approved for this head, and the dir change is declared in the changeset.
Optional, non-blocking:
docs/architecture/layer-runtime.md:121: the System model paragraph still says a layer portals only beyond the outermost unsafe ancestor; a pointer to INV19 would keep it from reading as a conflict.packages/core/src/Layer/layerHost.ts:108-109: the JSDoc could say exactly when the target leaves the renderer-managed root (see the open inline suggestion).
[Automated review]
There was a problem hiding this comment.
Approval waits on one engineering-owner action: re-approving architecture:layer-runtime INV19 at this head.
The fix checks out: tooltipped controls in RichTextEditor decorators now open their tooltip and unmount without NotFoundError, the new RichTextEditor test fails without the change, and dir now reaches the editing surface. The merge of main left this pull request's own changes untouched, but main also edited docs/architecture/layer-runtime.md, so the earlier spec approval no longer counts and the spec gate is waiting again.
- An engineering owner records the decision by commenting
/approve-spec 385d807882ba033449dca77d481925129f9c4eb1; the author may do so if they are an engineering owner.
Optional, non-blocking:
packages/core/src/Layer/layerHost.ts:108-109: the JSDoc could say exactly when the target leaves the renderer-managed root (see the open inline suggestion).docs/architecture/layer-runtime.md:121: a pointer to INV19 in the System model paragraph would keep it from reading as a conflict.
The failing pr-interaction (2/6) job, and the test check that reports it, come from a Lab NavigationStack frame-timing case this change does not reach; the required test check needs a re-run.
[Automated review]
|
/approve-spec 385d807 |
There was a problem hiding this comment.
Approved. Tooltipped controls inside RichTextEditor decorators now open their tooltip and unmount without NotFoundError, dir now reaches the editing surface, and the architecture:layer-runtime INV19 change is spec-approved for this head.
The required test check failed on this head only because of a Lab NavigationStack frame-timing case in pr-interaction (2/6) that this change does not reach; it needs a re-run before the pull request can merge.
Optional, non-blocking:
packages/core/src/Layer/layerHost.ts:108-109: the JSDoc could say exactly when the target leaves the renderer-managed root (see the open inline suggestion).docs/architecture/layer-runtime.md:121: a pointer to INV19 in the System model paragraph would keep it from reading as a second rule.
[Automated review]
User impact
Fixes #7580. Tooltipped Buttons in RichTextEditor image decorators survive selection/deselection and editor unmount without a
NotFoundErroror a vanished tooltip.Problem and solution fit
A corrective portal escapes phrasing/interactive HTML ancestors but can land in DOM reconciled by Lexical. Lexical removes the foreign popup; React then tries to remove it again. The error interrupts the decorator interaction and makes clean-console checks fail.
Expected behavior and authority
docs/architecture/layer-runtime.mdINV1/INV2: preserve safe inline placement, use the nearest corrective target, and distinguish placement from native top-layer promotion.docs/architecture/component-test-sufficiency.md: regression evidence observes the actual contract and remains mutation-sensitive.nodes; the reported image plugin uses that extension point.Smallest restoration
RichTextEditor declares its actual managed DOM root through a private DOM protocol. Core declares layer-owned DOM. The resolver excludes external managed DOM only for corrective portals, never moves safe inline JSX merely because it is inside an editor, and still checks every intrinsic unsafe HTML ancestor. Escaping such an ancestor clears the nearer ownership declaration. Native dialog containment is unchanged.
Mirror the existing
dirprop onto the React-owned writing wrapper so corrected portals inherit live direction rather than retaining a copied snapshot. No new component, supported export, editor prop, global registry, wrapper, or contenteditable detector. Package versions are unchanged; the Changeset requests patch releases.Evidence
mainwith the three production files unchanged. Chromium: 8 of 10 failed; WebKit: 8 of 9 failed. Every decorator-tooltip case failed because the tooltip never became visible, and the live-direction probe readltrinside anrtleditor. AremoveChildinstrumentation run on the realRichTextEditorstory recorded the tooltip detached at mount, 5 popover removals (the first from Lexical's mutation observer), and 3NotFoundError: Failed to execute 'removeChild' on 'Node'entries plus Storybook's render-error report.Scope
Testing
At
5ac5561cf972429963e50f03a0e632615f6d1a68, rebased onto621784ff7504ce16637ea42a625591857b757f37(production and fixture sources are identical to the previously verified head; the amendment removes a stray fixture export and completes the Changeset):pnpm build— passed.pnpm exec playwright test TooltipDecorator.a11y.browser.spec.ts DecoratorPortal.a11y.browser.spec.ts LayerBoundary.a11y.browser.spec.ts TooltipFocusReturn.a11y.chromium.spec.ts --project chromium --trace on— 10 passed.playwright test TooltipDecorator DecoratorPortal LayerBoundary --project webkit— 9 passed. LayerBoundary is now a cross-browser spec so CI covers its focus/direction cases on both engines.Browser coverage
Chromium and WebKit were both run before and after, from the same compiled Storybook inputs, with pinned Playwright 1.61.1 (WebKit in its official Ubuntu browser image). Chromium's engine-specific focus-return contract is included in its ten passing cases. No merge or auto-merge is requested.
Review follow-ups
TooltipDecoratorFixtureis no longer a named export, so Storybook no longer indexes it as an extra story.diris mirrored onto the wrapper around the editable surface. Measured onmainwithdir="rtl"in an LTR page: Lexical dropsdirfrom the contenteditable, so the editing surface computedltr; with this change the editing surface, its blocks, the placeholder,pluginsUI and relocated overlays computertl. The Changeset says so.Maintainer merge of main (commits on top; freddymeta's commit unchanged)
useLayer.tsxfile-header@inputline, which now keeps both phrasings.docs/architecture/layer-runtime.mdgains INV19 — A renderer never reconciles a layer's nodes: a layer whose host sits inside renderer-managed DOM (a declared managed root, such as RichTextEditor's editable area) portals outside that root; a layer nested in another layer stays in that layer's root, which the renderer does not reconcile, even when that root sits inside the managed root; a safe inline layer never moves; the moved wrapper mirrors the host'sdir; the managed-root declaration is internal (not exported, not a prop). Owner decision, Nov 6 2026 (Cindy). INV1 points to INV19. A matching verification row names the boundary tests and browser specs.DecoratorPortal.a11y.browser.spec.ts.Writing rubric results
Covers
architecture:layer-runtimeINV19, its verification row and the INV1 pointer.R1 narration: none; INV19 states what the layer system does, in the present tense.
R2 research: none in the record; the before/after measurements live in this description.
R3 evidence: the verification row names tests and browser specs, not a pull request, issue or commit.
R4 rejected alternatives: none recorded.
R5 change references: none; no pull request or issue number appears in the record.
R6 open questions: none added or answered.