Re: [csswg-drafts] [css-view-transitions] view transitions to customize the appearance of entering/exiting fullscreen? (#10609)

> Is this something that (in theory) could be improved and customized with view transitions?

Yea. We need a new opt-in to do a same-document ViewTransition for the fullscreen case. Authors can't do it using the `document.startViewTransition` API since that needs to be called *before* the DOM change. And by the time the author is notified of the fullscreen event, it's already too late.

There's also the problem that we currently abort transitions if the "snapshot containing block" size changes [here]( https://drafts.csswg.org/css-view-transitions-1/#ref-for-viewtransition-initial-snapshot-containing-block-size%E2%91%A1:~:text=Return.-,If%20transition%E2%80%99s%20initial%20snapshot%20containing%20block%20size%20is%20not%20equal%20to%20the%20snapshot%20containing%20block%20size%2C%20then%20skip%20the%20view%20transition%20for%20transition%2C%20and%20return.,-Update%20pseudo%2Delement). Instead likely the cached transforms need to be adjusted so the elements stay-in-place when the viewport size changes.

@nt1m @noamr @vmpstr

-- 
GitHub Notification of comment by khushalsagar
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10609#issuecomment-2243485029 using your GitHub account


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

Received on Monday, 22 July 2024 17:41:36 UTC