Feature status
A feature status broadly indicates the cross-browser implementation and standardization state of a particular web platform feature, such as a Web API method or CSS property.
A feature status broadly indicates the cross-browser implementation and standardization state of a particular web platform feature, such as a Web API method or CSS property.
It is one of the following:
- [`deprecated`](https://github.com/mdn/browser-compat-data/tree/main/docs/data-guidelines#setting-deprecated)
- [`experimental`](https://github.com/mdn/browser-compat-data/tree/main/docs/data-guidelines#setting-experimental)
- [`non-standard`](https://github.com/mdn/browser-compat-data/blob/main/schemas/compat-data-schema.md#status-information)
> [!WARNING]
> Do not manually update the feature statuses in the `mdn/content` repository.
> The documentation source is [automatically updated](#how_feature_statuses_are_added_or_updated) from information in the GitHub `mdn/browser-compat-data` repository.
If none of the above statuses apply, the feature is considered a _stable and standard feature_.
For more information on these terms, see the ["Experimental, deprecated, and obsolete"](/docs/MDN/Writing_guidelines/Experimental_deprecated_obsolete) page.
For information on how the status for a feature is determined, see the [choosing status properties](https://github.com/mdn/browser-compat-data/tree/main/docs/data-guidelines#choosing-status-properties) section in the `@mdn/browser-compat-data` (BCD) repository.
## How feature statuses are added or updated
The feature statuses of all the features documented on MDN are tracked in its accompanying [@mdn/browser-compat-data](https://github.com/mdn/browser-compat-data) (BCD) repository. An automation _automatically_ updates the statuses in the `mdn/content` repository whenever a new [version of BCD is released](https://github.com/mdn/browser-compat-data/releases).
The automation uses [`browser-compat`](/docs/MDN/Writing_guidelines/Page_structures/Compatibility_tables#using_bcd_data_in_mdn_pages) key in the front-matter. The key stores BCD query required to locate the feature in the compatibility data. If the `browser-compat` key has multiple values then the automation uses only the first value to render status macros.
> [!NOTE]
> To update a feature's status in the MDN content, you need to [submit a pull request](https://github.com/mdn/browser-compat-data/blob/main/docs/contributing.md#updating-the-compat-data) in the BCD repository. After your changes are approved and merged in BCD, it goes into a weekly release, and an automated pull request updates the statuses in the `mdn/content` repository for every release.
## How are feature statuses specified in content?
The following sections document the mechanisms that are used to insert and render feature status information in MDN documents. As mentioned, these should be considered read-only, as their inclusion in the content is automated.
### Feature status icons in sidebars
The `status` property in page front matter is used to generate status icons for features when they are displayed in sidebars.
```yaml
---
title: Feature name
status:
- deprecated
- experimental
- non-standard
browser-compat: api.feature
---
```
### Feature status page banners
> [!WARNING]
> The `\` macro is no longer required to generate a **Deprecated status** banner. The platform now automatically generates the banner using the [`status`](#feature_status_icons_in_sidebars) front matter property or data from [web-features](https://github.com/web-platform-dx/web-features).
The following macros are used to render the status banners in page headers:
- `\`
- : For `experimental` status. It generates an **Experimental status** banner:
- `\`
- : For `non-standard` status. It generates a **Non-Standard status** banner:
### Feature status icons in definition lists
The following macros are used to render inline status icons next to definition list items:
- [`\`](https://github.com/mdn/rari/blob/main/crates/rari-doc/src/templ/templs/badges.rs) icon:
- [`\`](https://github.com/mdn/rari/blob/main/crates/rari-doc/src/templ/templs/badges.rs) icon:
- [`\`](https://github.com/mdn/rari/blob/main/crates/rari-doc/src/templ/templs/badges.rs) icon:
If a web feature page has status banners then the inline macros of same statuses are used explicitly for each member/value of the feature in the definition list.
For example, if a page is marked experimental using `\` then each member/value of the feature is explicitly marked experimental using `\` macro in the definition list.
## See also
- [Sidebar macros](/docs/MDN/Writing_guidelines/Page_structures/Sidebars)
- [Link macros](/docs/MDN/Writing_guidelines/Page_structures/Links)
Cite this
"Feature status". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Page_structures/Feature_status JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy