1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 10:17:42 -04:00
notes/node_modules/stylelint/lib/rules/selector-pseudo-class-case/README.md

90 lines
861 B
Markdown
Raw Normal View History

2017-03-09 13:16:08 -05:00
# selector-pseudo-class-case
Specify lowercase or uppercase for pseudo-class selectors.
```css
a:hover {}
/** ↑
* This is pseudo-class selector */
```
## Options
`string`: `"lower"|"upper"`
### `"lower"`
The following patterns are considered warnings:
```css
a:Hover {}
```
```css
a:hOvEr {}
```
```css
a:HOVER {}
```
```css
:ROOT {}
```
```css
:-MS-INPUT-PLACEHOLDER {}
```
The following patterns are *not* considered warnings:
```css
a:hover {}
```
```css
:root {}
```
```css
:-ms-input-placeholder {}
```
### `"upper"`
The following patterns are considered warnings:
```css
a:Hover {}
```
```css
a:hOvEr {}
```
```css
a:hover {}
```
```css
:root {}
```
```css
:-ms-input-placeholder {}
```
The following patterns are *not* considered warnings:
```css
a:HOVER {}
```
```css
:ROOT {}
```
```css
:-MS-INPUT-PLACEHOLDER {}
```