#media-feature-name-whitelist

Specify a whitelist of allowed media feature names.

指定允许使用的 media 特性名称的白名单。

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

Caveat: Media feature names within a range context are currently ignored.

警告:含有范围上下文的 media 特性名称目前是被忽略的。

#Options

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

Given:

给出:

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

The following patterns are considered warnings:

以下模式被认为是个警告:

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

The following patterns are not considered warnings:

以下模式正常:

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