Specify a pattern for custom media query names.
@custom-media --narrow-window (max-width: 30em);
/** ↑
* The pattern of this */regex or string
A string will be translated into a RegExp like so new RegExp(yourString) — so be sure to escape properly.
The following patterns are considered warnings:
@custom-media --big-dog (min-width: 30em);The following patterns are not considered warnings:
@custom-media --foo-big-dog (min-width: 30em);