Bug 135935

Summary: srcset with w descriptor and sizes does not behave as expected
Product: WebKit Reporter: Simon Pieters (:zcorpan) <zcorpan>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, eoconnor, esprehn+autocc, gyuyoung.kim, kling, webkit-bug-importer, yoav
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: Other   
URL: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3119
Attachments:
Description Flags
Patch none

Description Simon Pieters (:zcorpan) 2014-08-14 04:47:55 PDT
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3119 in Safari 8 in the iOS Simulator of XCode 6 beta 5 shows 'svg' for the first img, and 'image' for the second img.

If sizes support is turned on, expected result is 'image' for the first img and 'svg' for the second img.

If sizes is turned off, yoav says expected result is no image ('w' candidates should be dropped on the floor).

Instead it seems all candidates are interpreted as 1x, so the first one in srcset gets chosen.
Comment 1 Yoav Weiss 2014-08-14 06:18:56 PDT
Created attachment 236587 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2014-08-14 12:12:21 PDT
<rdar://problem/18021928>
Comment 3 WebKit Commit Bot 2014-08-14 12:47:00 PDT
Comment on attachment 236587 [details]
Patch

Clearing flags on attachment: 236587

Committed r172600: <http://trac.webkit.org/changeset/172600>
Comment 4 WebKit Commit Bot 2014-08-14 12:47:03 PDT
All reviewed patches have been landed.  Closing bug.