W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css4-images] The image-set() function (for responsive images)

From: Edward O'Connor <eoconnor@apple.com>
Date: Tue, 28 Feb 2012 14:16:28 -0800
To: www-style@w3.org
Message-id: <m2obsipps3.fsf@eoconnor.apple.com>
Hi Tab,

You wrote:

> Why not make the ordering matter? If you just write the sources in
> decreasing dpi order, you can still just pick the first one you can
> successfully render.

But "the first one you can successfully render" isn't what image-set()
is about. The author really doesn't know which asset would be best—that
depends on a variety of factors. It might even differ in the same UA on
the same device (e.g. asset choice based on current page zoom). Asset
choice based on a scale factor isn't (solely) about device resolution
and, well, bigger isn't always better.

This is really different from image()'s directionality annotations.
Directionality annotations don't affect which asset you choose, they
only affect whether or not you flip the asset after you've chosen it.

Received on Tuesday, 28 February 2012 22:23:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:12 UTC