# noPseudoElementInFunctionalPseudoClass

Rule `biome/noPseudoElementInFunctionalPseudoClass`. Disallow pseudo-elements inside `:is()`, `:where()`, `:not()` and `:has()`.

- Source: biome
- Technologies: CSS
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1929 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noPseudoElementInFunctionalPseudoClass` | no | no | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/no-pseudo-element-in-functional-pseudo-class/) |

## Code examples

### Incorrect: the rule reports this

```css
.card:is(.featured::before) {
  content: "";
}
```

```css
li:not(::marker) {
  color: red;
}
```

### Correct: the rule accepts this

```css
.card:is(.featured, .pinned)::before {
  content: "";
}

li:not(.done)::marker {
  color: red;
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noPseudoElementInFunctionalPseudoClass": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noProcessGlobal](https://lintradar.dev/rules/biome/noProcessGlobal.md): Disallow the use of `process` global.
- [biome/noReactForwardRef](https://lintradar.dev/rules/biome/noReactForwardRef.md): Replaces usages of `forwardRef` with passing `ref` as a prop.
- [biome/noPlaywrightWaitForTimeout](https://lintradar.dev/rules/biome/noPlaywrightWaitForTimeout.md): Disallow using `page.waitForTimeout()`.
- [biome/noReactNativeLiteralColors](https://lintradar.dev/rules/biome/noReactNativeLiteralColors.md): Disallow color literals in React Native styles.
- [biome/noPlaywrightWaitForSelector](https://lintradar.dev/rules/biome/noPlaywrightWaitForSelector.md): Disallow using `page.waitForSelector()`.
- [biome/noReactPropAssignments](https://lintradar.dev/rules/biome/noReactPropAssignments.md): Disallow assigning to React component props.

---

Web page: https://lintradar.dev/rules/biome/noPseudoElementInFunctionalPseudoClass. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
