mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 08:52:59 +00:00
1.1 KiB
1.1 KiB
at-rule-property-required-list
Specify a list of required properties for an at-rule.
@font-face { font-display: swap; font-family: 'foo'; }
/** ↑ ↑ ↑
* At-rule and required property names */
The message secondary option can accept the arguments of this rule.
Options
object: { "at-rule-name": ["array", "of", "properties"]|"property" }
Given:
{
"font-face": ["font-display", "font-family", "font-style"]
}
The following patterns are considered problems:
@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 problems:
@font-face {
font-display: swap;
font-family: 'foo';
font-style: normal;
src: url('./fonts/foo.woff2') format('woff2');
}