Bug 126934

Summary: srcset renders 2x images at 2x width and height
Product: WebKit Reporter: Vicki Pfau <jeffrey+webkit>
Component: ImagesAssignee: Dean Jackson <dino>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: eoconnor, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Repro none

Description Vicki Pfau 2014-01-13 14:56:17 PST
Created attachment 221081 [details]
Repro

While testing srcset out on a 100x100px image with a 2x image, I discovered that in the nightlies, the 2x image is rendered 2x the width and height instead of the same width and height but with 2x density. A simple repro is attached.
Comment 1 Theresa O'Connor 2014-01-13 16:38:33 PST
The intrinsic size of the image should be adjusted based on the candidate's Nx value. This is clear in the WHATWG spec, but is not currently clear in the W3C one. (It will become clear when I next pull in the relevant WHATWG changes.)
Comment 2 Radar WebKit Bug Importer 2014-01-14 15:59:54 PST
<rdar://problem/15819696>
Comment 3 Theresa O'Connor 2014-01-29 13:47:14 PST

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