:defined
Matches any element that has been officially 'defined' by the browser. This includes all standard HTML elements and any custom elements that have been registered via JavaScript.
Quick example
my-custom-element:defined {
display: block;
/* only shows the custom element once it's been correctly registered */
} :defined Browser Support
Widely available Since 2020 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.
Safe to use without fallbacks.
54+
63+
10+
79+