Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-view-transitions] Rendering consolidation section should special-case root element #11772

Open
emilio opened this issue Feb 25, 2025 · 0 comments
Labels
css-view-transitions-1 View Transitions; Bugs only

Comments

@emilio
Copy link
Collaborator

emilio commented Feb 25, 2025

https://drafts.csswg.org/css-view-transitions-1/#named-and-transitioning has:

Elements captured in a view transition during a view transition or whose view-transition-name computed value is not none (at any time):

  • Form a stacking context.
  • Are flattened in 3D transforms.
  • Form a backdrop root.

Interpreted literally, it means that the root element box would become a stacking context always (via :root { view-transition-name: root } in the UA sheet). That seems unintended and doesn't match implementations.

My understanding is that the root element is "special" and gets propagated to the whole snapshot-containing-block rect / doesn't need its own stacking context.

The spec should reflect that, unless I'm missing something?

cc @chrishtr @noamr @nt1m @vmpstr

@emilio emilio added the css-view-transitions-1 View Transitions; Bugs only label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-view-transitions-1 View Transitions; Bugs only
Projects
None yet
Development

No branches or pull requests

1 participant