|
16 | 16 |
|
17 | 17 | <h1>CSS Image Values and Replaced Content Module Level 3</h1> |
18 | 18 |
|
19 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 7 February |
| 19 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 9 February |
20 | 20 | 2012</h2> |
21 | 21 |
|
22 | 22 | <dl> |
23 | 23 | <dt>This Version: |
24 | 24 |
|
25 | 25 | <dd><a |
26 | 26 | href="http://dev.w3.org/csswg/css3-images/">http://dev.w3.org/csswg/css3-images/</a> |
27 | | - <!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-images-20120207/">http://www.w3.org/TR/2012/WD-css3-images-20120207/</a>--> |
| 27 | + <!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-images-20120209/">http://www.w3.org/TR/2012/WD-css3-images-20120209/</a>--> |
28 | 28 |
|
29 | 29 |
|
30 | 30 | <dt>Latest Version: |
@@ -888,22 +888,18 @@ <h2 id=gradients><span class=secno>4. </span> Gradients</h2> |
888 | 888 |
|
889 | 889 | <p>A gradient is an image that smoothly fades from one color to another. |
890 | 890 | These are commonly used for subtle shading in background images, buttons, |
891 | | - and many other things. The two functions described in this section allow |
892 | | - an author to specify such an image in a terse syntax, so that the UA can |
893 | | - generate the image automatically when rendering the page. The syntax of a |
894 | | - <a href="#ltgradient"><i><gradient></i></a> is: |
895 | | - |
896 | | - <pre class=prod><dfn |
897 | | - id=ltgradient><gradient></dfn> = [ <linear-gradient> | <radial-gradient> | <repeating-linear-gradient> | <repeating-radial-gradient> ]</pre> |
898 | | - |
899 | | - <p>where <a href="#ltlinear-gradient"><i><linear-gradient></i></a>, |
900 | | - <i><radial-gradient></i>, <i><repeating-linear-gradient></i>, and |
901 | | - <i><repeating-radial-gradient></i> are defined in their applicable |
902 | | - sections below. |
903 | | - |
904 | | - <p>Gradients are a type of image, and can be used anywhere an image can, |
905 | | - such as in the ‘<code class=property>background-image</code>’ |
906 | | - or ‘<code class=property>list-style-image</code>’ properties. |
| 891 | + and many other things. The gradient notations described in this section |
| 892 | + allow an author to specify such an image in a terse syntax, so that the UA |
| 893 | + can generate the image automatically when rendering the page. The syntax |
| 894 | + of a <a href="#ltgradient"><i><gradient></i></a> is: |
| 895 | + |
| 896 | + <pre class=prod><dfn id=ltgradient><gradient></dfn> = [ |
| 897 | + <a |
| 898 | + href="#ltlinear-gradient"><i><linear-gradient></i></a> | <a |
| 899 | + href="#ltradial-gradient"><i><radial-gradient></i></a> | |
| 900 | + <a |
| 901 | + href="#ltrepeating-linear-gradient"><i><repeating-linear-gradient></i></a> | <a |
| 902 | + href="#ltrepeating-radial-gradient"><i><repeating-radial-gradient></i></a> ]</pre> |
907 | 903 |
|
908 | 904 | <div class=example> |
909 | 905 | <p>As with the other <a href="#ltimage"><i><image></i></a> types |
@@ -1116,7 +1112,8 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span> |
1116 | 1112 | <p>The radial gradient syntax is defined as follows: |
1117 | 1113 |
|
1118 | 1114 | <pre> |
1119 | | -<radial-gradient> = radial-gradient( |
| 1115 | +<dfn |
| 1116 | + id=ltradial-gradient><radial-gradient></dfn> = radial-gradient( |
1120 | 1117 | [ [ <shape> || <size> ] [ at <position> ]? , | |
1121 | 1118 | at <position>, |
1122 | 1119 | ]? |
@@ -1382,13 +1379,14 @@ <h3 id=repeating-gradients><span class=secno>4.3. </span> Repeating |
1382 | 1379 | class=css>repeating-linear-gradient()</code>’ and ‘<code |
1383 | 1380 | class=css>repeating-radial-gradient()</code>’ notations</h3> |
1384 | 1381 |
|
1385 | | - <p>In addition to the ‘<code |
1386 | | - class=css>linear-gradient()</code>’ and ‘<code |
1387 | | - class=css>radial-gradient()</code>’ functions, this specification |
1388 | | - defines ‘<code class=css>repeating-linear-gradient()</code>’ |
1389 | | - and ‘<code class=css>repeating-radial-gradient()</code>’ |
1390 | | - functions. These two functions take the same values and are interpreted |
1391 | | - the same as their respective non-repeating siblings defined previously. |
| 1382 | + <p>In addition to <a |
| 1383 | + href="#ltlinear-gradient"><i><linear-gradient></i></a> and <a |
| 1384 | + href="#ltradial-gradient"><i><radial-gradient></i></a>, this |
| 1385 | + specification defines <dfn |
| 1386 | + id=ltrepeating-linear-gradient><repeating-linear-gradient></dfn> and |
| 1387 | + <dfn id=ltrepeating-radial-gradient><repeating-radial-gradient></dfn> |
| 1388 | + values. These two notations take the same values and are interpreted the |
| 1389 | + same as their respective non-repeating siblings defined previously. |
1392 | 1390 |
|
1393 | 1391 | <p>When rendered, however, the color-stops are repeated infinitely in both |
1394 | 1392 | directions, with their positions shifted by multiples of the difference |
@@ -1429,7 +1427,7 @@ <h3 id=repeating-gradients><span class=secno>4.3. </span> Repeating |
1429 | 1427 | <p>If the distance between the first and last color-stops is zero (or |
1430 | 1428 | rounds to zero due to implementation limitations), the implementation must |
1431 | 1429 | <a href="#find-the-average-color-of-a-gradient"><i |
1432 | | - title=gradient-average-color>find the average color</i></a> of a gradient |
| 1430 | + title=gradient-average-color>find the average color of a gradient</i></a> |
1433 | 1431 | with the same number and color of color-stops, but with the first and last |
1434 | 1432 | color-stop an arbitrary non-zero distance apart, and the remaining |
1435 | 1433 | color-stops equally spaced between them. Then it must render the gradient |
@@ -1984,8 +1982,8 @@ <h3 id=object-fit><span class=secno>5.4. </span> Sizing Objects: the |
1984 | 1982 | <dd> |
1985 | 1983 | <p>Set the content's size to the <a |
1986 | 1984 | href="#concrete-object-size"><i>concrete object size</i></a> obtained by |
1987 | | - running the <i title=default-sizing>object sizing algorithm</i> with no |
1988 | | - <a href="#specified-size"><i>specified size</i></a>, and a <a |
| 1985 | + running the <a href="#default-sizing">object sizing algorithm</a> with |
| 1986 | + no <a href="#specified-size"><i>specified size</i></a>, and a <a |
1989 | 1987 | href="#default-object-size"><i>default object size</i></a> equal to the |
1990 | 1988 | replaced element's used width and height.</p> |
1991 | 1989 |
|
@@ -2830,9 +2828,18 @@ <h2 class=no-num id=index>Index</h2> |
2830 | 2828 | <li><position>, <a href="#ltposition" |
2831 | 2829 | title="<position>"><strong>4.2.1.</strong></a> |
2832 | 2830 |
|
| 2831 | + <li><radial-gradient>, <a href="#ltradial-gradient" |
| 2832 | + title="<radial-gradient>"><strong>4.2.1.</strong></a> |
| 2833 | + |
2833 | 2834 | <li>renderer, <a href="#renderer" title=renderer><strong>7.2.</strong></a> |
2834 | 2835 |
|
2835 | 2836 |
|
| 2837 | + <li><repeating-linear-gradient>, <a href="#ltrepeating-linear-gradient" |
| 2838 | + title="<repeating-linear-gradient>"><strong>4.3.</strong></a> |
| 2839 | + |
| 2840 | + <li><repeating-radial-gradient>, <a href="#ltrepeating-radial-gradient" |
| 2841 | + title="<repeating-radial-gradient>"><strong>4.3.</strong></a> |
| 2842 | + |
2836 | 2843 | <li><resolution>, <a href="#ltresolution" |
2837 | 2844 | title="<resolution>"><strong>2.</strong></a> |
2838 | 2845 |
|
|
0 commit comments