.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / selector-pseudo-element-no-unknown / README.md
1 # selector-pseudo-element-no-unknown
2
3 Disallow unknown pseudo-element selectors.
4
5 ```css
6     a::before {}
7 /**    ↑
8  * This pseudo-element selector */
9 ```
10
11 This rule considers pseudo-element selectors defined in the CSS Specifications, up to and including Editor's Drafts, to be known.
12
13 All vendor-prefixed pseudo-element selectors are ignored.
14
15 ## Options
16
17 ### `true`
18
19 The following patterns are considered violations:
20
21 ```css
22 a::pseudo {}
23 ```
24
25 ```css
26 a::PSEUDO {}
27 ```
28
29 ```css
30 a::element {}
31 ```
32
33 The following patterns are *not* considered violations:
34
35 ```css
36 a:before {}
37 ```
38
39 ```css
40 a::before {}
41 ```
42
43 ```css
44 ::selection {}
45 ```
46
47 ```css
48 input::-moz-placeholder {}
49 ```
50
51 ## Optional secondary options
52
53 ### `ignorePseudoElements: ["/regex/", "string"]`
54
55 Given:
56
57 ```js
58 ["/^my-/", "pseudo-element"]
59 ```
60
61 The following patterns are *not* considered violations:
62
63 ```css
64 a::pseudo-element {}
65 ```
66
67 ```css
68 a::my-pseudo {}
69 ```
70
71 ```css
72 a::my-other-pseudo {}
73 ```