.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / selector-no-vendor-prefix / README.md
1 # selector-no-vendor-prefix
2
3 Disallow vendor prefixes for selectors.
4
5 ```css
6 input::-moz-placeholder {}
7 /**     ↑
8  * These prefixes */
9 ```
10
11 This rule does not blanketly condemn vendor prefixes. Instead, it uses [Autoprefixer's](https://github.com/postcss/autoprefixer) up-to-date data (from [caniuse.com](http://caniuse.com/)) to know whether a vendor prefix should cause a violation or not. *If you've included a vendor prefixed selector that has a standard alternative, one that Autoprefixer could take care of for you, this rule will complain about it*. If, however, you use a non-standard vendor-prefixed selector, one that Autoprefixer would ignore and could not provide, this rule will ignore it.
12
13 ## Options
14
15 ### `true`
16
17 The following patterns are considered violations:
18
19 ```css
20 input::-moz-placeholder {}
21 ```
22
23 ```css
24 :-webkit-full-screen a {}
25 ```
26
27 The following patterns are *not* considered violations:
28
29 ```css
30 input::placeholder {}
31 ```
32
33 ```css
34 :full-screen a {}
35 ```