Repository source: docs/plans/floating_surfaces_opaque/floating_surfaces_opaque_one_shot.md
Floating dialogs stay opaque in every theme โ one-shot
Cycle: v3/floating_surfaces_opaque; Mode: one-shot; Record/index: this file, plans index
Debug mode: enabled (project marker .railspike_debug_on); no separate debug log for this small cycle
Effort study: railspike-effort / v3/floating_surfaces_opaque โ cycle ledger; standing enrollment under protocol P2, reference R1
Extended estimates: enabled (no real alternatives or work units; no unit estimates)
Cycle estimate: 0.12
Status: implemented and verified locally; next permitted action: push and open the PR
Original request
Feedback item PF-20261203-B03. The maintainer, 2026-12-03, in a Claude chat, after deploying PR #546: "the dialog is transparent in ochre theme, please fix, and identify what keeps causing this regression in ochre theme, make a fix that prevents future occurrences."
Authorization
That message, in the session that built PR #546. Covers the fix, a guard against recurrence, a pushed branch and a PR. Excludes merging and deploying.
Outcome and work type
Application change (CSS, a test fixture option, a browser test, the theme guide). Every open dialog.card (Deployed dialog, Pending summary, post file windows, any future one) is opaque in every theme, and a browser test fails when a theme makes one see-through.
Cause
Ochre flattens cards with
:root[data-theme="ochre"] .card:not(.post-card) { background: transparent }(specificity 0,4,0). It outranks each dialog's own background, so every new floating card came up see-through. The two earlier fixes (PF-20261122-B04, PR #374; PF-20261118-F05, PR #456) each added that dialog to an exception list, which the next dialog (the Deployed dialog, PR #546) wasn't on.Found by the new test: Console, LCD, Vapor, Arena, Underground and Underground Dark use a see-through
--panel(Arena's istransparent). Cards over the page are meant to show its texture, but the Pending summary and file windows, painted with plainvar(--panel), showed page text through them. The Deployed dialog escaped this by layering the panel over--page-bg. Underground's own.cardrule also repaints the background with the see-through panel.
Approach and risks
One shared rule in
site.css::root dialog.card[open]gets the panel layered over--page-bg(the Deployed dialog's technique, now for all).[open]lifts it to 0,3,1 so it outranks a theme's plain:root[data-theme="x"] .card(0,3,0), as in Underground. The Deployed dialog's own copy of the rule is removed.Ochre's flat-card rule is split: border and shadow still apply to every non-post card;
background: transparentnow applies to.card:not(.post-card, dialog). The exception list is gone.Considered
!importanton the shared rule. Rejected: it would also block a theme that deliberately gives a dialog its own opaque texture; the test catches the real failure instead.Prevention:
tests/browser/floating_surfaces_opaque.mjsopens each floating surface over a full-page underlay and screenshots its middle over magenta, then over green. Identical pixels mean opaque, whatever the theme's colours or textures. It checks the three real classes plus a baredialog.card(for dialogs not yet written) in every theme inThemeRegistry, reaching all 28 by switching site profiles and turning on the flagged themes.tests/Support/app_layout_fixture.phpgains two optional environment variables (V3_FIXTURE_SITE,V3_FIXTURE_FLAG_THEMES); without them its output is unchanged apart from the CSS itself.The theme guide's rules of the road gain "Floating cards stay opaque".
Risk: dialogs in the six see-through-panel themes now look solid where they were faintly see-through. Screenshots checked (Console, Underground, Vapor, Ochre).
Reuse decisions
Reuses the Deployed dialog's layered background (site.css), the layout fixture and the screenshot-over-routes pattern from tests/browser/deploy_celebrate.mjs. Non-card dialogs (account-sheet, sqlite-dialog, paned dialogs) have their own stylesheets and are not in this test.
Completion conditions
Normal entry: open the Deployed dialog, a Pending summary or a file window in Ochre and in the six themes above.
End-to-end: none shows page text through it.
Recovery: a future theme rule or dialog that breaks this fails
floating_surfaces_opaque.mjs.Release: PR merged and deployed by the maintainer.
Concepts touched
None changed; the theme guide gains a rule.
Verification and recovery plan
New browser test (failed on bb33dc40a in 7 themes, passes on the branch in all 28); deploy_celebrate.mjs, pending_chip_approval.mjs, ochre_file_window.mjs, file_window_copy.mjs, theme_ochre.mjs, theme_shared_stylesheet.cjs; smoke set. Full suite not run.
Starting revisions and branch: fix/ochre-opaque-dialogs from bb33dc40a.
Planning commit: none separate; one completion commit.
Dated execution history
2026-12-03: PR #546 found merged; branch cut from fresh main.
2026-12-03: guard test written first and run on main: Ochre failed the Deployed dialog and a bare dialog.card; Console, LCD, Vapor, Arena, Underground and Underground Dark failed the Pending summary, file windows and bare dialog.card.
2026-12-03: shared rule at
:root dialog.cardstill lost to Underground's.cardrule; raised to:root dialog.card[open].2026-12-03: test extended past the 21 themes the default profile offers to all 28.
Study history
2026-12-04T02:04Z intake: 0.12, single exposed rater Claude (claude-opus-5-5), rated after reading theme-ochre.css and the two earlier fixes. Execution entry 0.12.
Study closeout
Retrospective 0.14: the second cause (six themes) and the all-themes reach widened it slightly. No scope revision beyond the request's "prevent future occurrences".
Outcome
Delivered. Limitations: Chromium only; non-card dialogs outside this test.
Verification
node tests/browser/floating_surfaces_opaque.mjs: ok, 4 surfaces in 28 themes.deploy_celebrate.mjs,pending_chip_approval.mjs,ochre_file_window.mjs,file_window_copy.mjs,theme_ochre.mjs,theme_shared_stylesheet.cjs: pass../v3 test --smoke: 502 run, 502 passed.Full suite not run.
Final review
Diff limited to site.css, theme-ochre.css, the fixture, the new test, the theme guide, this record, its ledger, the index and the item.
Commit/merge/publication status: completion commit ca8ec2080 on fix/ochre-opaque-dialogs, pushed; PR open, not merged or deployed.
Attribution: Claude (claude-opus-5-5), 2026-12-04 UTC.