Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The states read-only property of the ElementInternals interface returns a CustomStateSet representing the possible states of the custom element.