[css-view-transitions] Skip transition on viewport resizes.
Categories
(Core :: CSS Parsing and Computation, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox137 | --- | fixed |
People
(Reporter: emilio, Assigned: boris)
References
(Blocks 1 open bug)
Details
(Whiteboard: [viewtransitions:m1], [wptsync upstream])
Attachments
(1 external file)
We need to track viewport resizes and abort the transition when that happens.
Updated•2 years ago
|
| Assignee | ||
Comment 1•1 year ago
•
|
||
Thinking about this bug.
Per spec, we need to compare the current containing block size to the initial one, mInitialSnapshotContainingBlockSize, in
https://searchfox.org/mozilla-central/rev/6fc1a107c44e011a585614cbbe8826f9e01ec802/dom/view-transitions/ViewTransition.cpp#667.
The related WPT is https://searchfox.org/mozilla-central/rev/6fc1a107c44e011a585614cbbe8826f9e01ec802/testing/web-platform/tests/css/css-view-transitions/window-resize-aborts-transition.html.
And looks like this is the root cause of Bug 1945023 because we may timeout when running the Test Verification on this test.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
Also, we have to make sure we resolve or reject the finished promise in
SkipTransition() because mPhase may not be Done in
CallUpdateCallback().
Besides, we have to update tests to use empty string when opening a popup
window to avoid replacing its original document with another blank document.
This replacement may cause timeout because we destroy the original document
(which runs view tranistions) after some animation frames, and so we
keep waiting the new animation frames or any promises of the view
transitions.
Comment 5•1 year ago
|
||
| bugherder | ||
Description
•