GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for CustomStateSet.

Developer library 6

Firefox 126 release notes for developers

le by default. The custom states are represented as custom identifiers that can be added to or removed from the element's ElementInternals.states property (a CustomStateSet). The CSS [`:state()`](/docs/Web/CSS/Reference/Selectors/: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/18875

Firefox 121 release notes for developers

an find more such features on the [Experimental features](/docs/Mozilla/Firefox/Experimental_features) page. - Custom element state pseudo-class: `dom.element.customstateset.enabled` - : Custom elements can expose their internal state via the states property as a CustomStateSet. A CSS custom state pseudo-class such as `:--some-state` can match that element's state. ([Firefox bug 1861466](https://bugzil.la/1861466)

`:state()` CSS pseudo-class

yle them using the CSS `:state()` pseudo-class. The states of a custom element are represented by string values. These values are added to or removed from a [`CustomStateSet`](/docs/Web/API/CustomStateSet) object associated with the element. The CSS `:state()` pseudo-class matches an element when the identifier, passed as an argument, is present in the `CustomStateSet` of the element. The `:state()` pseudo-class ca

Set

examples of read-only `Set`-like browser objects: - GPUSupportedFeatures - XRAnchorSet The following are examples of writable `Set`-like browser objects: - CustomStateSet - FontFaceSet - Highlight - ViewTransitionTypeSet ## Constructor - Set() - : Creates a new `Set` object. ## Static properties - [`Set[Symbol.species]`](/docs/Web/JavaScript/Reference/Global_Objects/Set/Symbol.species) - : The constructor

CustomStateSet

Web Components The **`CustomStateSet`** interface of the [Document Object Model](/docs/Web/API/Document_Object_Model) stores a list of states for an [autonomous custom element](/docs/Web/API/Web_components/Using_custom_elements#types_of_custom_element), and allows states to be added and removed from the set. The interface can be used to expose the internal states of a custom element, allowing them to be used in CSS

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet

CustomStateSet: values() method

Web Components The **`values()`** method of the CustomStateSet interface returns a new iterator object that yields the values for each element in the `CustomStateSet` object in insertion order. ## Syntax ```js-nolint values() ``` ### Parameters None. ### Return value A new iterator object containing the values for each element in the given `CustomStateSet`, in insertion order. ## Specifications ## Browser

JSON results · Services directory