File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -2708,14 +2708,20 @@ or font format.
2708
2708
within a larger family.
2709
2709
The name can optionally be enclosed in quotes.
2710
2710
If unquoted,
2711
- the unquoted font family name processing conventions apply;
2711
+ the <a href="#family-name-syntax">unquoted font family name processing conventions</a> apply;
2712
+ in other words,
2712
2713
the name must be a sequence of identifiers
2713
2714
separated by <a href="https://www.w3.org/TR/css3-syntax/#whitespace">whitespace</a>
2714
2715
which is converted to a string
2715
2716
by joining the identifiers together
2716
- separated by a single space.
2717
+ separated by a single space;
2718
+ and thus,
2719
+ <a>CSS-wide keywords</a> such as ''inherit'' , and
2720
+ <<generic-family>> keywords such as ''serif''
2721
+ are not allowed inside <code> local()</code> .
2717
2722
2718
- <pre>
2723
+
2724
+ <pre class="lang-css">
2719
2725
/* regular face of Gentium */
2720
2726
@font-face {
2721
2727
font-family: MyGentium;
@@ -2724,6 +2730,17 @@ or font format.
2724
2730
}
2725
2731
</pre>
2726
2732
2733
+ <div class="invalid example">
2734
+ For example, this use of <code> local()</code> would be an error:
2735
+
2736
+ <pre class="lang-css">
2737
+ @font-face {
2738
+ font-family: foo;
2739
+ src: local(inherit);
2740
+ }
2741
+ </pre>
2742
+ </div>
2743
+
2727
2744
For OpenType and TrueType fonts,
2728
2745
this string is used to match only the Postscript name
2729
2746
or the full font name
You can’t perform that action at this time.
0 commit comments