Bug 210432 - ResizeObserver contentRect gives incorrect measurements when Safari is not at 100% zoom level
Summary: ResizeObserver contentRect gives incorrect measurements when Safari is not at...
Status: RESOLVED DUPLICATE of bug 209947
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 13
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-13 09:10 PDT by Luke
Modified: 2020-04-13 09:32 PDT (History)
3 users (show)

See Also:


Attachments
screenshot illustrating ResizeObserver.contentRect issue (670.92 KB, image/png)
2020-04-13 09:10 PDT, Luke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2020-04-13 09:10:00 PDT
Created attachment 396293 [details]
screenshot illustrating ResizeObserver.contentRect issue

Codepen to demonstrate issue: https://codepen.io/lukesideris/pen/oNjXmoJ

When safari is zoomed in or out the value of ResizeObserver.contentRect returns the elements size after the zoom level is applied. This causes problems with measuring and aligning content because the actual height (getClientBoundingRect for instance) of the element is not the same as the rendered height.
Comment 1 Simon Fraser (smfr) 2020-04-13 09:32:05 PDT

*** This bug has been marked as a duplicate of bug 209947 ***