Bug 135935 - srcset with w descriptor and sizes does not behave as expected
Summary: srcset with w descriptor and sizes does not behave as expected
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad Other
: P2 Normal
Assignee: Nobody
URL: http://software.hixie.ch/utilities/js...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-08-14 04:47 PDT by Simon Pieters (:zcorpan)
Modified: 2014-08-14 12:47 PDT (History)
8 users (show)

See Also:


Attachments
Patch (2.81 KB, patch)
2014-08-14 06:18 PDT, Yoav Weiss
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.