# noInvalidPropertyInitValue

Rule `biome/noInvalidPropertyInitValue`. Checks that the `initial-value` of an `@property` rule follows the value format declared by its `syntax`.

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noInvalidPropertyInitValue` | yes | no | group nursery, since 2.5.8 | [docs](https://biomejs.dev/linter/rules/no-invalid-property-init-value/) |

## Code examples

### Incorrect: the rule reports this

```css
@property --size {
  syntax: "<length>";
  inherits: false;
  initial-value: red;
}
```

```css
@property --background-image {
  syntax: "<image>";
  inherits: false;
  initial-value: #fff;
}
```

```css
@property --palette {
  syntax: "<color>#";
  inherits: false;
  initial-value: red blue;
}
```

### Correct: the rule accepts this

```css
@property --size {
  syntax: "<length>";
  inherits: false;
  initial-value: 1rem;
}

@property --calculated-size {
  syntax: "<length>";
  inherits: false;
  initial-value: calc(1px + 2px);
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noInvalidPropertyInitValue": "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/noInvalidPositionAtImportRule](https://lintradar.dev/rules/biome/noInvalidPositionAtImportRule.md): Disallow `@import` after other rules.
- [biome/noJsonUnsafeValues](https://lintradar.dev/rules/biome/noJsonUnsafeValues.md): Disallow unsafe JSON values that may cause interoperability issues.
- [biome/noInvalidGridAreas](https://lintradar.dev/rules/biome/noInvalidGridAreas.md): Disallow invalid named areas in CSS grid templates.
- [biome/noJsxNamespace](https://lintradar.dev/rules/biome/noJsxNamespace.md): Disallow JSX namespace syntax.
- [biome/noInvalidDirectionInLinearGradient](https://lintradar.dev/rules/biome/noInvalidDirectionInLinearGradient.md): Disallow non-standard directions in linear gradients.
- [biome/noMisplacedListElements](https://lintradar.dev/rules/biome/noMisplacedListElements.md): Require `<li>` elements with an HTML element parent to be children of `<ul>`, `<ol>`, or `<menu>`.

---

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