CustomStateSet: keys() method
        
        
          
                Baseline
                
                  2024
                
                
              
        
        Newly available
        
          
                
              
                
              
                
              
        
        
      
      Since May 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The keys() method of the CustomStateSet interface is an alias for CustomStateSet.values.
Syntax
js
keys()
Parameters
None.
Return value
A new iterator object containing the values for each element in the given CustomStateSet, in insertion order.
Specifications
| Specification | 
|---|
| HTML> # custom-state-pseudo-class> | 
Browser compatibility
Loading…