Skip to content

Commit

Permalink
update example in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed May 11, 2024
1 parent f1e3749 commit 67749d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/rules/selector-max-specificity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Given:
[
"0,2,0",
{
"ignoreSelectors": [":is", ":has", "/^my-/"]
"ignoreSelectors": [":host", ":host-context", "/^my-/"]
}
]
```
Expand All @@ -109,17 +109,17 @@ The following patterns are _not_ considered problems:

<!-- prettier-ignore -->
```css
:is(.foo) .bar {}
:host(.foo) .bar {}
```

<!-- prettier-ignore -->
```css
:has(.foo.bar) {}
:host-context(.foo.bar) {}
```

<!-- prettier-ignore -->
```css
:has(.foo, :is(.bar).baz) {}
:host-context(.foo, :host(.bar).baz) {}
```

<!-- prettier-ignore -->
Expand All @@ -131,17 +131,17 @@ The following patterns are considered problems:

<!-- prettier-ignore -->
```css
:is(.foo) .bar.baz {}
:host(.foo) .bar.baz {}
```

<!-- prettier-ignore -->
```css
:has(.foo.bar.baz) {}
:host-context(.foo.bar.baz) {}
```

<!-- prettier-ignore -->
```css
:has(.foo, :is(.bar), .foo.bar.baz) {}
:host-context(.foo, :host(.bar), .foo.bar.baz) {}
```

<!-- prettier-ignore -->
Expand Down

0 comments on commit 67749d8

Please sign in to comment.