UNPKG

748 BMarkdownView Raw
1# selector-attribute-operator-blacklist
2
3**_Deprecated: Instead use the [`selector-attribute-operator-disallowed-list`](../selector-attribute-operator-disallowed-list/README.md) rule._**
4
5Specify a list of disallowed attribute operators.
6
7<!-- prettier-ignore -->
8```css
9[target="_blank"] {}
10/** ↑
11 * This operator */
12```
13
14## Options
15
16`array|string`: `["array", "of", "operators"]|"operator"`
17
18Given:
19
20```
21["*="]
22```
23
24The following patterns are considered violations:
25
26<!-- prettier-ignore -->
27```css
28[class*="test"] {}
29```
30
31The following patterns are _not_ considered violations:
32
33<!-- prettier-ignore -->
34```css
35[target] {}
36```
37
38<!-- prettier-ignore -->
39```css
40[target="_blank"] {}
41```
42
43<!-- prettier-ignore -->
44```css
45[class|="top"] {}
46```