If a scale transform which results in content becoming larger than the browser view is performed, the views scrollbars do not properly update until the browser is resized or the DOM is manipulated via code. The attached file demonstrates this. 1) open the file in the browser. 2) resize the browser to be larger than the yellow area 2) click on the red div to trigger the scale operation. 3) notice that the scroll bars in the browser are not correct and have not updated to allow scrolling of the larger content. 4) either resize the browser window or click in the green div which will trigger a DOM change by changing the left value of a block element. The scrollbars are now updated. To repeat the process, simply click the red div again to scale it back down. The same scrollbar update issue happens then as well.
Created attachment 153052 [details] Sample HTML file which shows the bug.
I am able to reproduce this bug in Safari 16.3 and Safari Technology Preview 164 where clicking on "red" will zoom-in but does not have scrollbars while if clicked on "Green" then it will show the scrollbar. In case of Chrome Canary 112, you get scrollbars immediately after clicking on "Red" and same is in Firefox Nightly 112. Changing it to "New" and CCing others to add it to Radar.