Skip to content

Resolve CSS anchors for Code OSS webview overlays - #906

Merged
wieslawsoltes merged 1 commit into
mainfrom
feature/css-anchor-webview-overlay-903
Sep 21, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
feature/css-anchor-webview-overlay-903

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

Problem and behavior

Unchanged Code OSS creates a Markdown Preview tab, but its webview overlay measures 0×0 because WebScene does not resolve the named CSS anchor functions used by overlayLayoutElement.ts. This PR adds the bounded named-anchor geometry slice needed by fixed/absolute webview overlays, including CSSOM changes and anchors that appear after the overlay in tree order. It also invalidates dependent layout when a named anchor moves.

Closes no product acceptance issue yet. The exact AppScene package must still prove painted Markdown, downstream webview lifecycle/security, visual parity, and idle CPU before WebScene #903 or AppScene #402 closes.

Validation

  • Native V8 Release: focused anchor geometry and paint 2/2 documents, 9/9 subtests; 64 move-and-relayout cycles within the 500 ms fixture budget.
  • Existing positioned-height paint/descendant regressions: combined 4/4 documents, 15/15 subtests.
  • Chrome 152 headless: geometry assertions pass; anchor-painted screenshot is byte-identical to its explicit-coordinate reference.
  • Build and git diff --check pass.

Evidence and scope: docs/validation/css-anchor-overlay-903-20260921.md. Tracks #903; CSS epic #235.

@wieslawsoltes
wieslawsoltes merged commit 406bc88 into main Sep 21, 2026
5 of 12 checks passed
@wieslawsoltes
wieslawsoltes deleted the feature/css-anchor-webview-overlay-903 branch September 21, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant