You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| README.md | 5 years ago | |
| index.js | 5 years ago | |
README.md
font-family-no-missing-generic-family-keyword
Disallow missing generic families in lists of font family names.
a { font-family: Arial, sans-serif; }
/** ↑
* An example of generic family name */
The generic font family can be:
- placed anywhere in the font family list
- omitted if a keyword related to property inheritance or a system font is used
This rule checks the font and font-family properties.
Options
true
The following patterns are considered violations:
a { font-family: Helvetica, Arial, Verdana, Tahoma; }
a { font: 1em/1.3 Times; }
The following patterns are not considered violations:
a { font-family: Helvetica, Arial, Verdana, Tahoma, sans-serif; }
a { font: 1em/1.3 Times, serif, Apple Color Emoji; }
a { font: inherit; }
a { font: caption; }
Optional secondary options
ignoreFontFamilies: ["/regex/", /regex/, "string"]
Given:
["custom-font"]
The following pattern is not considered a violation:
a { font-family: custom-font; }
The following pattern is considered a violation:
a { font-family: invalid-custom-font; }