Skip to content

Commit 69f7f7a

Browse files
committed
[css-fonts-4] Correct and autolink syntax of generic-family, fix w3c#10551
1 parent 0ac5d9d commit 69f7f7a

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Font family: the 'font-family!!property' property</h3>
218218

219219
This might be a locally-instaled font, or might be a web font.
220220

221-
<dt><dfn id="generic-family-value"><<generic-family>></dfn>
221+
<dt><<generic-family>>
222222
<dd>
223223
Each <<generic-family>> keyword represents
224224
a generic font choice,
@@ -367,11 +367,23 @@ Syntax of <<family-name>>
367367
Syntax of <<generic-family>>
368368
</h4>
369369

370-
<pre class=prod><l><<generic-family>></l> = generic( <<custom-ident>>+ ) | <<string>> | <<custom-ident>>+</pre>
370+
<!-- <pre class=prod>
371+
<dfn><<generic-family>></dfn> = generic(<<generic-script-specific>>) | <<generic-complete>> | <<generic-incomplete>>`
372+
<dfn><<generic-script-specific>></dfn> = <a href="">kai</a> | fangsong | nastaliq
373+
<dfn><<generic-complete>></dfn> = serif | sans-serif | system-ui | cursive | fantasy | math
374+
<dfn><<generic-incomplete>></dfn> = ui-serif | ui-sans-serif | ui-monospace | ui-rounded
375+
</pre> -->
376+
377+
<pre class=prod>
378+
<dfn><<generic-family>></dfn> = <<generic-script-specific>>| <<generic-complete>> | <<generic-incomplete>>`
379+
<dfn><<generic-script-specific>></dfn> = ''generic(kai)'' | ''generic(fangsong)'' | ''generic(nastaliq)''
380+
<dfn><<generic-complete>></dfn> = ''serif'' | ''sans-serif'' | ''system-ui'' | ''cursive'' | ''fantasy'' | ''math''
381+
<dfn><<generic-incomplete>></dfn> = ''ui-serif'' | ''ui-sans-serif'' | ''ui-monospace'' | ''ui-rounded''
382+
</pre>
371383

372-
<div class="example" id="ex-generic-functional">
373-
More recently defined generic font families are identified using a functional syntax:
384+
To make the syntax less succeptible to clashes, more recently defined generic font families are identified using a functional syntax.
374385

386+
<div class="example" id="ex-generic-functional">
375387
<pre>
376388
body { font-family: "Adobe Fangsong Std R", generic(fangsong), serif}
377389
</pre>

0 commit comments

Comments
 (0)