This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-01 22:46:04 +00:00

917 B

media-feature-name-no-vendor-prefix

Disallow vendor prefixes for media feature names.

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

Right now this rule simply checks for prefixed resolutions.

The fix option can automatically fix all of the problems reported by this rule.

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) {}