Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 637 Bytes

File metadata and controls

39 lines (27 loc) · 637 Bytes

media-feature-name-no-vendor-prefix

Disallow vendor prefixes for media feature names.

@media (-webkit-min-device-pixel-ratio: 1) {}
/**      ↑
 * These prefixes */

Right now this rule simply checks for prefixed resolutions.

Options

true

The following patterns are considered violations:

@media (-webkit-min-device-pixel-ratio: 1) {}
@media (min--mox-device-pixel-ratio: 1) {}
@media (-o-max-device-pixel-ratio: 1/1) {}

The following patterns are not considered violations:

@media (min-resolution: 96dpi) {}
@media (max-resolution: 900dpi) {}