New issue
Advanced search Search tips

Issue 724971 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

ResizeObserver returns double size on high dpi desktop

Reported by dennis.h...@wecode.se, May 22 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. var o = new ResizeObserver(()=> console.log(entries[0].contentRect.width))
2. o.observer(domElement)
3. compare with domElement.clientWidth

What is the expected behavior?
clientWidth and the ResizeObserverEntry.contentRect.width should be comparable

What went wrong?
The ResizeObserverEntry appears to report width and height in physical pixels instead of css pixels

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 58.0.3029.110  Channel: stable
OS Version: 10.0
Flash Version:
 
Components: Blink>JavaScript
Labels: Needs-Triage-M58

Comment 2 by jochen@chromium.org, May 23 2017

Components: -Blink>JavaScript Blink>DOM
Owner: atotic@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 3 by atotic@chromium.org, Aug 11 2017

HighDPI works correctly.

Scaled content does not work.

Project Member

Comment 4 by bugdroid1@chromium.org, Aug 21 2017

Comment 5 by atotic@chromium.org, Aug 21 2017

Status: Fixed (was: Assigned)

Sign in to add a comment