Skip to content

Commit b6487d6

Browse files
committed
Editorial changes from the list.
1 parent c018dbf commit b6487d6

2 files changed

Lines changed: 46 additions & 44 deletions

File tree

css3-images/Overview.html

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

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

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
2020
2012</h2>
2121

2222
<dl>
2323
<dt>This Version:
2424

2525
<dd><a
2626
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>-->
2828

2929

3030
<dt>Latest Version:
@@ -888,22 +888,18 @@ <h2 id=gradients><span class=secno>4. </span> Gradients</h2>
888888

889889
<p>A gradient is an image that smoothly fades from one color to another.
890890
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>&lt;gradient></i></a> is:
895-
896-
<pre class=prod><dfn
897-
id=ltgradient>&lt;gradient></dfn> = [ &lt;linear-gradient> | &lt;radial-gradient> | &lt;repeating-linear-gradient> | &lt;repeating-radial-gradient> ]</pre>
898-
899-
<p>where <a href="#ltlinear-gradient"><i>&lt;linear-gradient></i></a>,
900-
<i>&lt;radial-gradient></i>, <i>&lt;repeating-linear-gradient></i>, and
901-
<i>&lt;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 &lsquo;<code class=property>background-image</code>&rsquo;
906-
or &lsquo;<code class=property>list-style-image</code>&rsquo; 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>&lt;gradient></i></a> is:
895+
896+
<pre class=prod><dfn id=ltgradient>&lt;gradient></dfn> = [
897+
<a
898+
href="#ltlinear-gradient"><i>&lt;linear-gradient></i></a> | <a
899+
href="#ltradial-gradient"><i>&lt;radial-gradient></i></a> |
900+
<a
901+
href="#ltrepeating-linear-gradient"><i>&lt;repeating-linear-gradient></i></a> | <a
902+
href="#ltrepeating-radial-gradient"><i>&lt;repeating-radial-gradient></i></a> ]</pre>
907903

908904
<div class=example>
909905
<p>As with the other <a href="#ltimage"><i>&lt;image></i></a> types
@@ -1116,7 +1112,8 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span>
11161112
<p>The radial gradient syntax is defined as follows:
11171113

11181114
<pre>
1119-
&lt;radial-gradient> = radial-gradient(
1115+
<dfn
1116+
id=ltradial-gradient>&lt;radial-gradient></dfn> = radial-gradient(
11201117
[ [ &lt;shape> || &lt;size> ] [ at &lt;position> ]? , |
11211118
at &lt;position>,
11221119
]?
@@ -1382,13 +1379,14 @@ <h3 id=repeating-gradients><span class=secno>4.3. </span> Repeating
13821379
class=css>repeating-linear-gradient()</code>&rsquo; and &lsquo;<code
13831380
class=css>repeating-radial-gradient()</code>&rsquo; notations</h3>
13841381

1385-
<p>In addition to the &lsquo;<code
1386-
class=css>linear-gradient()</code>&rsquo; and &lsquo;<code
1387-
class=css>radial-gradient()</code>&rsquo; functions, this specification
1388-
defines &lsquo;<code class=css>repeating-linear-gradient()</code>&rsquo;
1389-
and &lsquo;<code class=css>repeating-radial-gradient()</code>&rsquo;
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>&lt;linear-gradient></i></a> and <a
1384+
href="#ltradial-gradient"><i>&lt;radial-gradient></i></a>, this
1385+
specification defines <dfn
1386+
id=ltrepeating-linear-gradient>&lt;repeating-linear-gradient></dfn> and
1387+
<dfn id=ltrepeating-radial-gradient>&lt;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.
13921390

13931391
<p>When rendered, however, the color-stops are repeated infinitely in both
13941392
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
14291427
<p>If the distance between the first and last color-stops is zero (or
14301428
rounds to zero due to implementation limitations), the implementation must
14311429
<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>
14331431
with the same number and color of color-stops, but with the first and last
14341432
color-stop an arbitrary non-zero distance apart, and the remaining
14351433
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
19841982
<dd>
19851983
<p>Set the content's size to the <a
19861984
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
19891987
href="#default-object-size"><i>default object size</i></a> equal to the
19901988
replaced element's used width and height.</p>
19911989

@@ -2830,9 +2828,18 @@ <h2 class=no-num id=index>Index</h2>
28302828
<li>&lt;position>, <a href="#ltposition"
28312829
title="&lt;position>"><strong>4.2.1.</strong></a>
28322830

2831+
<li>&lt;radial-gradient>, <a href="#ltradial-gradient"
2832+
title="&lt;radial-gradient>"><strong>4.2.1.</strong></a>
2833+
28332834
<li>renderer, <a href="#renderer" title=renderer><strong>7.2.</strong></a>
28342835

28352836

2837+
<li>&lt;repeating-linear-gradient>, <a href="#ltrepeating-linear-gradient"
2838+
title="&lt;repeating-linear-gradient>"><strong>4.3.</strong></a>
2839+
2840+
<li>&lt;repeating-radial-gradient>, <a href="#ltrepeating-radial-gradient"
2841+
title="&lt;repeating-radial-gradient>"><strong>4.3.</strong></a>
2842+
28362843
<li>&lt;resolution>, <a href="#ltresolution"
28372844
title="&lt;resolution>"><strong>2.</strong></a>
28382845

css3-images/Overview.src.html

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -489,19 +489,14 @@ <h2 id="gradients">
489489

490490
<p>A gradient is an image that smoothly fades from one color to another. These
491491
are commonly used for subtle shading in background images, buttons, and many
492-
other things. The two functions described in this section allow an author to
492+
other things. The gradient notations described in this section allow an author to
493493
specify such an image in a terse syntax, so that the UA can generate the image
494494
automatically when rendering the page.
495495
The syntax of a <i>&lt;gradient></i> is:</p>
496496

497-
<pre class=prod><dfn>&lt;gradient></dfn> = [ &lt;linear-gradient> | &lt;radial-gradient> | &lt;repeating-linear-gradient> | &lt;repeating-radial-gradient> ]</pre>
498-
499-
<p>where <i>&lt;linear-gradient></i>, <i>&lt;radial-gradient></i>,
500-
<i>&lt;repeating-linear-gradient></i>, and <i>&lt;repeating-radial-gradient></i> are
501-
defined in their applicable sections below.</p>
502-
503-
<p>Gradients are a type of image, and can be used anywhere an image can,
504-
such as in the 'background-image' or 'list-style-image' properties.
497+
<pre class=prod><dfn>&lt;gradient></dfn> = [
498+
<i>&lt;linear-gradient></i> | <i>&lt;radial-gradient></i> |
499+
<i>&lt;repeating-linear-gradient></i> | <i>&lt;repeating-radial-gradient></i> ]</pre>
505500

506501
<div class=example>
507502
<p>As with the other <i>&lt;image></i> types defined in this specification,
@@ -663,7 +658,7 @@ <h4 class='no-toc' id='radial-gradient-syntax'>
663658
<p>The radial gradient syntax is defined as follows:
664659

665660
<pre>
666-
&lt;radial-gradient> = radial-gradient(
661+
<dfn>&lt;radial-gradient></dfn> = radial-gradient(
667662
[ [ &lt;shape> || &lt;size> ] [ at &lt;position> ]? , |
668663
at &lt;position>,
669664
]?
@@ -840,9 +835,9 @@ <h4 class='no-toc' id='radial-gradient-examples'>
840835
<h3 id='repeating-gradients'>
841836
Repeating Gradients: the ''repeating-linear-gradient()'' and ''repeating-radial-gradient()'' notations</h3>
842837

843-
<p>In addition to the ''linear-gradient()'' and ''radial-gradient()'' functions,
844-
this specification defines ''repeating-linear-gradient()'' and
845-
''repeating-radial-gradient()'' functions. These two functions take the
838+
<p>In addition to <i>&lt;linear-gradient></i> and <i>&lt;radial-gradient></i>,
839+
this specification defines <dfn>&lt;repeating-linear-gradient></dfn> and
840+
<dfn>&lt;repeating-radial-gradient></dfn> values. These two notations take the
846841
same values and are interpreted the same as their respective non-repeating
847842
siblings defined previously.</p>
848843

@@ -870,7 +865,7 @@ <h3 id='repeating-gradients'>
870865

871866
<p>If the distance between the first and last color-stops is non-zero, but is small enough that the implementation knows that the physical resolution of the output device is insufficient to faithfully render the gradient, the implementation must <i title="gradient-average-color">find the average color of the gradient</i> and render the gradient as a solid-color image equal to the average color.</p>
872867

873-
<p>If the distance between the first and last color-stops is zero (or rounds to zero due to implementation limitations), the implementation must <i title="gradient-average-color">find the average color</i> of a gradient with the same number and color of color-stops, but with the first and last color-stop an arbitrary non-zero distance apart, and the remaining color-stops equally spaced between them. Then it must render the gradient as a solid-color image equal to that average color.</p>
868+
<p>If the distance between the first and last color-stops is zero (or rounds to zero due to implementation limitations), the implementation must <i title="gradient-average-color">find the average color of a gradient</i> with the same number and color of color-stops, but with the first and last color-stop an arbitrary non-zero distance apart, and the remaining color-stops equally spaced between them. Then it must render the gradient as a solid-color image equal to that average color.</p>
874869

875870
<p>If the height of a repeating radial gradient is zero, or is close enough to zero that the implementation knows that the physical resolution of the output device is insufficient to faithfully render the gradient, the implementation must <i title="gradient-average-color">find the average color of the gradient</i> and render the gradient as a solid-color image equal to the average color.</p>
876871

@@ -1270,7 +1265,7 @@ <h3 id="object-fit">
12701265
<dt>''none''</dt>
12711266
<dd>
12721267
<p>Set the content's size to the <i>concrete object size</i> obtained
1273-
by running the <i title=default-sizing>object sizing algorithm</i> with
1268+
by running the <a href='#default-sizing'>object sizing algorithm</a> with
12741269
no <i>specified size</i>, and a <i>default object size</i> equal to
12751270
the replaced element's used width and height.</p>
12761271
</dd>

0 commit comments

Comments
 (0)