Bug 252389 - Strange zoom in glitch when exiting fullscreen (on image, that originally spans outside viewport)
Summary: Strange zoom in glitch when exiting fullscreen (on image, that originally spa...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 16
Hardware: Mac (Intel) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-16 04:07 PST by Wojciech Czechowski
Modified: 2023-02-23 10:16 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Czechowski 2023-02-16 04:07:12 PST
Example url: https://codepen.io/wojciechczechowski/pen/jOvEXGP

Steps to reproduce the problem: 
1. Open the link above
2. Click "Open fullscreen" button to call webkitRequestFullscreen() method on the image 
3. Exit fullscreen mode with Escape key

Expected behaviour: 
Image smoothly goes back to it's original position

Actual behaviour: 
Image goes to it's original position, but there's a strange zoom-in glitch at the end of the transition.

Additional notes: 
Seems to happen only when the image originally (before / after entering fullscreen) spans outside the viewport. On images, that fits to viewport it doesn't happen.
Comment 1 Radar WebKit Bug Importer 2023-02-23 04:08:18 PST
<rdar://problem/105827852>
Comment 2 Simon Fraser (smfr) 2023-02-23 10:16:38 PST
There's some aspect ratio or object-fit logic missing when snapshotting for fullscreen animations.