Pattern: Use of non-allowed-listed media feature
Issue: -
This rules enforces a whitelist of allowed media feature names. Caveat: Media feature names within a range context are currently ignored.
array|string|regex
: ["array", "of", "unprefixed", "media-features" or "regex"]|"media-feature"|/regex/
Given:
["max-width", "/^some-/"]
The following patterns are considered violations:
@media (min-width: 50em) {}
@media print and (min-resolution: 300dpi) {}
The following patterns are not considered violations:
@media (max-width: 50em) {}
@media (some-width: 50em) {}