- From: Mark Simon <mark@manngo.net>
- Date: Fri, 17 Jul 2015 13:35:46 +1000
- To: public-html@w3.org
- Message-ID: <55A87812.80604@manngo.net>
I am mulling over the srcset attribute, which for many developers in
responsive design is the answer to a prayer.
However, there is one part of the specification which has me befuddled:
An image candidate string consists of the following components, in order, with the further restrictions described below this list:
…
Zero or one of the following:
A width descriptor, …
A pixel density descriptor, …
As far as I can tell, this means that you can specify the width or the
density, but not both. I cannot see the benefit of this restriction, and
I can suggest that it renders the specification less than complete.
For example, four candidate devices: an old iPhone, a newer (retina
screen) iPhone, and older MacBook, a newer (retina screen) MacBook. It
seems that it is not possible to distinguish between all four devices
individually, and so one or more of them will need to render a
non-optimal image.
I would like to propose an amendment to the specification to read:
Zero*, one or two* of the following:
This would allow the specification of both the width and the density,
and allow the developer more flexibility in responding to various screen
properties.
Best Regards,
Mark
--
Mark Simon
Manngo Net Pty Ltd
mobile:0411 246 672
email:mark@manngo.net <mailto:mark@comparity.net> web:http://www.manngo.net
Resume:http://mark.manngo.net
Received on Friday, 17 July 2015 12:21:40 UTC