Re: [csswg-drafts] [css-view-transitions-1] Can't we just remove `transition root pseudo-element` and `show view transition tree` from the spec? They seem unnecessary. (#12760)

> The :::view-transition pseudo might not have content, but it can have an author defined style, eg background color.
> 
> So removing all the content might not be sufficient.

In my [proposed spec change](https://github.com/w3c/csswg-drafts/pull/12767), this is handled by specifying "This element is only rendered when it has children." for `::view-transition`.

> I don't remember what view transitions 2 does as this applies to scoped view transitions in a different way.

From what I can tell, looking at [the latest draft](https://drafts.csswg.org/css-view-transitions-2/), the relevant sections have not yet been updated to support scoped view transitions. Document's [show view transition tree](https://drafts.csswg.org/css-view-transitions-2/#document-show-view-transition-tree) is still there and being used on every transition, even scoped ones.

-- 
GitHub Notification of comment by Psychpsyo
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12760#issuecomment-3537113732 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 15 November 2025 23:51:05 UTC