Closed Bug 1964210 Opened 1 year ago Closed 1 year ago

Testcase with view-transition API (i think) does weird animation that does not happen in Chrome

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1962617

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

Attached file VT_chatgpt.HTML

Open testcase
Enter 50 or any number
Click Run

AR: Weird animation
ER: Not so, like Chrome

Attached file about:support
Attached file testcase 2 (reduced)

This reproduces when just calling document.startViewTransition() in an essentially empty document.

Here's a reduced testcase. When I click the button, the document gets vertically squashed for a half-second or so.

The issue with testcase 2 is more pronounced the taller my viewport is (i.e. the taller the <body>'s height).

If my viewport is about as tall as the <body> (i.e. extends to the bottom of the square), then there's barely any distortion.

So, a shot-in-the-dark diagnosis here is that we're doing our view-transitions snapshot of the whole viewport, and then we're squishing that quite tall snapshot down to fit into the <body>'s border-box (which is much shorter).

Severity: -- → S3
Flags: needinfo?(emilio)

Here's a profile with testcase 2:
https://share.firefox.dev/44RMfLK

I click the button 3 times in a window that's nearly 2x as tall as the <body>'s content-height, and then I shrink the window to be exactly as tall as the body and click the button 3 times again.

The screenshots track shows substantial distortion for those first 3 clicks, and barely any distortion for the last 3 clicks.

Looks like this may be duplicated by Bug 1962617. (We can check again this bug after Bug 1962617 gets merged. Note that autoland is closed now).

Yup, looks like it - thanks!

Yes, fairly sure this is a dupe.

Flags: needinfo?(emilio)

(In reply to Daniel Holbert [:dholbert] from comment #5)

Here's a profile with testcase 2:
https://share.firefox.dev/44RMfLK

I click the button 3 times in a window that's nearly 2x as tall as the <body>'s content-height, and then I shrink the window to be exactly as tall as the body and click the button 3 times again.

The screenshots track shows substantial distortion for those first 3 clicks, and barely any distortion for the last 3 clicks.

Looks like this has been fixed. I just tried this testcase on today's Nightly, and it looks expected now.

Marked as resolved as duplicated. Please feel free to reopen if it's still possible to reproduce.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1962617
Resolution: --- → DUPLICATE

The original testcase here doesn't squish anymore, but it does flicker to be blank (very briefly) on every view transition.

I can reproduce that with testcase 2 as well. I'll file a new bug for that.

I filed bug 1964537 for the flickering that I mentioned in comment 10.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: