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

FF126 Relnote: CustomStateSet and CSS :state() selector #33098

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 0 additions & 42 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1785,48 +1785,6 @@ The `GeometryUtils` method `getBoxQuads()` returns the CSS boxes for a {{domxref
</tbody>
</table>

#### CustomStateSet and the :state() pseudo-class: States for custom elements

You can now define custom states for custom elements and match them using CSS.
Custom states are represented as custom identifiers that can be added to, or removed from, the element's {{domxref("ElementInternals.states")}} property (a {{domxref("CustomStateSet")}}). The CSS [`:state()`](/en-US/docs/Web/CSS/:state) pseudo-class takes a custom identifier as an argument and matches the custom elements if the identifier is present in their set of states.
(See [Firefox bug 1861466](https://bugzil.la/1861466) and [Firefox bug 1866351](https://bugzil.la/1866351) 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>121</td>
<td>No</td>
</tr>
<tr>
<th>Developer Edition</th>
<td>121</td>
<td>No</td>
</tr>
<tr>
<th>Beta</th>
<td>121</td>
<td>No</td>
</tr>
<tr>
<th>Release</th>
<td>121</td>
<td>No</td>
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>dom.element.customstateset.enabled</code></td>
</tr>
</tbody>
</table>

### Payment Request API

#### Primary payment handling
Expand Down
3 changes: 3 additions & 0 deletions files/en-us/mozilla/firefox/releases/126/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ This article provides information about the changes in Firefox 126 that affect d

#### DOM

- States can now be defined for custom elements and matched using CSS selectors.
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
The custom states are represented as custom identifiers that can be added to, or removed from, the element's {{domxref("ElementInternals.states")}} property (a {{domxref("CustomStateSet")}}). The CSS [`:state()`](/en-US/docs/Web/CSS/:state) pseudo-class takes a custom identifier as an argument and matches custom elements if the identifier is present in their set of states. ([Firefox bug 1861466](https://bugzil.la/1861466), [Firefox bug 1866351](https://bugzil.la/1866351), [Firefox bug 1887543](https://bugzil.la/1887543).)
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved

#### Media, WebRTC, and Web Audio

#### Removals
Expand Down