.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / property-case / README.md
1 # property-case
2
3 Specify lowercase or uppercase for properties.
4
5 ```css
6     a { width: 1px; }
7 /**     ↑
8  * These properties */
9 ```
10
11 ## Options
12
13 `string`: `"lower"|"upper"`
14
15 ### `"lower"`
16
17 The following patterns are considered violations:
18
19 ```css
20 a {
21   Width: 1px
22 }
23 ```
24
25 ```css
26 a {
27   WIDTH: 1px
28 }
29 ```
30
31 ```css
32 a {
33   widtH: 1px
34 }
35 ```
36
37 ```css
38 a {
39   border-Radius: 5px;
40 }
41 ```
42
43 ```css
44 a { 
45   -WEBKIT-animation-duration: 3s; 
46 }
47 ```
48
49 ```css
50 @media screen and (orientation: landscape) { 
51   WiDtH: 500px; 
52 }
53 ```
54
55 The following patterns are *not* considered violations:
56
57 ```css
58 a {
59   width: 1px
60 }
61 ```
62
63 ```css
64 a {
65   border-radius: 5px;
66 }
67 ```
68
69 ```css
70 a { 
71   -webkit-animation-duration: 3s; 
72 }
73 ```
74
75 ```css
76 @media screen and (orientation: landscape) { 
77   width: 500px; 
78 }
79 ```
80
81 ### `"upper"`
82
83 The following patterns are considered violations:
84
85 ```css
86 a {
87   Width: 1px
88 }
89 ```
90
91 ```css
92 a {
93   width: 1px
94 }
95 ```
96
97 ```css
98 a {
99   widtH: 1px
100 }
101 ```
102
103 ```css
104 a {
105   border-Radius: 5px;
106 }
107 ```
108
109 ```css
110 a { 
111   -WEBKIT-animation-duration: 3s; 
112 }
113 ```
114
115 ```css
116 @media screen and (orientation: landscape) { 
117   WiDtH: 500px; 
118 }
119 ```
120
121 The following patterns are *not* considered violations:
122
123 ```css
124 a {
125   WIDTH: 1px
126 }
127 ```
128
129 ```css
130 a {
131   BORDER-RADIUS: 5px;
132 }
133 ```
134
135 ```css
136 a { 
137   -WEBKIT-ANIMATION-DURATION: 3s; 
138 }
139 ```
140
141 ```css
142 @media screen and (orientation: landscape) { 
143   WIDTH: 500px; 
144 }
145 ```