New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 630552 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 760612
Owner:
Last visit 29 days ago
Closed: Jun 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Inspect shows wrong natural image dimensions for srcset

Reported by besser.b...@googlemail.com, Jul 22 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Steps to reproduce the problem:
1. Create website that uses an image with srcset attributes to a maximum of 1000w
2. Open the site with a big enough browser window
3. Inspect that element

What is the expected behavior?
The popup reports natural dimensions with 1000 px width.

What went wrong?
It actually shows the wrong dimensions (above 1000 px).

The image file that Chromium uses in the screenshot is actually physically 850x566 only.

Did this work before? Yes Good question. I didn't notice wrong dimensions there half a year ago

Chrome version: 51.0  Channel: stable
OS Version: F22 64-bit
Flash Version: Shockwave Flash 11.2 r202

Even the EXIF data of the image is right, reporting 1000 px width.
 
chrome-dev-tools-wrong-natural-dimensions.png
42.8 KB View Download

Comment 1 by caseq@chromium.org, Jul 22 2016

Components: -Platform>DevTools Platform>DevTools>HTML
Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 3 by l...@chromium.org, Jun 6 2018

Mergedinto: 760612
Status: Duplicate (was: Assigned)
DevTools is just reporting the naturalWidth/Height here.  Since the right way to address this should be to update the internal naturalWidth/Height, I'm merging this with the other crbug.

Sign in to add a comment