Bug 91643 - webkit-transform: scale() operations cause incorrect scrollbars on view
Summary: webkit-transform: scale() operations cause incorrect scrollbars on view
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 11:13 PDT by jmayhew
Modified: 2023-02-24 09:00 PST (History)
4 users (show)

See Also:


Attachments
Sample HTML file which shows the bug. (3.08 KB, text/html)
2012-07-18 11:13 PDT, jmayhew
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jmayhew 2012-07-18 11:13:15 PDT
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.
Comment 1 jmayhew 2012-07-18 11:13:58 PDT
Created attachment 153052 [details]
Sample HTML file which shows the bug.
Comment 2 Ahmad Saleem 2023-02-24 09:00:54 PST
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.