You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,10 @@ succeeds, use the supported behaviour and update this list.
75
75
- Probe the *actual* object exposed to the UI. A bridge intended as `foundation.*` was in fact spread onto the exposed root, and optional chaining hid every dead call.
76
76
77
77
**Native views**
78
-
- Native child views float above all Lynx UI and are not clipped by Lynx ancestors. Give hosts `min-width: 0`, `min-height: 0`, `overflow: hidden` and verify in the real window.
78
+
- Native child views float above the regular Lynx surface and are not clipped by Lynx ancestors. Give hosts `min-width: 0`, `min-height: 0`, `overflow: hidden` and verify in the real window.
79
+
- UI that must cover a native child view must use a `<cover-view>` root. Clay renders its children into a platform overlay slice; ordinary `<view>` plus `z-index` cannot cross the native-view boundary. Keep the covered native view attached so focus, selection, scroll position, and paint state remain stable.
80
+
- Route application overlays through one shared `<cover-view>` host on the current macOS runtime. Rapidly adding a second external overlay surface can race Clay's asynchronous present path; a single host can stack multiple Lynx overlay subtrees without exercising that surface-growth path.
81
+
- A desktop native view must use the `lynx_view_t` passed as its registration opaque to resolve `lynx_view_get_native_window()`. On macOS mount it inside the returned renderer view so Clay's sibling `ClayOverlayView` remains above the whole subtree. On Windows use a child HWND under the returned parent and do not raise it above Clay's child overlay windows. Never rediscover the host via `keyWindow`, foreground-window enumeration, or an owned popup — those escape Clay's overlay ordering and break multi-window isolation.
79
82
- Content pushed before the first attach lands in the document but does not repaint. Re-sync after the first layout.
80
83
- Devtool screenshots **cannot see native views** — capture the OS window instead (`screencapture -x -l <CGWindowID>`).
0 commit comments