media-feature-slash-space-after
Require a single space or disallow whitespace after the solidus of a ratio in media features.
@media (aspect-ratio: 16/ 9) {}
/** ↑
* The space after this solidus */The fix option can automatically fix most of the problems reported by this rule.
The solidus this rule reads is the one between the two numbers of a <ratio>, in the colon form of a feature ((aspect-ratio: 16 / 9)) and in the range form ((16 / 9 <= aspect-ratio)) alike. A solidus inside the arguments of a math function is the division operator and is not read, and neither is one inside a url() address, a string or a comment. The solidus of a declaration's value is read by value-slash-space-after.
Where the fix would move code into a // comment, it leaves the whitespace alone and the warning stands.
Options
string: "always"|"never"
"always"
There must always be a single space after the solidus.
The following patterns are considered problems:
@media (aspect-ratio: 16/9) {}@media (aspect-ratio: 16 /9) {}The following patterns are not considered problems:
@media (aspect-ratio: 16/ 9) {}@media (aspect-ratio: 16 / 9) {}"never"
There must never be whitespace after the solidus.
The following patterns are considered problems:
@media (aspect-ratio: 16/ 9) {}@media (aspect-ratio: 16 / 9) {}The following patterns are not considered problems:
@media (aspect-ratio: 16/9) {}@media (aspect-ratio: 16 /9) {}