Skip to content

Commit f5059de

Browse files
committed
Renamed 'optimize-contrast' to 'crisp-edges' to match the Moz keyword, as an impl reported that they were confused by the name.
1 parent cf744ec commit f5059de

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

css3-images/Overview.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<h1>CSS Image Values and Replaced Content Module Level 3</h1>
1717

18-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 2 May 2011</h2>
18+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 3 May 2011</h2>
1919

2020
<dl>
2121
<dt>Latest Version:
@@ -1822,7 +1822,7 @@ <h2 id=image-rendering><span class=secno>9. </span> Determining How to
18221822
<tr>
18231823
<th>Value:
18241824

1825-
<td>auto | optimize-contrast
1825+
<td>auto | crisp-edges
18261826

18271827
<tr>
18281828
<th>Initial:
@@ -1871,24 +1871,23 @@ <h2 id=image-rendering><span class=secno>9. </span> Determining How to
18711871
such as bilinear interpolation. This is intended for images such as
18721872
photos.
18731873

1874-
<dt>optimize-contrast
1874+
<dt>crisp-edges
18751875

1876-
<dd>The image should be scaled with an algorithm that maximizes the
1877-
contrast of the image, preserving sharp lines and not smoothing colors or
1878-
introducing blur to the image in the process. This is intended for images
1879-
such as pixel art.
1876+
<dd>The image must be scaled with an algorithm that preserves contrast and
1877+
edges in the image, and which does not smooth colors or introduce blur to
1878+
the image in the process. This is intended for images such as pixel art.
18801879
</dl>
18811880

18821881
<p>This property does <em>not</em> dictate any particular scaling algorithm
18831882
to be used. For example, with &lsquo;<code
1884-
class=css>image-rendering:auto</code>&rsquo;, a user agent may scale
1883+
class=css>image-rendering:auto</code>&rsquo;, a user agent might scale
18851884
images with bilinear interpolation by default, switch to nearest-neighbor
18861885
interpolation in high-load situations, and switch to a high-quality
18871886
scaling algorithm like Lanczos interpolation for static images that aren't
18881887
moving or changing. Similarly, with &lsquo;<code
1889-
class=css>image-rendering:optimize-contrast</code>&rsquo;, a user agent
1890-
may scale images with nearest-neighbor interpolation by default, and
1891-
switch to EPX interpolation in low-load situations.
1888+
class=css>image-rendering:crisp-edges</code>&rsquo;, a user agent might
1889+
scale images with nearest-neighbor interpolation by default, and switch to
1890+
EPX interpolation in low-load situations.
18921891

18931892
<p>This property previously accepted the values &lsquo;<code
18941893
class=css>optimizeSpeed</code>&rsquo; and &lsquo;<code

css3-images/Overview.src.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ <h2 id='image-rendering'>
13811381
<td><dfn>image-rendering</dfn>
13821382
<tr>
13831383
<th>Value:
1384-
<td>auto | optimize-contrast
1384+
<td>auto | crisp-edges
13851385
<tr>
13861386
<th>Initial:
13871387
<td>auto
@@ -1414,20 +1414,20 @@ <h2 id='image-rendering'>
14141414
colors are acceptable, such as bilinear interpolation. This is intended
14151415
for images such as photos.</dd>
14161416

1417-
<dt>optimize-contrast</dt>
1418-
<dd>The image should be scaled with an algorithm that maximizes the contrast
1419-
of the image, preserving sharp lines and not smoothing colors or introducing
1420-
blur to the image in the process. This is intended for images such as
1421-
pixel art.</dd>
1417+
<dt>crisp-edges</dt>
1418+
<dd>The image must be scaled with an algorithm that preserves contrast
1419+
and edges in the image, and which does not smooth colors or introduce
1420+
blur to the image in the process. This is intended for images such as pixel
1421+
art.</dd>
14221422
</dl>
14231423

14241424
<p>This property does <em>not</em> dictate any particular scaling algorithm
1425-
to be used. For example, with ''image-rendering:auto'', a user agent may
1425+
to be used. For example, with ''image-rendering:auto'', a user agent might
14261426
scale images with bilinear interpolation by default, switch to nearest-neighbor
14271427
interpolation in high-load situations, and switch to a high-quality scaling
14281428
algorithm like Lanczos interpolation for static images that aren't moving
1429-
or changing. Similarly, with ''image-rendering:optimize-contrast'', a user
1430-
agent may scale images with nearest-neighbor interpolation by default, and
1429+
or changing. Similarly, with ''image-rendering:crisp-edges'', a user
1430+
agent might scale images with nearest-neighbor interpolation by default, and
14311431
switch to EPX interpolation in low-load situations.</p>
14321432

14331433
<p>This property previously accepted the values ''optimizeSpeed'' and

0 commit comments

Comments
 (0)