Skip to content
New issue

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

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

Already on GitHub? # to your account

createDocumentTransition technically allows for multiple transitions #127

Closed
vmpstr opened this issue Feb 23, 2022 · 3 comments
Closed

createDocumentTransition technically allows for multiple transitions #127

vmpstr opened this issue Feb 23, 2022 · 3 comments

Comments

@vmpstr
Copy link
Collaborator

vmpstr commented Feb 23, 2022

The way the API is meant to be used, we could call createDocumentTransition multiple times and start multiple transitions. However, that makes it unclear what happens with the pseudo element tree (since there is only one).

For now, I'd prefer that we limit this to one transition at a time, but we can also think about what we could do with the pseudo element tree. The transition really only indicates which elements are captured and which elements are participating in the transition, so we could reuse the same pseudo element tree

@vmpstr
Copy link
Collaborator Author

vmpstr commented Feb 23, 2022

Basically, there are implementation difficulties with multiple transitions. E.g. ownership of the pseudo element tree has to be shared

@jakearchibald
Copy link
Collaborator

Related: #52

@khushalsagar
Copy link
Collaborator

The spec clarifies how we deal with a trigger for concurrent transitions. Supporting multiple of these on independent DOM sub-trees is out of scope for v1.

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

No branches or pull requests

3 participants