Bug 271248

Summary: [view-transitions] Skip view transition on hidden pages
Product: WebKit Reporter: Noam Rosenthal <noam>
Component: CSSAssignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: ntim, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/47931
Bug Depends on:    
Bug Blocks: 259055    

Description Noam Rosenthal 2024-03-19 09:38:53 PDT
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
Comment 2 Radar WebKit Bug Importer 2024-03-19 09:44:54 PDT
<rdar://problem/125017653>
Comment 3 Tim Nguyen (:ntim) 2024-03-20 08:22:23 PDT
Pull request: https://github.com/WebKit/WebKit/pull/26191
Comment 4 Tim Nguyen (:ntim) 2024-09-02 17:52:22 PDT
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/47931
Comment 5 EWS 2024-09-03 00:13:24 PDT
Committed 283084@main (d985c5165232): <https://commits.webkit.org/283084@main>

Reviewed commits have been landed. Closing PR #26191 and removing active labels.