Created attachment 455352 [details] testcase Context2D drawImage(img, x, y, w, h) should not throw IndexException when width == 0 or height == 0
https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-drawimage-dev
Created attachment 455362 [details] Patch
Created attachment 455369 [details] Patch
Committed r291748 (248780@main): <https://commits.webkit.org/248780@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455369 [details].
<rdar://problem/90706702>
This still does not work in macOS 12.5 with https://www.shadertoy.com/view/flfyWH