mirror of
https://github.com/thangisme/notes.git
synced 2026-08-06 01:00:30 -04:00
Initial commit
This commit is contained in:
+89
@@ -0,0 +1,89 @@
|
||||
# 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 {}
|
||||
```
|
||||
Reference in New Issue
Block a user