Skip to main content

media-feature-name-case

Specify lowercase or uppercase for media feature names.

@media (min-width: 700px) {}
/** โ†‘
* This media feature name */

The fix option can automatically fix all of the problems reported by this rule.

Options#

string: "lower"|"upper"

"lower"#

The following patterns are considered violations:

@media (MIN-WIDTH: 700px) {}
@media not all and (MONOCHROME) {}
@media (min-width: 700px) and (ORIENTATION: landscape) {}
@media (WIDTH > 10em) {}

The following patterns are not considered violations:

@media (min-width: 700px) {}
@media not all and (monochrome) {}
@media (min-width: 700px) and (orientation: landscape) {}
@media (width > 10em) {}

"upper"#

The following patterns are considered violations:

@media (min-width: 700px) {}
@media not all and (monochrome) {}
@media (MIN-WIDTH: 700px) and (orientation: landscape) {}
@media (10em < width <= 50em) {}

The following patterns are not considered violations:

@media (MIN-WIDTH: 700px) {}
@media not all and (MONOCHROME) {}
@media (MIN-WIDTH: 700px) and (ORIENTATION: landscape) {}
@media (10em < WIDTH <= 50em) {}