Skip to content

[css-view-transitions-2] view-transition-group and the root element #10632

@noamr

Description

@noamr

According to the resolution of #10334, it's possible to specify a custom ident as the view-transition-group, or e.g. nearest.
When the root element has a view-transition-name (which is root by default), nearest or view-transition-group: root might make it so that the root group would be the container instead of the global ::view-transition. This could often be unintended and not necessarily desired.

Alternatives:

  1. this is OK, root is just like everything else
  2. root is never a containing group
  3. nearest doesn't apply to the tree root, but it can be explicitly targeted (view-transition-group: root) or use contain
    (e.g. ::root { view-transition-group: contain })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions