Skip to content

Commit

Permalink
FF126 Relnote: CustomStateSet and CSS :state() selector (#33098)
Browse files Browse the repository at this point in the history
* FF126 Relnote: CustomStateSet and CSS :state() selector

* Apply suggestions from code review

Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>

---------

Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
  • Loading branch information
hamishwillee and dipikabh authored Apr 22, 2024
1 parent 7320f05 commit ca46bb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 42 deletions.
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 @@ -1872,48 +1872,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 @@ -49,6 +49,9 @@ This article provides information about the changes in Firefox 126 that affect d

#### DOM

- The ability to define states for custom elements and match them using CSS selectors is now available by default.
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 1887543](https://bugzil.la/1887543)).

#### Media, WebRTC, and Web Audio

#### Removals
Expand Down

0 comments on commit ca46bb9

Please sign in to comment.