Skip to content

Commit

Permalink
[css-fonts-4] Define src with <font-src-list>
Browse files Browse the repository at this point in the history
  • Loading branch information
cdoublev authored and svgeesus committed Sep 22, 2023
1 parent 7215518 commit 1bf759c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions css-fonts-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,7 @@ The <dfn id="at-font-face-rule">''@font-face''</dfn> rule</h3>

<pre class='descdef'>
Name: src
Value: see prose
Value: <<font-src-list>>
For: @font-face
Initial: N/A
</pre>
Expand Down Expand Up @@ -2469,12 +2469,9 @@ The <dfn id="at-font-face-rule">''@font-face''</dfn> rule</h3>

<h4 id="font-face-src-parsing">Parsing the 'src!!descriptor' descriptor</h4>

The 'src!!descriptor' descriptor value must be parsed
according to section [[css-syntax#parse-comma-separated-list-of-component-values]].
Then each component value is parsed according to this grammar:
To parse a <dfn><<font-src-list>></dfn> production, [=parse a list=] of <<font-src>>s.


<pre><<url>> [ format(<<font-format>>)]? [ tech( <<font-tech>>#)]? | local(<<family-name>>)</pre>
<pre class="prod"><dfn>&lt;font-src></dfn> = <<url>> [ format(<<font-format>>)]? [ tech( <<font-tech>>#)]? | local(<<family-name>>)</pre>

<pre class="prod"><dfn id="font-format-values">&lt;font-format&gt;</dfn>
= [<<string>> | collection | embedded-opentype | opentype
Expand Down

0 comments on commit 1bf759c

Please sign in to comment.