mirror of
https://github.com/thangisme/notes.git
synced 2024-06-12 04:30:42 +00:00
40 lines
633 B
Markdown
40 lines
633 B
Markdown
# media-feature-name-no-vendor-prefix
|
|
|
|
Disallow vendor prefixes for media feature names.
|
|
|
|
```css
|
|
@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 warnings:
|
|
|
|
```css
|
|
@media (-webkit-min-device-pixel-ratio: 1) {}
|
|
```
|
|
|
|
```css
|
|
@media (min--mox-device-pixel-ratio: 1) {}
|
|
```
|
|
|
|
```css
|
|
@media (-o-max-device-pixel-ratio: 1/1) {}
|
|
```
|
|
|
|
The following patterns are *not* considered warnings:
|
|
|
|
```css
|
|
@media (min-resolution: 96dpi) {}
|
|
```
|
|
|
|
```css
|
|
@media (max-resolution: 900dpi) {}
|
|
```
|