|
|
2 yıl önce | |
|---|---|---|
| .. | ||
| README.md | 2 yıl önce | |
| index.js | 2 yıl önce | |
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:
This rule checks the font and font-family properties.
trueThe 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; }
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; }