media-feature-name-no-vendor-prefix
禁止媒体功能名称使用浏览器前缀。
¥Disallow vendor prefixes for media feature names.
@media (-webkit-min-device-pixel-ratio: 1) {}
/** ↑
* This prefix */
此规则忽略 自动前缀器 不处理的非标准浏览器前缀媒体功能名称。
¥This rule ignores non-standard vendor-prefixed media feature names that aren't handled by Autoprefixer.
fix
选项 可以自动修复此规则报告的所有问题。但是,它不会删除删除前缀时产生的重复媒体功能名称。在这些情况下,你可以将 自动前缀器 本身与 add
选项关闭,remove
选项打开 一起使用。
¥The fix
option can automatically fix all of the problems reported by this rule. However, it will not remove duplicate media feature names produced when the prefixes are removed. You can use Autoprefixer itself, with the add
option off and the remove
option on, in these situations.
选项
¥Options
true
以下模式被视为问题:
¥The following patterns are considered problems:
@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 problems:
@media (min-resolution: 96dpi) {}
@media (max-resolution: 900dpi) {}