v160 · css · view transitions
Capture inspector
Which names does a transition actually see? This stage mixes an open shadow root, a closed one (only its component code holds the reference), an outer component with a nested inner shadow root, and a component outside the element scope. Pick the roots to list, pick the scope, run a real transition and compare every name’s expected participation with what the browser captured.
Probing the
shadowRoots dictionary member…Configure the call
#stage (element scope)
light-label
outside #stage
| name | declared in | root listed? | in scope? | expected (with feature) | captured here |
|---|---|---|---|---|---|
| Run a transition to fill this table. | |||||
Nothing run yet.
the participation rule
// Chromium (view_transition_style_tracker.cc), paraphrased:
participatingRoots = { scope.getRootNode(), ...options.shadowRoots };
captured(el) =
flatTreeDescendant(scope, el) // inside the scope element
&& participatingRoots.has(treeScopeOf(nameDecl)); // the stylesheet that named it
// view-transition-class / view-transition-group use the same tree-scope test,
// so a class from a listed root matches ::view-transition-group(*.slow).
- Closed roots:
host.shadowRootisnullfor a closed root, so only code that kept the reference fromattachShadow()can list it. Here the component registers its own root with the page in a privateWeakMap, standing in for “the component opts itself in”. - Nested roots: listing the outer component’s root does not pull in the inner component’s root. Tick “nested inner root” to include
nested-badge. - Out of scope: with the
#stagescope, a listed root whose host sits outside#stagecontributes nothing.