Is there a way to select all custom elements with CSS? I want to make all custom elements block elements by default (most browsers make them inline by default), and then override this as necessary.
My rule may look something like this:
*::custom {
display: block;
}
All custom elements have dashes in the standard, so I could create a rule taking advantage of that, but it would be slower on many/most current browsers, as it would need to use regular expressions. If there were a built-in selector, this would probably be faster.
x-one, x-two, ..., x-xxx {display: block;}.displayisinline.classordata-attributes?