Skip to content

Commit 45855c2

Browse files
committed
Check all errata applied, update doctype, update feedback to github issues
1 parent 567008b commit 45855c2

File tree

1 file changed

+50
-51
lines changed

1 file changed

+50
-51
lines changed

css-color-3/Overview.src.html

+50-51
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
2-
"http://www.w3.org/TR/1998/REC-html40-19980424/strict.dtd">
1+
<!DOCTYPE html>
32
<html lang="en">
43
<head>
54
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@@ -13,7 +12,7 @@
1312
<link rel="stylesheet" type="text/css" href="../default.css">
1413
<style type="text/css">
1514
.example pre {
16-
background-color: #d5d5d5;
15+
background-color: #d5d5d5;
1716
margin: 1em 1cm;
1817
padding: 0 0.3cm;
1918
}
@@ -70,12 +69,12 @@ <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
7069
<dt>Previous version:</dt>
7170
<dd><a href="https://www.w3.org/TR/2011/REC-css3-color-20110607/">https://www.w3.org/TR/2011/REC-css3-color-20110607/</a></dd>
7271
<dt>Feedback:</dt>
73-
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-color%5D%20feedback"
74-
>www-style@w3.org</a>
75-
with subject line &ldquo;<kbd>[css-color]
76-
<var>&hellip; message topic &hellip;</var></kbd>&rdquo;
77-
(<a rel="discussion" href="http://lists.w3.org/Archives/Public/www-style/"
78-
>archives</a>)
72+
<dd><a href="https://github.com/w3c/csswg-drafts/issues">GitHub Issues</a> are preferred for discussion of this specification.
73+
When filing an issue, please put the text “css-color-3” in the title,
74+
preferably like this:
75+
“[css-color-3] <i>…summary of comment…</i>”.
76+
All issues and comments are <a href="https://lists.w3.org/Archives/Public/public-css-archive/">archived</a>,
77+
and there is also a <a href="https://lists.w3.org/Archives/Public/www-style/">historical archive</a>.
7978
<dt>Editors:</dt>
8079
<dd class="vcard"><span lang="tr" class="fn">Tantek &Ccedil;elik</span>
8180
(<a class="company role url" href="http://tantek.com/">invited expert</a>,
@@ -109,7 +108,7 @@ <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
109108
&lt;<a class="email"
110109
href="mailto:bradp@microsoft.com">bradp@microsoft.com</a>&gt;
111110
</dd>
112-
111+
113112
<dt>Test Suite:</dt>
114113
<dd><a
115114
href="http://test.csswg.org/suites/css3-color/nightly-unstable/">http://test.csswg.org/suites/css3-color/nightly-unstable/</a></dd>
@@ -124,7 +123,7 @@ <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
124123
<h2 class="no-num no-toc" id="abstract">Abstract</h2>
125124

126125
<p>CSS (Cascading Style Sheets) is a language for describing the rendering
127-
of HTML and XML documents on screen, on paper, in speech, etc.
126+
of HTML and XML documents on screen, on paper, in speech, etc.
128127
It uses color-related properties and values to color the
129128
text, backgrounds, borders, and other parts of elements in a document.
130129
This specification describes color values and properties for foreground
@@ -155,14 +154,14 @@ <h2 class="no-num no-toc" id="contents">Table of Contents</h2>
155154

156155
<h2 id="introduction">Introduction</h2>
157156

158-
<p><em>This section is not normative.</em>
157+
<p><em>This section is non-normative.</em>
159158

160159
<p>CSS beyond level 2 is a set of modules, divided up to allow the
161160
specifications to develop incrementally, along with their
162161
implementations. This specification is one of those modules.
163162
</p>
164163
<p>
165-
This module describes CSS properties which allow authors to specify the foreground color and
164+
This module describes CSS properties which allow authors to specify the foreground color and
166165
opacity of an element.
167166
This module also describes in detail the CSS &lt;color&gt; value type.
168167
</p>
@@ -172,9 +171,9 @@ <h2 id="introduction">Introduction</h2>
172171
href="https://www.w3.org/TR/CSS2/">CSS2</a>, but also defines new
173172
properties and values.</p>
174173

175-
<p>The Working Group doesn't expect that all implementations of CSS3 will implement
176-
all properties or values. Instead, there will probably be a small number of variants of CSS3,
177-
so-called "profiles". For example, it may be that only the profile for 32-bit color user agents
174+
<p>The Working Group doesn't expect that all implementations of CSS3 will implement
175+
all properties or values. Instead, there will probably be a small number of variants of CSS3,
176+
so-called "profiles". For example, it may be that only the profile for 32-bit color user agents
178177
will include all of the proposed color-related properties and values.
179178
</p>
180179

@@ -239,16 +238,16 @@ <h3 id="foreground">Foreground color: the 'color' property</h3>
239238
<ul>
240239
<li>The computed value for basic color keywords, RGB hex values and extended color keywords
241240
is the equivalent triplet of numerical RGB values, e.g. <span class="example">six digit hex value or rgb(...) functional value</span>, with an alpha value of 1.
242-
<li>The computed value of the keyword '<span class="index-inst">transparent</span>' is the quadruplet of all zero numerical RGBA values, e.g. <span class="example">rgba(0,0,0,0)</span>.
241+
<li>The computed value of the keyword '<span class="index-inst">transparent</span>' is the quadruplet of all zero numerical RGBA values, e.g. <span class="example">rgba(0,0,0,0)</span>.
243242
<li>For all other values, the computed value is the specified value.
244-
</ul></td>
243+
</ul></td>
245244
</tr>
246245
</tbody>
247246
</table>
248247

249248
<p>This property describes the foreground color of an element's text
250-
content. In addition it is used to provide a potential indirect value
251-
(<a href="#currentcolor" class="index-inst">currentColor</a>) for any <em>other</em> properties that accept color values.
249+
content. In addition it is used to provide a potential indirect value
250+
(<a href="#currentcolor" class="index-inst">currentColor</a>) for any <em>other</em> properties that accept color values.
252251
If the '<span class="index-inst">currentColor</span>' keyword is set on the 'color' property itself, it is treated as ''color: inherit''.
253252
</p>
254253
<p>
@@ -271,9 +270,9 @@ <h3 id="foreground">Foreground color: the 'color' property</h3>
271270
<h3 id="transparency">Transparency: the 'opacity' property</h3>
272271

273272
<p>
274-
Opacity can be thought of as a postprocessing operation.
275-
Conceptually, after the element (including its descendants) is rendered into an RGBA offscreen image,
276-
the opacity setting specifies how to blend the offscreen rendering into
273+
Opacity can be thought of as a postprocessing operation.
274+
Conceptually, after the element (including its descendants) is rendered into an RGBA offscreen image,
275+
the opacity setting specifies how to blend the offscreen rendering into
277276
the current composite rendering.
278277
See <a href="#alpha">simple alpha compositing</a> for details.
279278
</p>
@@ -320,15 +319,15 @@ <h3 id="transparency">Transparency: the 'opacity' property</h3>
320319

321320
<dd>Syntactically a &lt;number&gt;. The uniform opacity setting to be applied across an entire object.
322321
Any values outside the range 0.0 (fully transparent) to 1.0 (fully
323-
opaque) will be clamped to this range.
322+
opaque) will be clamped to this range.
324323
If the object has children,
325324
then the effect is as if the children
326325
were blended against the current background using a mask where the
327326
value of each pixel of the mask is &lt;alphavalue&gt;.
328327
For SVG, &lsquo;has children&rsquo; is equivalent to being a
329328
container element [[SVG11]].
330329
</dd>
331-
330+
332331
</dl>
333332

334333
<p>Since an element with opacity less than 1 is composited from a
@@ -354,7 +353,7 @@ <h3 id="transparency">Transparency: the 'opacity' property</h3>
354353

355354
<h2 id="colorunits">Color units</h2>
356355

357-
<p>A
356+
<p>A
358357
<dfn class="value-def-color" id="valuea-def-color">&lt;color&gt;</dfn>
359358
is either a keyword or a numerical specification.
360359
</p>
@@ -471,9 +470,9 @@ <h4 id="rgba-color">RGBA color values</h4>
471470
</p>
472471
<p> The format of an RGBA value in the functional notation is 'rgba('
473472
followed by a comma-separated list of three numerical values (either
474-
three integer values or three percentage values), followed by an
473+
three integer values or three percentage values), followed by an
475474
<a href="#alphavaluedt" class="index-inst">&lt;alphavalue&gt;</a>, followed by ')'.
476-
The integer value 255 corresponds to 100%, rgba(255,255,255,0.8) = rgba(100%,100%,100%,0.8).
475+
The integer value 255 corresponds to 100%, rgba(255,255,255,0.8) = rgba(100%,100%,100%,0.8).
477476
White space characters are allowed around the numerical values.
478477
</p>
479478

@@ -490,15 +489,15 @@ <h4 id="rgba-color">RGBA color values</h4>
490489
</pre>
491490
</div>
492491

493-
<p class="note"><strong>Note.</strong> If RGBA values are not supported by a user agent,
494-
they should be treated like unrecognized values per the CSS forward compatibility parsing rules ([[!CSS21]], Chapter 4).
492+
<p class="note"><strong>Note.</strong> If RGBA values are not supported by a user agent,
493+
they should be treated like unrecognized values per the CSS forward compatibility parsing rules ([[!CSS21]], Chapter 4).
495494
RGBA values must <em>not</em> be treated as simply an RGB value with the opacity ignored.
496495
</p>
497496

498497

499498
<h4 id="transparent">''transparent'' color keyword</h4>
500499

501-
<p>CSS1 introduced the ''transparent'' value for the background-color property. CSS2 allowed border-color to also accept the ''transparent'' value. The
500+
<p>CSS1 introduced the ''transparent'' value for the background-color property. CSS2 allowed border-color to also accept the ''transparent'' value. The
502501
Open eBook(tm) Publication Structure 1.0.1 [[OEB101]] extended the 'color' property to also accept the ''transparent'' keyword. CSS3 extends the color value to include the ''transparent'' keyword to allow its use with all properties that accept a &lt;color&gt; value. This simplifies the definition of those properties in CSS3.
503502
</p>
504503

@@ -521,13 +520,13 @@ <h4 id="hsl-color">HSL color values</h4>
521520
</li>
522521
</ul>
523522
<p>
524-
There are several other color schemes possible.
525-
Some advantages of HSL are that it is symmetrical to lightness and darkness
526-
(which is not the case with HSV for example), and it is trivial to
523+
There are several other color schemes possible.
524+
Some advantages of HSL are that it is symmetrical to lightness and darkness
525+
(which is not the case with HSV for example), and it is trivial to
527526
convert HSL to RGB.
528527
</p>
529528
<p>
530-
HSL colors are encoding as a triple (hue, saturation, lightness).
529+
HSL colors are encoding as a triple (hue, saturation, lightness).
531530
Hue is represented as an angle of the color circle (i.e. the rainbow
532531
represented in a circle). This angle is so typically measured in degrees that the unit is implicit in CSS; syntactically, only a &lt;number&gt; is given.
533532
By definition red=0=360, and the other colors are spread around the
@@ -541,16 +540,16 @@ <h4 id="hsl-color">HSL color values</h4>
541540
<div class="example"><p style="display:none">Example(s):</p>
542541
<pre>
543542
* { color: hsl(0, 100%, 50%) } /* red */
544-
* { color: hsl(120, 100%, 50%) } /* lime */
545-
* { color: hsl(120, 100%, 25%) } /* dark green */
546-
* { color: hsl(120, 100%, 75%) } /* light green */
543+
* { color: hsl(120, 100%, 50%) } /* lime */
544+
* { color: hsl(120, 100%, 25%) } /* dark green */
545+
* { color: hsl(120, 100%, 75%) } /* light green */
547546
* { color: hsl(120, 75%, 75%) } /* pastel green, and so on */
548547
</pre>
549548
</div>
550549
<p>
551550
The advantage of HSL over RGB is that it is far more intuitive: you
552551
can guess at the colors you want, and then tweak. It is also easier to
553-
create sets of matching colors (by keeping the hue the same and
552+
create sets of matching colors (by keeping the hue the same and
554553
varying the lightness/darkness, and saturation)
555554
</p>
556555

@@ -567,8 +566,8 @@ <h4 id="hsl-color">HSL color values</h4>
567566
values (H, S and L) have been normalized to fractions 0..1:
568567
</p>
569568
<pre class="code">
570-
HOW TO RETURN hsl.to.rgb(h, s, l):
571-
SELECT:
569+
HOW TO RETURN hsl.to.rgb(h, s, l):
570+
SELECT:
572571
l&lt;=0.5: PUT l*(s+1) IN m2
573572
ELSE: PUT l+s-l*s IN m2
574573
PUT l*2-m2 IN m1
@@ -577,7 +576,7 @@ <h4 id="hsl-color">HSL color values</h4>
577576
PUT hue.to.rgb(m1, m2, h-1/3) IN b
578577
RETURN (r, g, b)
579578

580-
HOW TO RETURN hue.to.rgb(m1, m2, h):
579+
HOW TO RETURN hue.to.rgb(m1, m2, h):
581580
IF h&lt;0: PUT h+1 IN h
582581
IF h&gt;1: PUT h-1 IN h
583582
IF h*6&lt;1: RETURN m1+(m2-m1)*h*6
@@ -1512,9 +1511,9 @@ <h3 id="svg-color">Extended color keywords</h3>
15121511

15131512
<h3 id="currentcolor">''currentColor'' color keyword</h3>
15141513

1515-
<p>CSS1 and CSS2 defined the initial value of
1514+
<p>CSS1 and CSS2 defined the initial value of
15161515
<a href="https://www.w3.org/TR/REC-CSS1#border-color">the 'border-color' property</a> to be
1517-
<q cite="https://www.w3.org/TR/REC-CSS1#border-color">the value of the 'color' property</q> but did not define a corresponding keyword. This omission was recognized by SVG, and thus
1516+
<q cite="https://www.w3.org/TR/REC-CSS1#border-color">the value of the 'color' property</q> but did not define a corresponding keyword. This omission was recognized by SVG, and thus
15181517
<a href="https://www.w3.org/TR/SVG/color.html#ColorProperty">SVG 1.0 introduced the ''currentColor'' value</a>
15191518
for the 'fill', 'stroke', 'stop-color', 'flood-color', and 'lighting-color' properties. CSS3 extends the color value to include the ''currentColor'' keyword to allow its use with all properties that accept a &lt;color&gt; value. This simplifies the definition of those properties in CSS3.
15201519
</p>
@@ -1539,7 +1538,7 @@ <h4 id="css2-system">CSS2 system colors</h4>
15391538
System Colors at all.</p>
15401539

15411540
<p>The following lists additional values for color-related CSS
1542-
values and their general meaning. Any color property
1541+
values and their general meaning. Any color property
15431542
can take one of the following names. Although these are case-insensitive, it is
15441543
recommended that the mixed capitalization shown below be used, to
15451544
make the names more legible.</p>
@@ -1618,21 +1617,21 @@ <h4 id="css2-system">CSS2 system colors</h4>
16181617

16191618
<div class="example deprecated-example"><p style="display:none">DEPRECATED EXAMPLE(S):</p><p>
16201619
For example, to set the foreground and background colors of a paragraph
1621-
to the same foreground and background colors of the user's window,
1620+
to the same foreground and background colors of the user's window,
16221621
write the following:
16231622
</p>
16241623
<pre>
16251624
p { color: WindowText; background-color: Window }
16261625
</pre>
16271626
</div>
16281627

1629-
<p class="note"><strong>Note.</strong> The CSS2 System Color values have been deprecated in favor of the CSS3 UI '<a href="https://www.w3.org/TR/css3-ui/#appearance" class="index-inst">appearance</a>' property. If you want to emulate the look of a user interface related element or control, please use the 'appearance' property instead of attempting to mimic a user interface element through a combination of system colors.</p>
1628+
<p class="note"><strong>Note.</strong> The CSS2 System Color values have been deprecated in favor of the CSS3 UI '<a href="https://www.w3.org/TR/css3-ui/#appearance" class="index-inst">appearance</a>' property. If you want to emulate the look of a user interface related element or control, please use the 'appearance' property instead of attempting to mimic a user interface element through a combination of system colors.</p>
16301629

16311630

16321631
<h3 id="notes">Notes on using colors</h3>
16331632

16341633
<p>Although colors can add significant amounts of information to
1635-
document and make them more readable, please consider the
1634+
document and make them more readable, please consider the
16361635
W3C Web Content Accessibility Guidelines [[WCAG20]] when including color in your documents.
16371636
</p>
16381637
<ul>
@@ -1658,14 +1657,14 @@ <h2 id="sample">Sample style sheet for (X)HTML</h2>
16581657
<p>This appendix is informative, not normative. This style sheet could be used by an implementation as part of its default styling of HTML4, XHTML1, XHTML1.1, XHTML Basic, and other XHTML Family documents.</p>
16591658

16601659
<pre>
1661-
html {
1660+
html {
16621661
color: black;
16631662
background: white;
16641663
}
16651664

16661665

16671666
/* traditional desktop user agent colors for hyperlinks */
1668-
:link { color: blue; }
1667+
:link { color: blue; }
16691668
:visited { color: purple; }
16701669

16711670
/* default focus outline */
@@ -1678,7 +1677,7 @@ <h2 id="sample">Sample style sheet for (X)HTML</h2>
16781677

16791678
<h2 id="profiles">Profiles</h2>
16801679

1681-
<p>Each specification using <span class="modulename">CSS3 Color</span> must define the subset of
1680+
<p>Each specification using <span class="modulename">CSS3 Color</span> must define the subset of
16821681
CSS3 Color features it allows and excludes, and describe the local meaning of all the
16831682
components of that subset.
16841683
<p>Non normative examples:

0 commit comments

Comments
 (0)