Bug 252389
| Summary: | Strange zoom in glitch when exiting fullscreen (on image, that originally spans outside viewport) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Wojciech Czechowski <wojciech.czechowski> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bfulgham, jer.noble, ntim, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Mac (Intel) | ||
| OS: | macOS 13 | ||
Wojciech Czechowski
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/105827852>
Simon Fraser (smfr)
There's some aspect ratio or object-fit logic missing when snapshotting for fullscreen animations.