This was originally reported at crbug.com/1491624 for Chrome on iOS, but also reproduces in Safari 17.0 and STP 180 on macOS. Steps to reproduce: 1. Create a video element with object-fit: fill 2. Create a canvas element 3. Set the video element's srcObject to canvas.captureStream Expected outcome: The video fills the video element Actual outcome: The video only takes up part of the video element Visit https://pingxingyun.github.io/lark_sr_websdk_demos/test_object_fit/ and hit the play button to test this out. In Gecko and Blink, the video element is entirely blue, but in WebKit only the center portion is blue.
<rdar://problem/116832514>
I am able to reproduce this bug on WebKit ToT as well.
MediaStream from webrtc peerconnection ontrack callback have this problem too.
Pull request: https://github.com/WebKit/WebKit/pull/19339
Committed 269568@main (45f8986d1196): <https://commits.webkit.org/269568@main> Reviewed commits have been landed. Closing PR #19339 and removing active labels.