Skip to content

Commit b73fda0

Browse files
committed
[css-fonts-4] Begin Fonts 4 as a delta spec, to track issues.
1 parent 0df18e3 commit b73fda0

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<pre class='metadata'>
2+
Title: CSS Fonts Module Level 4
3+
Shortname: css-fonts
4+
Level: 1
5+
Status: ED
6+
Group: CSSWG
7+
ED: https://dev.w3.org/csswg/css-fonts-4/
8+
No Editor: true
9+
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.
10+
Warning: not ready
11+
Ignored Terms: font-palette, <named-palette-color>
12+
</pre>
13+
14+
Introduction {#intro}
15+
=====================
16+
17+
Intro goes here.
18+
19+
<div class="issue">
20+
Resolved at 2015 Sydney to add font-palette control.
21+
<a href="https://lists.w3.org/Archives/Public/www-style/2015Feb/0211.html">Original proposal</a>.
22+
Final proposal is:
23+
24+
1. Add a 'font-palette' property. For now the grammar is just:
25+
26+
<pre class=prod><<integer>> | light | dark | <<named-palette-color>#</pre>
27+
28+
with <<integer>> selecting the nth palette in the font,
29+
and ''light'' and ''dark'' selecting the first palette designated "light" or "dark"
30+
(this is metadata that's already part of the format).
31+
If there's any font fallback, the fallback fonts don't use a palette.
32+
2. Add ''@palette-entries'' to ''@font-feature-values'',
33+
with the name of each declaration defining a name for a particular palette color,
34+
and the value being an integer for the index of that palette color.
35+
<<named-palette-color>> is <code><<ident>> <<color>></code>.
36+
Any palette colors not given an explicit value default to opaque black.
37+
If a palette color name occurs more than once, the last one wins
38+
(so you can declare a palette in a variable, and override bits as desired).
39+
</div>

0 commit comments

Comments
 (0)