Specify a blacklist of disallowed media feature names.
指定禁止使用的 media 特性名称的黑名单。
@media (min-width: 700px) {}
/** ↑
* These media feature names */
Caveat: Media feature names within a range context are currently ignored.
警告:含有范围上下文的 media 特性名称目前是被忽略的。
array|string|regex: ["array", "of", "unprefixed", "media-features" or "regex"]|"media-feature"|/regex/
Given:
给出:
["max-width", "/^my-/"]
The following patterns are considered warnings:
以下模式被认为是个警告:
@media (max-width: 50em) {}
@media (my-width: 50em) {}
The following patterns are not considered warnings:
以下模式正常:
@media (min-width: 50em) {}
@media print and (min-resolution: 300dpi) {}