@@ -12,7 +12,7 @@ Abstract: This module contains the features of CSS level 3 relating to the <<ima
12
12
Issue Tracking : Tracker http://www.w3.org/Style/CSS/Tracker/products/27
13
13
Previous Version : http://www.w3.org/TR/2012/CR-css3-images-20120417/
14
14
Previous Version : http://www.w3.org/TR/2012/WD-css3-images-20120112/
15
- Ignored Terms : <offset>, background positioning area, border image area, <meetorslice>, <ending-shape>, Map, center
15
+ Ignored Terms : <offset>, background positioning area, border image area, <meetorslice>, <ending-shape>, Map, center, content
16
16
Link Defaults : css21 (property) display
17
17
</pre>
18
18
@@ -1885,6 +1885,38 @@ Determing How To Scale an Image: the 'image-rendering' property {#the-image-rend
1885
1885
a user agent might scale images with nearest-neighbor interpolation by default,
1886
1886
and switch to EPX interpolation in low-load situations.
1887
1887
1888
+ <div class='example'>
1889
+ For example, given the following small image:
1890
+
1891
+ <figure>
1892
+ <img src="images/pixel-art-small.png">
1893
+ <figcaption> A small pixel-art image.
1894
+ </figure>
1895
+
1896
+ Scaling it up 3x might look like the following,
1897
+ depending on the value of 'image-rendering' :
1898
+
1899
+ <figure>
1900
+ <img src="images/pixel-art-small.png" width=384>
1901
+ <figcaption> The image scaled with ''image-rendering/auto'' </figcaption>
1902
+ </figure>
1903
+
1904
+ <figure>
1905
+ <img src="images/pixel-art-nn.png">
1906
+ <figcaption> The image scaled with ''pixelated'' </figcaption>
1907
+ </figure>
1908
+
1909
+ <figure>
1910
+ <img src="images/pixel-art-smooth.png">
1911
+ <figcaption>
1912
+ The image scaled with ''crisp-edges'' .<br>
1913
+ <small> (Or it might look like ''pixelated'' ,
1914
+ or as another type of pixel-scaling algorithm,
1915
+ depending on the browser.)</small>
1916
+ </figcaption>
1917
+ </figure>
1918
+ </div>
1919
+
1888
1920
This property previously accepted the values ''optimizeSpeed'' and ''optimizeQuality'' .
1889
1921
These are now deprecated;
1890
1922
a user agent must accept them as valid values
0 commit comments