# noUnknownMediaFeatureName

Rule `biome/noUnknownMediaFeatureName`. Disallow unrecognized feature names in media queries.

- Source: biome
- Technologies: CSS
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #566 by reach, #201 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `correctness/noUnknownMediaFeatureName` | yes | no | group correctness, since 1.8.0 | [docs](https://biomejs.dev/linter/rules/no-unknown-media-feature-name/) |

## Code examples

### Incorrect: the rule reports this

```css
@media screen and (unknown > 320px) {}
```

```css
@media only screen and (min-width: 320px) and (max-width: 480px) and (unknown: 150dpi) {}
```

```css
@media (not(unknown < 320px)) and (max-width > 640px) {}
```

### Correct: the rule accepts this

```css
@media screen and (width > 320px) {}
```

```css
@media only screen and (min-width: 320px) and (max-width: 480px) and (resolution: 150dpi) {}
```

```css
@media (not(min-width < 320px)) and (max-width > 640px) {}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noUnknownMediaFeatureName": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noUnknownFunction](https://lintradar.dev/rules/biome/noUnknownFunction.md): Disallow unrecognized CSS value functions.
- [biome/noUnknownProperty](https://lintradar.dev/rules/biome/noUnknownProperty.md): Disallow unrecognized CSS properties.
- [biome/noUnknownAtRules](https://lintradar.dev/rules/biome/noUnknownAtRules.md): Disallow unrecognized CSS at-rules.
- [biome/noUnknownPseudoClass](https://lintradar.dev/rules/biome/noUnknownPseudoClass.md): Disallow unrecognized pseudo-class selectors.
- [biome/noThisInStatic](https://lintradar.dev/rules/biome/noThisInStatic.md): Disallow `this` and `super` in `static` contexts.
- [biome/noUnknownPseudoElement](https://lintradar.dev/rules/biome/noUnknownPseudoElement.md): Disallow unrecognized pseudo-element selectors.

---

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