W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2012

Re: [whatwg] The <pic> element

From: Aaron Gustafson <aaron@easy-designs.net>
Date: Fri, 1 Jun 2012 15:19:47 -0400
Message-ID: <CALWPYzE9CH-fRQyVFOSEq5pF_2zRSq958K7BuwmyjV8g6gDUmQ@mail.gmail.com>
To: whatwg@lists.whatwg.org
On Fri, Jun 1, 2012 at 3:05 PM,  <whatwg-request@lists.whatwg.org> wrote:

>> Why won't you do this with separate attributes?
>> Of course this is much shorter to write but it confuses the masses of developers because this is not a familiar HTML/CSS-pattern.
>> I would like to see it this style which is much more common:
>> <pic src-xs="small.jpg" media-xs="(max-width:15em)" src-xl="large.jpg" alt="alt text" title="title text"></pic>
> I don't mind either way, but this seems a bit more noisier and less compact.
> <source> can be an option for authors who prefer separate attributes.

I’m still digesting the overall proposal, but regarding the media-*
and src-* attributes, my main concern would be limiting ourselves by
prescribing a set number of sizes (e.g. "small," "medium," and
"large") when in reality there may be more nuance in art direction
than that. might accommodate.



Aaron Gustafson
Received on Friday, 1 June 2012 19:20:38 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC