Skip to content
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

[css-view-transitions-1] Export an algorithm to skip a transition in a hidden document #9949

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

noamr
Copy link
Collaborator

@noamr noamr commented Feb 13, 2024

Together with whatwg/html#10137
See #9543

@noamr noamr requested a review from khushalsagar February 13, 2024 20:11
<div algorithm>
The <dfn export>view transition page-visibility change steps</dfn> given {{Document}} |document| are:

1. If |document|'s [=Document/visibility state=] is "<code>hidden</code>",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With my code hat on, should we also assert that if the visibility state change is "visible" then there is no active-view-transition. :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added an assert.

@noamr noamr merged commit 1660bab into w3c:main Feb 14, 2024
1 check passed
@noamr noamr deleted the vt1-skip-hidden branch February 14, 2024 10:11
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

Successfully merging this pull request may close these issues.

2 participants