Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 1.12 KB

File metadata and controls

66 lines (49 loc) · 1.12 KB

media-feature-name-disallowed-list

Specify a list of disallowed media feature names.

@media (min-width: 700px) {}
/**     ↑
 * This media feature name */

The message secondary option can accept the arguments of this rule.

Options

array|string|regex: ["array", "of", "unprefixed", /media-features/, "regex"]|"media-feature"|"/regex/"|/regex/

Given:

["max-width", "/^my-/"]

The following patterns are considered problems:

@media (max-width: 50em) {}
@media (my-width: 50em) {}
@media (max-width < 50em) {}
@media (10em < my-height < 50em) {}

The following patterns are not considered problems:

@media (min-width: 50em) {}
@media print and (min-resolution: 300dpi) {}
@media (min-width >= 50em) {}
@media (10em < width < 50em) {}