Skip to content

docs(themeservice): spec 007 — ThemeService targets own root under foreign XamlRoot - #3122

Merged
nickrandolph merged 2 commits into
mainfrom
dev/vs/3120-themeservice-spec
Jun 30, 2026
Merged

nickrandolph merged 2 commits into
mainfrom
dev/vs/3120-themeservice-spec

Conversation

@vatsashah45

Copy link
Copy Markdown
Contributor

GitHub Issue: refs #3120

PR Type

  • Documentation content changes

What is the current behavior?

No design doc exists for the ThemeService foreign-XamlRoot / ALC theming bug tracked in #3120.

What is the new behavior?

Adds specs/007-themeservice-foreign-xamlroot/spec.md — a living design doc covering:

  • the root cause (write target RootElement.XamlRoot.Content diverges from the read/observe target RootElement)
  • the conservative fix (target RootElement, retain the XamlRoot null-check as the realized-yet gate)
  • why it's correct in both standalone and hosted/ALC topologies
  • the red/fix/green test plan

The code change that implements this spec is in a separate PR (#3121).

PR Checklist

Other information

Spec-only PR; numbered 007 (next free slot — 005 is a retired number per the repo's spec-numbering rule).

- design doc for #3120: ThemeService must apply RequestedTheme to its
  own root element, not RootElement.XamlRoot.Content
- covers root cause, the conservative fix, both topologies, and test plan

Refs #3120

Co-Authored-By: Claude Opus 4.8 <[email protected]>
- two foreign-XamlRoot guards (write-target + real-dispatcher convergence)
- note the synchronous-dispatcher re-entrancy finding that drove asserting
  the write target rather than a `== Dark` snapshot
- verified red/fix/green on the Skia runtime-test head (6/6 green on fix)
- document why the Studio ALC e2e is the behavioral equivalent of test 2

Refs #3120
@vatsashah45 vatsashah45 self-assigned this Jun 30, 2026
@vatsashah45
vatsashah45 requested a review from nickrandolph June 30, 2026 07:11
@nickrandolph
nickrandolph merged commit b781901 into main Jun 30, 2026
15 of 16 checks passed
@nickrandolph
nickrandolph deleted the dev/vs/3120-themeservice-spec branch June 30, 2026 07:26
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.

2 participants