[csswg-drafts] [css-view-transitions-1] Handle startVT when Document is hidden (#9543)

khushalsagar has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-1] Handle startVT when Document is hidden ==
If `startViewTransition` is called while a Document is hidden. Or the document is hidden at any point during the transition's lifecycle, we don't do anything special. We should probably explicitly skip the transition if the Document is hidden.

Not sure what to do with iframes. The UA can stop rendering opportunities if the iframe is far enough for the viewport. Should we assume its hidden?

The spec way of saying this mean be to lean on [this](https://html.spec.whatwg.org/#update-the-rendering:~:text=The%20step%20labeled%20Rendering%20opportunities%20prevents%20the%20user%20agent%20from%20updating%20the%20rendering%20when%20it%20is%20unable%20to%20present%20new%20content%20to%20the%20user%20(there%27s%20no%20rendering%20opportunity).) : The step labeled Rendering opportunities prevents the user agent from updating the rendering when it is unable to present new content to the user. If the Document is in this state, skip all ViewTransitions?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9543 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 31 October 2023 17:46:24 UTC