diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index ad90b268044291e..60b67b1efda88ad 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -1239,6 +1239,48 @@ See [Firefox bug 1740530](https://bugzil.la/1740530) for more details. +#### CSS Properties and Values API + +The [CSS Properties and Values API](/en-US/docs/Web/API/CSS_Properties_and_Values_API) allows developers to register custom CSS properties through JavaScript via [`registerProperty()`](/en-US/docs/Web/API/CSS/registerProperty_static) or in CSS using the [`@property`](/en-US/docs/Web/CSS/@property) at-rule. +Registering properties using these two methods allows for type checking, default values, and properties that do or do not inherit values from their parent elements. +See [Firefox bug 1840480](https://bugzil.la/1840480) for more details. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Release channelVersion addedEnabled by default?
Nightly116Yes
Developer Edition116No
Beta116No
Release116No
Preference namelayout.css.property-and-value-api.enabled
+ ### Service Workers #### Preloading of service worker resources on navigation diff --git a/files/en-us/web/api/css_properties_and_values_api/index.md b/files/en-us/web/api/css_properties_and_values_api/index.md index 0acab8090a2b8ea..d35c3ff6990991a 100644 --- a/files/en-us/web/api/css_properties_and_values_api/index.md +++ b/files/en-us/web/api/css_properties_and_values_api/index.md @@ -2,7 +2,9 @@ title: CSS Properties and Values API slug: Web/API/CSS_Properties_and_Values_API page-type: web-api-overview -browser-compat: api.CSS.registerProperty +browser-compat: + - api.CSSPropertyRule + - api.CSS.registerProperty_static --- {{DefaultAPISidebar("CSS Properties and Values API")}} diff --git a/files/en-us/web/api/csspropertyrule/index.md b/files/en-us/web/api/csspropertyrule/index.md index 7afa30a67d79afc..716639577bf2732 100644 --- a/files/en-us/web/api/csspropertyrule/index.md +++ b/files/en-us/web/api/csspropertyrule/index.md @@ -7,7 +7,7 @@ browser-compat: api.CSSPropertyRule {{APIRef("CSS Properties and Values API")}} -The **`CSSPropertyRule`** interface of the {{domxref('CSS_Properties_and_Values_API','','',' ')}} represents a single CSS {{cssxref("@property")}} rule. +The **`CSSPropertyRule`** interface of the [CSS Properties and Values API](/en-US/docs/Web/API/CSS_Properties_and_Values_API) represents a single CSS {{cssxref("@property")}} rule. {{InheritanceDiagram}}