Skip to content

Commit a95c382

Browse files
committed
[css-fonts] [palettes] Remove the <string> values from override-color and base-palette
Fixes w3c#6627.
1 parent 30a8bbf commit a95c382

1 file changed

Lines changed: 7 additions & 21 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6465,7 +6465,7 @@ Specifying the base palette: the 'base-palette' descriptor</h4>
64656465

64666466
<pre class='descdef'>
64676467
Name: base-palette
6468-
Value: light | dark | <<integer [0, ∞]>> | <<string>>
6468+
Value: light | dark | <<integer [0, ∞]>>
64696469
For: @font-palette-values
64706470
Initial: N/A
64716471
</pre>
@@ -6495,11 +6495,6 @@ Specifying the base palette: the 'base-palette' descriptor</h4>
64956495
<dd>
64966496
Identifies a (zero-based) numerical palette index within the font.
64976497

6498-
6499-
<dt><dfn type><<string>></dfn>
6500-
<dd>
6501-
Identifies a named palette within the font.
6502-
65036498
</dl>
65046499

65056500
<div class="example">
@@ -6508,11 +6503,11 @@ Specifying the base palette: the 'base-palette' descriptor</h4>
65086503
<pre>
65096504
@font-palette-values Festival {
65106505
font-family: Banner Flag;
6511-
base-palette: 'Dark';
6506+
base-palette: 1;
65126507
override-colors:
6513-
'Outline' rgb(123, 64, 27),
6514-
'Base Glyph' currentColor,
6515-
'Glints' var(--highlight);
6508+
0 rgb(123, 64, 27),
6509+
1 currentColor,
6510+
2 var(--highlight);
65166511
}
65176512
</pre>
65186513
</div>
@@ -6546,16 +6541,12 @@ Specifying the base palette: the 'base-palette' descriptor</h4>
65466541
Colors in the palette can be overridden
65476542
by using the 'override-color!!descriptor' descriptor in the ''@font-palette-values'' rule.
65486543

6549-
Strings specified in the value of this descriptor
6550-
are matched
6551-
according to [[#localized-name-matching]].
6552-
65536544
<h4 id="override-color">
65546545
Overriding a colors from a palette: The 'override-colors!!descriptor' descriptor</h4>
65556546

65566547
<pre class='descdef'>
65576548
Name: override-colors
6558-
Value: [ [ <<string>> | <<integer [0, ∞]>> ] <<absolute-color>> ]#
6549+
Value: [ <<integer [0, ∞]>> <<absolute-color>> ]#
65596550
For: @font-palette-values
65606551
Initial: N/A
65616552
</pre>
@@ -6574,12 +6565,7 @@ Overriding a colors from a palette: The 'override-colors!!descriptor' descriptor
65746565

65756566
Palette index entries
65766567
in the ''@font-palette-values/override-colors'' descriptor
6577-
are either a (zero-based) palette index entry, or
6578-
a string, which corresponds to a named palette entry
6579-
in the selected palette.
6580-
6581-
Strings specified in the value of this descriptor
6582-
are matched according to [[#localized-name-matching]].
6568+
are a (zero-based) palette index entry.
65836569

65846570
Integer values are zero-indexed.
65856571

0 commit comments

Comments
 (0)