View transitions should be immediately skipped when document is hidden, whether it's hidden before or during the transition. This is based on CSSWG resolution: https://github.com/w3c/csswg-drafts/issues/9543#issuecomment-1939242246 See WPT: https://wpt.fyi/results/css/css-view-transitions/transition-in-hidden-page.html
See the spec: https://drafts.csswg.org/css-view-transitions-1/#page-visibility-change-steps
<rdar://problem/125017653>
Pull request: https://github.com/WebKit/WebKit/pull/26191
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/47931
Committed 283084@main (d985c5165232): <https://commits.webkit.org/283084@main> Reviewed commits have been landed. Closing PR #26191 and removing active labels.