Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 999 Bytes

File metadata and controls

63 lines (42 loc) · 999 Bytes

media-feature-range-operator-space-before

Require a single space or disallow whitespace before the range operator in media features.

@media (width >= 600px) {}
/**           ↑
 * The space before this */

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

选项

string: "always"|"never"

"always"

There must always be a single space before the range operator.

以下模式被视为违规:

@media (width>=600px) {}
@media (width>= 600px) {}

以下模式被视为违规:

@media (width >=600px) {}
@media (width >= 600px) {}

"never"

There must never be whitespace before the range operator.

以下模式被视为违规:

@media (width >=600px) {}
@media (width >= 600px) {}

以下模式被视为违规:

@media (width>=600px) {}
@media (width>= 600px) {}