Bug 264727 - CSS attribute `object-fit` broken for videos since iOS17.1.1
Summary: CSS attribute `object-fit` broken for videos since iOS17.1.1
Status: RESOLVED DUPLICATE of bug 264293
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-13 01:04 PST by Gilad Bar
Modified: 2024-02-13 21:55 PST (History)
4 users (show)

See Also:


Attachments
Broken behavior on Facebook Reels, TikTok, YouTube shorts (23.49 MB, video/quicktime)
2023-11-13 01:04 PST, Gilad Bar
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gilad Bar 2023-11-13 01:04:01 PST
Created attachment 468576 [details]
Broken behavior on Facebook Reels, TikTok, YouTube shorts

Ever since I've upgraded to iOS17.1.1, I'm getting a broken behavior for `object-fit` in Safari on my iPhone:

- `object-fit: contain` - the video starts either zoomed-in or out for a moment, then goes back to normal (sometimes it stays zoomed)
- `object-fit: cover` - the video starts with a black flashing, then goes back to normal

In the attached video, you can see the 2 behaviors on different apps:
- Facebook Reels - `object-fit: contain` - the video starts zoomed-in, then goes back to normal
- TikTok - `object-fit: contain` - the video starts zoomed-in/out, then goes back to normal
- TikTok - `object-fit: cover` - TikTok tried fixing the bug, so instead of being zoomed, the video starts with a black flickering
- YouTube shorts - `object-fit: cover` - the video starts with a black flickering
Comment 1 Radar WebKit Bug Importer 2023-11-17 20:11:11 PST
<rdar://problem/118590756>
Comment 2 Simon Fraser (smfr) 2024-01-11 15:50:44 PST
Should be fixed by https://commits.webkit.org/271859@main
Comment 3 rt12148 2024-02-13 09:26:45 PST
@smfr when will this land in safari? is it already released?
Comment 4 Alexey Proskuryakov 2024-02-13 10:53:29 PST
This should be fixed in iOS 17.4 beta. Please let us know if it's not, or if you are observing any other issues.

*** This bug has been marked as a duplicate of bug 264293 ***
Comment 5 rt12148 2024-02-13 21:53:56 PST
The issue seems to be resolved in Safari Technology preview(17.4). Is there any alternative fix we can apply until the safari release from our end?
Comment 6 rt12148 2024-02-13 21:55:24 PST
The issue is also happening in MacOS safari. not just iOS in 17.3.1