W3C home > Mailing lists > Public > www-style@w3.org > April 2013

[css-images-4] image-rendering: pixelated, scaling up/down?

From: Simon Sapin <simon.sapin@exyr.org>
Date: Tue, 02 Apr 2013 15:41:34 +0200
Message-ID: <515AE00E.7060807@exyr.org>
To: www-style@w3.org

The spec for the 'pixelated' value of the 'image-rendering' property has 
different text for "When scaling the image up" and "When scaling down". 
How is that defined?

First, should this only apply to raster images, like 'image-resolution'?

Assuming that, I think the distinction of scaling up or down should be 
based on the ratio of image pixels per device pixels, regardless of 
anything measured in CSS units.

Some cases are more tricky:

* What if one dimension is scaled up and the other down? For example a 
100x100 PNG with `width: 200px; height: 50px`.

* What if the overall transform is not axis-aligned? For example a 
rotation angle that is not a multiple of 90 degrees.

Perhaps "When scaling the image up in at least one dimension" is enough.

Simon Sapin
Received on Tuesday, 2 April 2013 13:41:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:10 UTC