- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 24 May 2011 22:43:48 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-images In directory hutz:/tmp/cvs-serv9936 Modified Files: Overview.html Overview.src.html Log Message: Fixed references to <resolution> to specify that vector images have no resolution, and thus tweaking their resolution does nothing. Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css3-images/Overview.html,v retrieving revision 1.103 retrieving revision 1.104 diff -u -d -r1.103 -r1.104 --- Overview.html 24 May 2011 22:31:56 -0000 1.103 +++ Overview.html 24 May 2011 22:43:46 -0000 1.104 @@ -343,15 +343,18 @@ </dl> <p>The <resolution> unit represents the size of a single "dot" of an - image. For raster images, a dot is an image pixel. For vector images, a - dot is a pixel in the outermost coordinate space of the image. A - <resolution> defines how many of these dots fit in a CSS ‘<code + image. For raster images, a dot is an image pixel. A <resolution> + defines how many of these dots fit in a CSS ‘<code class=property>in</code>’, ‘<code class=property>cm</code>’, or ‘<code class=property>px</code>’ so that images can be sized accordingly. - <span class=note>The default resolution of raster images in CSS is - ‘<code class=css>1dppx</code>’, which is equivalent to - ‘<code class=css>96dpi</code>’.</span> + The default resolution of raster images in CSS is ‘<code + class=css>1dppx</code>’, which is equivalent to ‘<code + class=css>96dpi</code>’. The concept of "resolution" does not apply + to vector image formats like SVG; generally, this means that any attempt + to change the resolution of a vector image is simply meaningless. + Individual uses of the <resolution> value define precisely what effects + they have on raster and vector images. <div class=example> <p>Printers tend to have substantially higher resolution than computer @@ -480,18 +483,20 @@ <p>Each <a href="#ltimage-decl"><i><image-decl></i></a> represents the external image referenced by the URI given as the <string> argument. - <p>If a <resolution> is given, the image must be rendered at that - resolution. <span class=note>Recall that the default resolution of images - is ‘<code class=css>1dppx</code>’, so that one image pixel - corresponds to one CSS ‘<code class=css>px</code>’ - unit.</span> If the ‘<code class=css>snap</code>’ keyword is - also specified, and the specified resolution would make one image pixel - larger than one device pixel, the image must be rendered at the specified - resolution, rounded to the nearest value that would map one image pixel to - an integer number of device pixels; if the specified resolution would make - one image pixel smaller than one device pixel, the image must be rendered - at the specified resolution, rounded to the nearest value that would map - an integer number of image pixels to one device pixel. + <p>If the image is a raster image and a <resolution> is given, the image + must be rendered at that resolution. <span class=note>Recall that the + default resolution of raster images is ‘<code + class=css>1dppx</code>’, so that one image pixel corresponds to one + CSS ‘<code class=css>px</code>’ unit.</span> If the + ‘<code class=css>snap</code>’ keyword is also specified, and + the specified resolution would make one image pixel larger than one device + pixel, the image must be rendered at the specified resolution, rounded to + the nearest value that would map one image pixel to an integer number of + device pixels; if the specified resolution would make one image pixel + smaller than one device pixel, the image must be rendered at the specified + resolution, rounded to the nearest value that would map an integer number + of image pixels to one device pixel. If the image is a vector image, + specifying a resolution has no effect. <p>If a directional keyword (‘<code class=css>ltr</code>’ or ‘<code class=css>rtl</code>’) is given, the image itself gains @@ -1745,6 +1750,9 @@ or ‘<code class=css>1dppx</code>’ if none is given. </dl> + <p>This property must have no effect on vector images, as vector images do + not have a concept of "resolution". + <div class=example> <p>This rule specifies that the UA should use the image resolution found in the image itself, falling back to 1 image pixel per CSS ‘<code Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-images/Overview.src.html,v retrieving revision 1.107 retrieving revision 1.108 diff -u -d -r1.107 -r1.108 --- Overview.src.html 24 May 2011 22:31:56 -0000 1.107 +++ Overview.src.html 24 May 2011 22:43:46 -0000 1.108 @@ -150,10 +150,12 @@ </dl> <p>The <resolution> unit represents the size of a single "dot" of an image. For raster images, - a dot is an image pixel. For vector images, a dot is a pixel in the outermost coordinate space of - the image. A <resolution> defines how many of these dots fit in a CSS 'in', 'cm', or 'px' so that - images can be sized accordingly. <span class='note'>The default resolution of raster images in - CSS is ''1dppx'', which is equivalent to ''96dpi''.</span></p> + a dot is an image pixel. A <resolution> defines how many of these dots fit in a CSS 'in', 'cm', or 'px' so that + images can be sized accordingly. The default resolution of raster images in CSS is ''1dppx'', + which is equivalent to ''96dpi''. The concept of "resolution" does not apply to vector image + formats like SVG; generally, this means that any attempt to change the resolution of a vector + image is simply meaningless. Individual uses of the <resolution> value define precisely + what effects they have on raster and vector images.</p> <div class='example'> <p>Printers tend to have substantially higher resolution than computer monitors; due to this, @@ -270,8 +272,9 @@ <p>Each <i><image-decl></i> represents the external image referenced by the URI given as the <string> argument.</p> - <p>If a <resolution> is given, the image must be rendered at that resolution. - <span class='note'>Recall that the default resolution of images is ''1dppx'', + <p>If the image is a raster image and a <resolution> is given, the image + must be rendered at that resolution. + <span class='note'>Recall that the default resolution of raster images is ''1dppx'', so that one image pixel corresponds to one CSS ''px'' unit.</span> If the ''snap'' keyword is also specified, and the specified resolution would make one image pixel larger than one device pixel, the image must be rendered at @@ -279,7 +282,8 @@ pixel to an integer number of device pixels; if the specified resolution would make one image pixel smaller than one device pixel, the image must be rendered at the specified resolution, rounded to the nearest value that would map an - integer number of image pixels to one device pixel.</p> + integer number of image pixels to one device pixel. If the image is a vector + image, specifying a resolution has no effect.</p> <p>If a directional keyword (''ltr'' or ''rtl'') is given, the image itself gains that directionality. If the image is used in a property on an element @@ -1314,6 +1318,9 @@ value is used, or ''1dppx'' if none is given.</dd> </dl> + <p>This property must have no effect on vector images, as vector images + do not have a concept of "resolution".</p> + <div class="example"> <p>This rule specifies that the UA should use the image resolution found in the image itself, falling back to 1 image pixel per CSS
Received on Tuesday, 24 May 2011 22:43:49 UTC