custom-media-pattern
指定自定义媒体查询名称的模式。
¥Specify a pattern for custom media query names.
@custom-media --foo (max-width: 30em);
/**             ↑
 * The pattern of this */
选项
¥Options
string
指定未用 "/" 括起来的正则表达式字符串。
¥Specify a regex string not surrounded with "/".
鉴于:
¥Given:
{
  "custom-media-pattern": "foo-.+"
}
以下模式被视为问题:
¥The following patterns are considered problems:
@custom-media --bar (min-width: 30em);
以下模式不被视为问题:
¥The following patterns are not considered problems:
@custom-media --foo-bar (min-width: 30em);