Bug 20176 - Syntax only supports 'mobile first'
Summary: Syntax only supports 'mobile first'
Alias: None
Product: HTML WG
Classification: Unclassified
Component: The srcset attribute (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Edward O'Connor
QA Contact: HTML WG Bugzilla archive list
Depends on:
Blocks: 20212
  Show dependency treegraph
Reported: 2012-11-30 15:20 UTC by Marcos Caceres
Modified: 2014-05-08 20:20 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Caceres 2012-11-30 15:20:51 UTC
The img@srcset does not afford developers the ability to define the breakpoints for images as either minimum values (mobile first) or maximum values (desktop first) to match the media queries used in their design.

See: “Secret src” http://adactio.com/journal/5474/
Comment 1 Mat Marquis 2013-01-21 17:49:50 UTC
Commenting per the HTML WG’s request[1]:

This bug would be addressed by the proposed `picture` extension specification: See: http://picture.responsiveimages.org/#relationship-to-srcset

Further discussion is available in the WHATWG clone of this bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=20212

1: http://lists.w3.org/Archives/Public/public-html-wg-announce/2013JanMar/0006.html
Comment 2 Edward O'Connor 2014-05-08 20:20:06 UTC
The two alternatives are mathematically equivalent, and because of this everyone agrees that it's *possible* to express either a "mobile first" or "desktop first" set of breakpoints. Given this, I think the complexity costs of adding syntax to improve the "desktop first" case outweigh the benefits.