Skip to content

[css-view-transitions-1] Enforce ::view-transition to be fixed position #8505

Closed

Description

@khushalsagarhere irrespective of the value of its position property. This was resolved in #7859.

It is also meant to be the containing block for its child pseudo-elements, the ::view-transition-group, clarified in the spec here. This is done by UA CSS setting its position property to fixed.

It's unclear what should happen if developer CSS modifies the position value for this element. We don't have any developer use-case where that's needed. Also the transform value computed by the UA and set on ::view-transition-group pseudo-elements is in the snapshot root's coordinate space. This relies on these elements being positioned relative to ::view-transition which itself uses snapshot root as its containing block.

The proposal is to state that the position value for ::view-transition always computes to fixed. I'd also be open to using absolute since its containing block is not the ICB and the desired behaviour is to make it a containing block for descendants. This is similar to what's done for top layer elements, spec'd css-view-transitions-1View Transitions; Bugs only

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

    Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant