Skip to content

Files

Latest commit

 

History

History
61 lines (39 loc) · 1.01 KB

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

File metadata and controls

61 lines (39 loc) · 1.01 KB

Pattern: Malformed whitespace before range operator in media feature

Issue: -

Description

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

Examples

"always"

There must always be a single space before 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 before 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