Skip to content

[css-view-transitions-1] What's the point of position: fixed in ::view-transition? #12116

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

Open
emilio opened this issue Apr 24, 2025 · 0 comments

Comments

@emilio
Copy link
Collaborator

emilio commented Apr 24, 2025

https://drafts.csswg.org/css-view-transitions-1/#snapshot-containing-block-concept says:

The snapshot containing block is considered to be an absolute positioning containing block and a fixed positioning containing block for ::view-transition and its descendants.

Then https://drafts.csswg.org/css-view-transitions-1/#ua-styles:

:root::view-transition {
  position: fixed;
  inset: 0;
}

but afaict that position: fixed is just confusing, and behaving exactly the same as position: absolute, since the snapshot CB is a position: fixed containing block, right?

Should we change it just for clarity? Is it just an historical artifact?

cc @noamr @BorisChiou @vmpstr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant