You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p> Some operations work differently on <dfndata-dfn-type=dfndata-export="" id=achromatic>achromatic<aclass=self-linkhref=#achromatic></a></dfn> colors.
268
269
An <adata-link-type=dfnhref=#achromatictitle=achromatic>achromatic</a> color is a shade of gray:
For example, the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-text-decor-3/#text-emphasis-colortitle=text-emphasis-color>text-emphasis-color</a> property <adata-biblio-type=informativedata-link-type=bibliohref=#css3-text-decortitle=css3-text-decor>[CSS3-TEXT-DECOR]</a>,
780
+
For example, the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-text-decor-3/#propdef-text-emphasis-colortitle=text-emphasis-color>text-emphasis-color</a> property <adata-biblio-type=informativedata-link-type=bibliohref=#css3-text-decortitle=css3-text-decor>[CSS3-TEXT-DECOR]</a>,
780
781
whose initial value is <aclass=cssdata-link-type=maybehref=#valuedef-currentcolortitle=currentcolor>currentcolor</a>,
781
782
by default matches the text color
782
783
even as the <aclass=propertydata-link-type=propdeschref=#propdef-colortitle=color>color</a> property changes across elements.
<p><spanclass=cssdata-link-type=maybetitle=gray(a)>gray(A)</span> represents the same color as <spanclass=cssdata-link-type=maybetitle=rgb(a,a,a)>rgb(A,A,A)</span>.
1739
1740
<spanclass=cssdata-link-type=maybetitle=gray(a,b)>gray(A,B)</span> represents the same color as <spanclass=cssdata-link-type=maybetitle=rgb(a,a,a,b)>rgb(A,A,A,B)</span>.
(<spanclass=cssdata-link-type=maybetitle="hsl(120deg, 20%, 56%)">hsl(120deg, 20%, 56%)</span>, slightly lighter and brighter than the original color, which is what was intended).
Appendix A: Deprecated CSS System Colors</span><aclass=self-linkhref=#system-colors></a></h2>
2435
2436
2436
2437
<p> Earlier versions of CSS defined several additional named color keywords,
2438
+
the <dfnclass=css-codedata-dfn-type=typedata-export="" id=typedef-deprecated-system-color><deprecated-system-color><aclass=self-linkhref=#typedef-deprecated-system-color></a></dfn>s,
2437
2439
which were meant to take their value from operating system themes.
2438
2440
These color names have been <strong>deprecated</strong>, however,
2439
2441
as they are insufficient for their original purpose
<divdata-fill-with=normative-references><dl><dtid=css21title=CSS21><aclass=self-linkhref=#css21></a>[CSS21]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dtid=rfc2119title=RFC2119><aclass=self-linkhref=#rfc2119></a>[RFC2119]<dd>S. Bradner. <ahref=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <ahref=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a><dtid=srgbtitle=SRGB><aclass=self-linkhref=#srgb></a>[SRGB]<dd>???. <ahref="http://www.iec.ch/nr1899.htm ">Multimedia systems and equipment - Colour measurement and management - Part 2-1: Colour management - Default RGB colour space - sRGB</a>. as amended by Amendment A1:2003. URL: <ahref="http://www.iec.ch/nr1899.htm ">http://www.iec.ch/nr1899.htm </a><dtid=svg11title=SVG11><aclass=self-linkhref=#svg11></a>[SVG11]<dd>Erik Dahlström; et al. <ahref=http://www.w3.org/TR/2011/REC-SVG11-20110816/>Scalable Vector Graphics (SVG) 1.1 (Second Edition)</a>. 16 August 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-SVG11-20110816/>http://www.w3.org/TR/2011/REC-SVG11-20110816/</a></dl></div>
2715
+
<divdata-fill-with=normative-references><dl><dtid=css21title=CSS21><aclass=self-linkhref=#css21></a>[CSS21]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dtid=rfc2119title=RFC2119><aclass=self-linkhref=#rfc2119></a>[RFC2119]<dd>S. Bradner. <ahref=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <ahref=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a><dtid=srgbtitle=SRGB><aclass=self-linkhref=#srgb></a>[SRGB]<dd>???. <ahref=http://www.iec.ch/nr1899.htm>Multimedia systems and equipment - Colour measurement and management - Part 2-1: Colour management - Default RGB colour space - sRGB</a>. as amended by Amendment A1:2003. URL: <ahref=http://www.iec.ch/nr1899.htm>http://www.iec.ch/nr1899.htm</a><dtid=svg11title=SVG11><aclass=self-linkhref=#svg11></a>[SVG11]<dd>Erik Dahlström; et al. <ahref=http://www.w3.org/TR/2011/REC-SVG11-20110816/>Scalable Vector Graphics (SVG) 1.1 (Second Edition)</a>. 16 August 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-SVG11-20110816/>http://www.w3.org/TR/2011/REC-SVG11-20110816/</a></dl></div>
<tr><thscope=row><adata-property="">color</a><td><color><td>UA-defined, see prose<td>all elements<td>yes<td>N/A<td>visual<td>an RGBA color
2938
-
<tr><thscope=row><adata-property="">opacity</a><td><alpha-value><td>1<td>all elements<td>no<td>N/A<td>visual<td>The specified value, clamped to the range [0,1].
<tr><thscope=row><aclass=css-codedata-link-type=propertyhref=#propdef-colortitle=color>color</a><td><color><td>UA-defined, see prose<td>all elements<td>yes<td>N/A<td>visual<td>an RGBA color
2941
+
<tr><thscope=row><aclass=css-codedata-link-type=propertyhref=#propdef-opacitytitle=opacity>opacity</a><td><alpha-value><td>1<td>all elements<td>no<td>N/A<td>visual<td>The specified value, clamped to the range [0,1].
0 commit comments