Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 1.18 KB

File metadata and controls

77 lines (53 loc) · 1.18 KB

media-feature-name-case

Specify lowercase or uppercase for media feature names.

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

This rule ignores media feature names within a range context.

命令行中的 --fix 选项可以自动修复此规则报告的所有问题。

选项

string: "lower"|"upper"

"lower"

以下模式被视为违规:

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

以下模式被视为违规:

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

"upper"

以下模式被视为违规:

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

以下模式被视为违规:

@media (MIN-WIDTH: 700px) {}
@media not all and (MONOCHROME) {}
@media (MIN-WIDTH: 700px) and (ORIENTATION: landscape) {}