2013-04-02 13:41:34 UTC
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.