Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 661 Bytes

File metadata and controls

41 lines (28 loc) · 661 Bytes

media-feature-name-blacklist

Specify a blacklist of disallowed media feature names.

@media (min-width: 700px) {}
/**     ↑
 * These 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/

给定:

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

以下模式被视为违规:

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

以下模式被视为违规:

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