Bug 210432

Summary: ResizeObserver contentRect gives incorrect measurements when Safari is not at 100% zoom level
Product: WebKit Reporter: Luke <lukesideris>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bfulgham, simon.fraser, zalan
Priority: P2    
Version: Safari 13   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
screenshot illustrating ResizeObserver.contentRect issue none

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 ***