Skip to content

Commit c790f28

Browse files
committed
[css-fonts] Context for resolving override-color colors
Fixes #6680.
1 parent cc730fb commit c790f28

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

css-color-4/Overview.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,14 @@ Representing Colors: the <<color>> type</h2>
399399
Colors in CSS are represented by the <dfn export><<color>></dfn> type:
400400

401401
<pre class='prod'>
402-
&lt;color> = <<hex-color>> | <<named-color>> | currentcolor | transparent |
402+
&lt;color> = <<absolute-color-base>> | currentcolor | <<system-color>> | <<device-cmyk()>>
403+
404+
<dfn>&lt;absolute-color></dfn> = <<absolute-color-base>> | <<absolute-device-cmyk>>
405+
406+
<dfn>&lt;absolute-color-base></dfn> = <<hex-color>> | <<named-color>> | transparent |
403407
<<rgb()>> | <<rgba()>> | <<hsl()>> | <<hsla()>> | <<hwb()>> |
404408
<<lab()>> | <<lch()>> |
405-
<<color()>> | <<device-cmyk()>> |
406-
<<system-color>>
409+
<<color()>>
407410
</pre>
408411

409412
The <dfn export>color-functions</dfn> are <<rgb()>>, <<rgba()>>,
@@ -4288,6 +4291,7 @@ Uncalibrated CMYK Colors: the ''device-cmyk()'' function</h2>
42884291

42894292
<pre class='prod'>
42904293
<dfn>device-cmyk()</dfn> = device-cmyk( <<cmyk-component>>{4} [ / <<alpha-value>> ]? , <<color>>? )
4294+
<dfn>&lt;absolute-device-cmyk></dfn> = device-cmyk( <<cmyk-component>>{4} [ / <<alpha-value>> ]? , <<absolute-color>>? )
42914295
<dfn>&lt;cmyk-component></dfn> = <<number>> | <<percentage>>
42924296
</pre>
42934297

css-fonts-4/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6528,7 +6528,7 @@ Overriding a color from a palette: The 'override-color!!descriptor' descriptor</
65286528

65296529
<pre class='descdef'>
65306530
Name: override-color
6531-
Value: [ [ <<string>> | <<integer>> ] <<color>> ]#
6531+
Value: [ [ <<string>> | <<integer>> ] <<absolute-color>> ]#
65326532
For: @font-palette-values
65336533
Initial: N/A
65346534
</pre>

0 commit comments

Comments
 (0)