W3C home > Mailing lists > Public > public-html@w3.org > September 2013

Re: The picture element: complexity

From: Simon Pieters <simonp@opera.com>
Date: Thu, 12 Sep 2013 16:34:32 +0200
To: "public-html@w3.org" <public-html@w3.org>, "Anselm Hannemann" <info@anselm-hannemann.com>, "Erik Isaksen" <erik_isaksen@hotmail.com>
Message-ID: <op.w3ayru2aidj3kv@simons-macbook-pro.local>
On Thu, 12 Sep 2013 16:16:46 +0200, Erik Isaksen  
<erik_isaksen@hotmail.com> wrote:

> Simon,
>      srcset[x] doesn't seem to follow the same conventions as other  
> attributes. For consistency, what if it worked the same as your mediaset  
> attribute?

I don't follow.

> For example:
>  <img mediaset="(min-width: 45em), (min-width: 18em), all"
>           srcset="(large-1.jpg, med-1.jpg, small-1.jpg), (larse-2.jpg,  
> med-2.jpg, small-2.jpg)"
>           src="small-1.jpg"          alt="Accessible text">

This seems to no longer have the 1x and 2x information. But certainly you  
could put that in the attribute value instead of the attribute name.

Simon Pieters
Opera Software
Received on Thursday, 12 September 2013 14:35:06 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:46:05 UTC