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

[css3-images] `image-resolution: span` and transformations.

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Fri, 01 Feb 2013 14:56:08 +0100
Message-ID: <510BC978.60800@kozea.fr>
To: www-style@w3.org
Hi,

The snap keyword for image-resolution is defined as:

> If the "snap" keyword is provided, the computed <resolution> (if
> any) is the specified resolution rounded to the nearest value that
> would map one image pixel to an integer number of device pixels. If
> the resolution is taken from the image, then the used intrinsic
> resolution is the image's native resolution similarly adjusted.

<resolution> values of image-resolution count image pixels per CSS 
pixels. snap is about image pixel per device pixels. CSS transforms can 
change the ratio between CSS pixels and device pixels[1].

Therefore, should `snap` be affected by transforms? If this is done at 
computed value time, do implementations need to have accumulated 
transformation matrices that early?


[1] Although Im not sure that ratio still makes sense if the 
transformation has any skew component, a rotation component that is not 
a multiple of 90 around the Z axis, or a scale component that does not 
preserve aspect ratios.


-- 
Simon Sapin
Received on Friday, 1 February 2013 13:56:32 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:05 GMT