Skip to content

[css-view-transitions-2] Automatic support for clipping? #8821

@noamr

Description

@noamr

In v1, participating elements escape ancestor clip.
This means for example, that clipping the entire document with a circle clip-path and then transitioning between elements inside it, the circle clip would disappear during the transition.

This can be manually fixed by applying a clip-path to the transition pseudo-element, but perhaps we can do a better job at this automatically - coalesce the transformed ancestor paths for a captured element, and apply it as a clip path to the pseudo element. Not sure if this would produce better results than the nested transition group proposal but I thought I should raise this for discussion so that the use cases is considered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions