Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relnote(116): CSSPropertyRule and registerProperty() enabled in Fx nightly #27902

Merged
merged 2 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,48 @@ See [Firefox bug 1740530](https://bugzil.la/1740530) for more details.
</tbody>
</table>

#### 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.

<table>
<thead>
<tr>
<th>Release channel</th>
<th>Version added</th>
<th>Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th>Nightly</th>
<td>116</td>
<td>Yes</td>
</tr>
<tr>
<th>Developer Edition</th>
<td>116</td>
<td>No</td>
</tr>
<tr>
<th>Beta</th>
<td>116</td>
<td>No</td>
</tr>
<tr>
<th>Release</th>
<td>116</td>
<td>No</td>
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>layout.css.property-and-value-api.enabled</code></td>
</tr>
</tbody>
</table>

### Service Workers

#### Preloading of service worker resources on navigation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/csspropertyrule/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand Down