LearnNewsExamplesServices
Frontmatter
id18136
titleThe Workstation theme reveal paints black outside the circle
stateClosed
labels
bugdesignai
assigneesneo-opus-ada
createdAtSep 2, 2026, 9:15 PM
updatedAtSep 2, 2026, 10:50 PM
githubUrlhttps://github.com/neomjs/neo/issues/18136
authorneo-opus-ada
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 2, 2026, 10:50 PM

The Workstation theme reveal paints black outside the circle

neo-opus-ada
neo-opus-ada commented on Sep 2, 2026, 9:15 PM

Context

The operator, comparing the two callers of the engine's theme reveal: in the Portal the circle expands and the old theme is visible outside it. In apps/workstation — shipped by me in #18125 / PR #18127 — everything outside the circle is pitch black.

Live latest-open sweep: checked the latest 12 open issues at 2026-09-02T18:40Z; no equivalent found. #17739 (closed) was the reveal's geometry, not its layer compositing. Own-assignment sweep: nothing on this surface. Grep: no ticket mentions the view-transition pseudo-elements.

The Problem

document.startViewTransition() snapshots the document into two pseudo-elements and, by UA default, cross-fades them: ::view-transition-old(root) fades out and ::view-transition-new(root) fades in, each over ~250ms, with mix-blend-mode: plus-lighter on the image pair.

DomUtils.createRevealAnimation() animates only the new layer — clip-path: circle(0% → radius) over 500ms (DomUtils.mjs:108, pseudoElement: '::view-transition-new(root)'). It never touches the old layer.

So the old snapshot is gone at ~250ms while the reveal is still growing until 500ms. For the second half of the animation there is nothing underneath the circle, and the viewer sees the bare backdrop — black. The effect is loudest in a dense app, where losing the old snapshot means losing an entire screen of panes, grids and text rather than a mostly-empty page.

The Portal does not have this problem because it cancels the UA default itself, in its own stylesheet:

// resources/scss/src/apps/portal/Viewport.scss:10
::view-transition-old(root),
::view-transition-new(root) {
    animation     : none;
    mix-blend-mode: normal;
}

animation: none holds both layers at full opacity for the whole transition, so the old one survives until the reveal finishes. mix-blend-mode: normal overrides plus-lighter, which otherwise blows out overlapping layers.

The census is the whole defect:

app calls startViewTransition ships the pseudo-element rule
apps/portal 1 1
apps/workstation 1 0

Verified at runtime on the served Workstation: enumerating document.styleSheets for any rule matching view-transition-(old\|new)\(root\) returns none, while the Portal's is present.

The Architectural Reality

The reveal is an engine capability whose contract is split across two realms, and only one half is in the engine:

  • Neo.main.DomAccess#startViewTransition() + DomUtils.createRevealAnimation() own the animation.
  • The UA-default cancellation that makes the animation visible is CSS, and today it lives in one consumer's app stylesheet.

Nothing tells the second consumer that half the contract exists. I reused the primitive, matched the Portal's call byte-for-byte, verified the payload and keyframes at the runtime boundary, and still shipped a black screen — because the missing piece is not on the call path at all.

The Fix

Ship the rule in resources/scss/src/apps/workstation/Workspace.scss, with a comment naming what it cancels and why the consumer currently has to.

Acceptance Criteria

  • AC-1 — switching the Workstation theme shows the previous theme outside the growing circle, in both directions, on the served app. No black frame at any point in the animation.
  • AC-2 — a rule matching ::view-transition-old(root) is present in the Workstation's loaded stylesheets, asserted by enumerating document.styleSheets rather than by reading the SCSS.
  • AC-3 — the Portal is untouched and still correct.
  • AC-4 (real browser) — read by eye. startViewTransition is unsupported headless (pr-13430), so the compositing itself cannot be witnessed by any headless arm; AC-2 is the mechanical proxy and this is the visual confirmation.

Out of Scope

  • Moving the rule into the engine, which is the correct long-term answer and is filed separately — see Related. Tonight's change is the consumer-side repair the rehearsal needs; the engine change alters compositing for every consumer and is not a thing to land hours before a demo.
  • The reveal's geometry, duration and easing — all correct and unchanged.

Avoided Traps

  • Copying the Portal's rule without naming what it does. Two bare declarations with no comment is how this became invisible in the first place; the next reader must be able to see that it cancels a UA default rather than adding decoration.
  • Reaching for the engine fix tonight. It is right, and it is a compositing change for every consumer with a rehearsal in the morning.

Related

  • #18125 / PR #18127 — the change that introduced the second caller. This is its regression and mine.
  • #17739 / PR #17743 — the reveal's geometry contract.

Origin Session ID: 7596538d-5324-419a-b043-95c585d833ea

Retrieval Hint: view-transition-old root animation none mix-blend-mode plus-lighter UA cross-fade reveal black backdrop consumer stylesheet

tobiu closed this issue on Sep 2, 2026, 10:50 PM
tobiu referenced in commit 118d221 - "fix(workstation): the theme reveal holds its old layer instead of fading to black (#18137) on Sep 2, 2026, 10:50 PM