[Webkit-unassigned] [Bug 240786] New: Video does not respect object-fit:contain when beginning to play

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 22 23:37:26 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=240786

            Bug ID: 240786
           Summary: Video does not respect object-fit:contain when
                    beginning to play
           Product: WebKit
           Version: Safari 15
          Hardware: All
                OS: All
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: johannes.odland at nrk.no

Created attachment 459663

  --> https://bugs.webkit.org/attachment.cgi?id=459663&action=review

Screen recording showing video not respecting object fit the first frames after clicking play.

See test example at https://cdpn.io/pen/debug/yLvoEob?authentication_hash=yYryLVaNDLyM


Steps to reproduce:
1. Create a video element with a set width and height and object-fit:cover
2. Set intrinsic dimensions with width and height attributes on the video element. 

Poster respects object-fit:contain.

3. Click play

Current result
The first few frames the video is shown as if object-fit was set to contain. After a few frames rendering is fixed, and the video is shown correctly.
The user experience is jarring. 

Expected result
Both the poster and the video respects object-fit: cover at all times. The poster and the video

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220523/ff15ec68/attachment.htm>


More information about the webkit-unassigned mailing list