Title: Port fix from vitejs/devtools#518: FloatingPopover escapes a transformed ancestor's containing block; native Select mode · Issue #205 · devframes/devframe · GitHub
Open Graph Title: Port fix from vitejs/devtools#518: FloatingPopover escapes a transformed ancestor's containing block; native Select mode · Issue #205 · devframes/devframe
X Title: Port fix from vitejs/devtools#518: FloatingPopover escapes a transformed ancestor's containing block; native Select mode · Issue #205 · devframes/devframe
Description: Context vitejs/devtools#518 ("fix(core): FloatingPopover escapes a transformed ancestor's containing block; native Select mode") by @dvcolomban targeted FloatingPopover, floating-position.ts, and the json-render Select component, at pack...
Open Graph Description: Context vitejs/devtools#518 ("fix(core): FloatingPopover escapes a transformed ancestor's containing block; native Select mode") by @dvcolomban targeted FloatingPopover, floating-position.ts, and t...
X Description: Context vitejs/devtools#518 ("fix(core): FloatingPopover escapes a transformed ancestor's containing block; native Select mode") by @dvcolomban targeted FloatingPopover, floating-posi...
Opengraph URL: https://github.com/devframes/devframe/issues/205
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Port fix from vitejs/devtools#518: FloatingPopover escapes a transformed ancestor's containing block; native Select mode","articleBody":"## Context\n\nvitejs/devtools#518 (\"fix(core): FloatingPopover escapes a transformed ancestor's containing block; native Select mode\") by @dvcolomban targeted `FloatingPopover`, `floating-position.ts`, and the json-render `Select` component, at `packages/core/src/client/webcomponents/**` in vitejs/devtools. That tree moved here as part of the [v0.9 migration](https://github.com/vitejs/devtools/pull/529) — the equivalent code today lives under `packages/hub-ui/src/client/components/floating/` and `packages/json-render-ui/src/components/Select.ts`.\n\nSince the original repo has since deleted that source, the PR is unmergeable there. This issue tracks porting its fix here instead.\n\n## Original PR description\n\n> ## What changed\n>\n> - `FloatingPopover` resolves the outermost ancestor that forms a containing block for `position: fixed` descendants and `\u003cTeleport>`s its panel into that ancestor's parent. With no such ancestor, it renders in place as before.\n> - New `surface` prop on `FloatingPopover`, `tooltip` (default) or `menu`. `menu` renders `p0 bg-glass:25 border-#8883` in place of `px2 p1 bg-glass:80 border-base`.\n> - `Select` gains `native`, rendering a real `\u003cselect>` instead of the custom listbox. It has no `icon`, `description` or `searchable` support.\n> - `Select`'s dropdown now uses `surface=\"menu\"` and `gap: 4`, colours the selected option with `primary` and the active row with `surfaceBadge`, and no longer passes `!p0` in `panelClass`.\n> - `webcomponents` API snapshot updated for `SelectProps.native`.\n>\n> ## Why it changed\n>\n> A `position: fixed` panel is positioned relative to its nearest ancestor carrying a non-`none` `transform` or `filter`, not the viewport, and is clipped by that ancestor's `overflow`. Rendered inside such a panel, the `Select` dropdown was offset from its trigger and cut off — unusable. Escaping the *outermost* rather than the nearest such ancestor matters because escaping one can land inside another. The teleport target stays inside the shadow root, since that is where the panel's stylesheet is adopted and `document.body` would strip its styling.\n>\n> The `menu` surface exists because a floating panel stacks over an already-tinted surface, where tooltip-strength glass composites to near-black, and because tooltip padding is wrong for a listbox — it inset the options and made the panel wider than its trigger.\n>\n> `native` is an escape hatch worth having regardless of the fix above: the browser draws a native option list outside the page's layout, so no ancestor can clip or misposition it at all, which is the dependable choice for a `Select` embedded in a host layout this component doesn't control. Its option list needs no styling here, as `ColorSchemeRoot` already sets `color-scheme` inline and that inherits.\n\nDiff: https://github.com/vitejs/devtools/pull/518/files\n\n## For agents picking this up\n\n- Read the diff at vitejs/devtools#518 to understand the intended fix and its rationale above.\n- Locate the equivalent code here — `packages/hub-ui/src/client/components/floating/FloatingPopover.ts` / `floating-position.ts`, and `packages/json-render-ui/src/components/Select.ts` — and re-implement the same behavior, adapting to whatever has shifted since the fork.\n- Credit @dvcolomban as the original author: include a `Co-authored-by: dvcolomban \u003c...>` trailer (look up their GitHub noreply email, or omit if unavailable) and mention them in the PR description.\n- Link back to vitejs/devtools#518 in the PR description.\n- Close this issue when the port merges.\n","author":{"url":"https://github.com/antfubot","@type":"Person","name":"antfubot"},"datePublished":"2026-08-14T04:23:59Z","url":"https://github.com/devframes/devframe/issues/205"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f19b577b-732a-311d-d707-296676226aae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AFE:4E2A2:10A613:17515F:6AFB6AD7 |
| html-safe-nonce | b28b9be15388e68460a0a21313432f43f8f8929957de6c89e6014217a94c603b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUZFOjRFMkEyOjEwQTYxMzoxNzUxNUY6NkFGQjZBRDciLCJ2aXNpdG9yX2lkIjoiMjIyMDY4MDU2NTUxMjQzMjM0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c99464f1a3a3cfbbc092ec72a58d5c907d19388a156a7464a074950aa235c1c7 |
| hovercard-subject-tag | issue:5148296001 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/devframes/devframe/205/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c16430d1c5acfb04ed9755fcc94c40e04261ff3feefeeb91b4dc0e4c5ec77402/devframes/devframe/issues/205 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c16430d1c5acfb04ed9755fcc94c40e04261ff3feefeeb91b4dc0e4c5ec77402/devframes/devframe/issues/205 |
| og:image:alt | Context vitejs/devtools#518 ("fix(core): FloatingPopover escapes a transformed ancestor's containing block; native Select mode") by @dvcolomban targeted FloatingPopover, floating-position.ts, and t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antfubot |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| turbo-cache-control | no-preview |
| go-import | github.com/devframes/devframe git https://github.com/devframes/devframe.git |
| octolytics-dimension-user_id | 279879373 |
| octolytics-dimension-user_login | devframes |
| octolytics-dimension-repository_id | 1231722386 |
| octolytics-dimension-repository_nwo | devframes/devframe |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1231722386 |
| octolytics-dimension-repository_network_root_nwo | devframes/devframe |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width