Skip to content

Files

Latest commit

 

History

History
53 lines (33 loc) · 992 Bytes

media-feature-parentheses-space-inside.md

File metadata and controls

53 lines (33 loc) · 992 Bytes

Pattern: Malformed whitespace inside parentheses within media feature

Issue: -

Description

Require a single space or disallow whitespace on the inside of the parentheses within media features.

Examples

"always"

There must always be a single space inside the parentheses.

The following patterns are considered violations:

@media (max-width: 300px) {}
@media (max-width: 300px ) {}

The following patterns are not considered violations:

@media ( max-width: 300px ) {}

"never"

There must never be whitespace on the inside the parentheses.

The following patterns are considered violations:

@media ( max-width: 300px ) {}
@media ( max-width: 300px) {}

The following patterns are not considered violations:

@media (max-width: 300px) {}

Further Reading