mirror of
https://github.com/thangisme/notes.git
synced 2026-07-28 21:23:59 -04:00
Initial commit
This commit is contained in:
+105
@@ -0,0 +1,105 @@
|
||||
# selector-pseudo-element-case
|
||||
|
||||
Specify lowercase or uppercase for pseudo-element selectors.
|
||||
|
||||
```css
|
||||
a::before {}
|
||||
/** ↑
|
||||
* This is pseudo-element selector */
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
`string`: `"lower"|"upper"`
|
||||
|
||||
### `"lower"`
|
||||
|
||||
The following patterns are considered warnings:
|
||||
|
||||
```css
|
||||
a:Before {}
|
||||
```
|
||||
|
||||
```css
|
||||
a:bEfOrE {}
|
||||
```
|
||||
|
||||
```css
|
||||
a:BEFORE {}
|
||||
```
|
||||
|
||||
```css
|
||||
a::Before {}
|
||||
```
|
||||
|
||||
```css
|
||||
a::bEfOrE {}
|
||||
```
|
||||
|
||||
```css
|
||||
a::BEFORE {}
|
||||
```
|
||||
|
||||
```css
|
||||
input::-MOZ-PLACEHOLDER {}
|
||||
```
|
||||
|
||||
The following patterns are *not* considered warnings:
|
||||
|
||||
```css
|
||||
a:before {}
|
||||
```
|
||||
|
||||
```css
|
||||
a::before {}
|
||||
```
|
||||
|
||||
```css
|
||||
input::-moz-placeholder {}
|
||||
```
|
||||
|
||||
### `"upper"`
|
||||
|
||||
The following patterns are considered warnings:
|
||||
|
||||
```css
|
||||
a:Before {}
|
||||
```
|
||||
|
||||
```css
|
||||
a:bEfOrE {}
|
||||
```
|
||||
|
||||
```css
|
||||
a:BEFORE {}
|
||||
```
|
||||
|
||||
```css
|
||||
a::Before {}
|
||||
```
|
||||
|
||||
```css
|
||||
a::bEfOrE {}
|
||||
```
|
||||
|
||||
```css
|
||||
a::before {}
|
||||
```
|
||||
|
||||
```css
|
||||
input::-moz-placeholder {}
|
||||
```
|
||||
|
||||
The following patterns are *not* considered warnings:
|
||||
|
||||
```css
|
||||
a:BEFORE {}
|
||||
```
|
||||
|
||||
```css
|
||||
a::BEFORE {}
|
||||
```
|
||||
|
||||
```css
|
||||
input::-MOZ-PLACEHOLDER {}
|
||||
```
|
||||
Reference in New Issue
Block a user