Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
index.js | 2 years ago |
Deprecated: Instead use the at-rule-property-required-list
rule.
Specify a list of required properties for an at-rule.
@font-face { font-display: swap; font-family: 'foo'; }
/** ↑ ↑ ↑
* At-rule and required property names */
object
: { "at-rule-name": ["array", "of", "properties"] }
Given:
{
"font-face": ["font-display", "font-family", "font-style"]
}
The following patterns are considered violations:
@font-face {
font-family: 'foo';
src: url('./fonts/foo.woff2') format('woff2');
}
@font-face {
font-family: 'foo';
font-style: normal;
src: url('./fonts/foo.woff2') format('woff2');
}
The following patterns are not considered violations:
@font-face {
font-display: swap;
font-family: 'foo';
font-style: normal;
src: url('./fonts/foo.woff2') format('woff2');
}