Created attachment 465417 [details] Screenshots of the bug in Safari Technology Preview and another browser side by side. Example: Given the canvas has HTML attributes width=200 and height=200; when the CSS rules width:100px and height:100px are applied, the OffscreenCanvas renders at original 200x200 scale, overflowing the box of 100x100. Please find an example in the attached screenshot, and a simple reproduction case here: https://stackblitz.com/edit/webkit-offscreen-canvas-scaling
<rdar://problem/106941318>
Pull request: https://github.com/WebKit/WebKit/pull/11743
Committed 262039@main (2d31dae22ea7): <https://commits.webkit.org/262039@main> Reviewed commits have been landed. Closing PR #11743 and removing active labels.
fast/canvas/offscreen-scaling.html is randomly failing. https://results.webkit.org/?suite=layout-tests&test=fast%2Fcanvas%2Foffscreen-scaling.html