-
Notifications
You must be signed in to change notification settings - Fork 708
/
Copy pathOverview.bs
52 lines (43 loc) · 2.01 KB
/
Overview.bs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<pre class='metadata'>
Title: CSS Fonts Module Level 4
Shortname: css-fonts
Level: 1
Status: ED
Work Status: Exploring
Group: CSSWG
ED: https://dev.w3.org/csswg/css-fonts-4/
No Editor: true
Abstract: This is a delta spec over <a href="https://dev.w3.org/csswg/css-fonts-3/">CSS Fonts 3</a>, to hold issues on things we've resolved to add. It's not currently a usable spec.
Warning: not ready
Ignored Terms: font-palette, <named-palette-color>
</pre>
<pre class="link-defaults">
spec:css-color-4; type:property; text:color
</pre>
Introduction {#intro}
=====================
Intro goes here.
<div class="issue">
Resolved at 2015 Sydney to add font-palette control.
<a href="https://lists.w3.org/Archives/Public/www-style/2015Feb/0211.html">Original proposal</a>.
Details: multicolor fonts now exist.
They expose several "palette indexes" that can be given different colors.
They might also expose predefined palettes.
We want to be able to tell the browser to use a predefined palette,
or to provide our own colors for a palette.
Final proposal is:
1. Add a 'font-palette' property. For now the grammar is just:
<pre class=prod><<integer>> | light | dark | <<named-palette-color>#</pre>
with <<integer>> selecting the nth palette in the font,
and ''light'' and ''dark'' selecting the first palette designated "light" or "dark"
(this is metadata that's already part of the format).
If there's any font fallback, the fallback fonts don't use a palette.
2. Add ''@palette-entries'' to ''@font-feature-values'',
with the name of each declaration defining a name for a particular palette color,
and the value being an integer for the index of that palette color.
<<named-palette-color>> is <code><<ident>> <<color>></code>.
Any palette colors not given an explicit value default to value of 'color'
(so by default it just renders solidly with 'color' value, as normal).
If a palette color name occurs more than once, the last one wins
(so you can declare a palette in a variable, and override bits as desired).
</div>