mirror of
https://github.com/thangisme/notes.git
synced 2026-07-27 08:13:52 -04:00
Initial commit
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
# selector-root-no-composition
|
||||
|
||||
***Deprecated: See [CHANGELOG](../../../CHANGELOG.md).***
|
||||
|
||||
Disallow the composition of `:root` in selectors.
|
||||
|
||||
```css
|
||||
a, :root {}
|
||||
/** ↑ ↑
|
||||
* This type of composite selector */
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### `true`
|
||||
|
||||
The following patterns are considered warnings:
|
||||
|
||||
```css
|
||||
a, :root {}
|
||||
```
|
||||
|
||||
```css
|
||||
:root + a {}
|
||||
```
|
||||
|
||||
```css
|
||||
html:root {}
|
||||
```
|
||||
|
||||
The following patterns are *not* considered warnings:
|
||||
|
||||
```css
|
||||
:root {}
|
||||
```
|
||||
Reference in New Issue
Block a user