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

Start the transition on
List these roots in shadowRoots
#stage (element scope) light-label
outside #stage
Every declared name vs. what the transition captured
namedeclared inroot 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).

see also