Skip to content

Commit ccbeef7

Browse files
committed
[css-color-4] Consolidated the resolution of system colors and deprecated system colors #13450
1 parent f91ef82 commit ccbeef7

1 file changed

Lines changed: 22 additions & 12 deletions

File tree

css-color-4/Overview.bs

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6535,16 +6535,13 @@ Resolving sRGB values</h3>
65356535
* ''hsl()'' and ''hsla()'' values
65366536
* ''hwb()'' values
65376537
* [=named colors=]
6538-
* [=system colors=]
6539-
* <a href="#deprecated-system-colors">deprecated-colors</a>
65406538

65416539
It does <em>not</em> apply to:
65426540

65436541
* ''color()'' values using the ''srgb'' or ''srgb-linear'' [=color space=]s.
65446542

65456543
If the sRGB color was explicitly specified by the author as a [=named color=],
6546-
or as a [=system color=],
6547-
the [=declared value=] is that named or system color, converted to
6544+
the [=declared value=] is that named color, converted to
65486545
<a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a>.
65496546
The computed and used value
65506547
is the corresponding sRGB color,
@@ -6729,19 +6726,29 @@ Resolving values of the ''color()'' function</h3>
67296726

67306727
<h3 id="resolving-other-colors">Resolving other colors</h3>
67316728

6732-
This applies to [=system colors=]
6733-
(including the <<deprecated-color>>s),
6734-
''transparent'',
6735-
and ''color>/currentcolor''.
6729+
This applies to
6730+
6731+
* [=system colors=],
6732+
* <a href="#deprecated-system-colors">deprecated system colors</a>
6733+
* ''transparent''
6734+
* ''color>/currentcolor''.
6735+
6736+
If the color was explicitly specified by the author
6737+
as a [=system colors=]
6738+
or deprecated system color,
6739+
the [=declared value=] is itself, converted to
6740+
<a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a>.
67366741

6737-
The declared value for each <<system-color>> keyword
6738-
and <<deprecated-color>> keyword
6739-
is itself.
6740-
The computed value
6742+
The computed and used value
67416743
is the corresponding color in its color space.
6744+
paired with the specified alpha component
6745+
(after clamping to [0, 1])
6746+
and defaulting to opaque if unspecified).
6747+
67426748
However, such colors must not be altered by
67436749
[=forced colors mode=].
67446750

6751+
67456752
<div class="example" id="ex-system-resolve">
67466753
For example, in this html:
67476754

@@ -8240,6 +8247,9 @@ Changes</h2>
82408247
<a href="https://www.w3.org/TR/2025/CRD-css-color-4-20250424/">Candidate Recommendation Draft of 24 April 2025</a></h3>
82418248

82428249
<ul>
8250+
<li>Consolidated the resolution of system colors and deprecated system colors
8251+
(<a href="https://github.com/w3c/csswg-drafts/issues/13450">Issue 13450</a>)
8252+
</li>
82438253
<li>Clarified carry-forward in color interpolation
82448254
(<a href="https://github.com/w3c/csswg-drafts/issues/14134">Issue 14134</a>)
82458255
</li>

0 commit comments

Comments
 (0)