W3C home > Mailing lists > Public > www-style@w3.org > May 2011

[css3-images] Aligning the functionality of 'image-resolution' and image()

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 27 May 2011 14:34:25 -0700
Message-ID: <BANLkTi=yvCDQ=sOpiFDA1FLJHFuqm9Zuvw@mail.gmail.com>
To: www-style list <www-style@w3.org>
The Image Values spec defines two ways to adjust the resolution of an image.

The first, the 'image-resolution' property, can either set the
resolution explicitly, or automatically draw the resolution from the
image's metadata (with a fallback if the image doesn't specify a
resolution in its metadata).

The second, the image() function, can set the resolution explicitly,
and further optionally tell the browser to round the stated resolution
to the nearest value that makes the ratio of image pixels to CSS px be
integral.

Obviously, there's a mismatch in functionality here.  It would be
useful to have the 'snap' functionality in 'image-resolution', and to
have the "use whatever the image says" functionality in image().

I'd like to unify the two syntaxes.  Thoughts or objections?

~TJ
Received on Friday, 27 May 2011 21:36:57 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:40 GMT