Skip to content

Files

Latest commit

 

History

History
61 lines (39 loc) · 1.01 KB

media-feature-range-operator-space-after.md

File metadata and controls

61 lines (39 loc) · 1.01 KB

Pattern: Malformed whitespace after range operator in media feature

Issue: -

Description

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

Examples

"always"

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

The following patterns are considered violations:

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

The following patterns are not considered violations:

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

"never"

There must never be whitespace after the range operator.

The following patterns are considered violations:

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

The following patterns are not considered violations:

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

Further Reading