Skip to content

[css-view-transitions-1] Clarifications on stacking contexts #8917

@fantasai

Description

@fantasai

https://drafts.csswg.org/css-view-transitions/#view-transition-stacking-layer

Its parent stacking context is the root stacking context.

“root stacking context” isn't a defined term in Appendix E.
Did you mean “root element’s stacking context” or something else?

If the ::view-transition pseudo-element exists, a new stacking context is created for the document element and the document's top layer. The view-transition layer is a sibling of this stacking context.

It's not clear to me what structure you're creating here, is it

  • root stacking context
    • document element stacking context
    • top layer stacking context
    • view transition stacking context

or

  • root stacking context
    • document element and top layer stacking context
    • view transition stacking context

?

The view-transition layer paints after the stacking context for the document element and document's top layer. This includes the filters and effects that are applied to the document element.

Is this trying to say

  • a) the filters and effects apply to everything together, or
  • b) they apply to the document element and top layer, and the view transition layer is above these filters and effects

?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions