Is there a way to properly use :host
(or :host()
) with :has()
?
For instance, like the following code snippets:
:host:has([disabled]) {
opacity: 0.75;
}
or
:host(:has([disabled])) {
opacity: 0.75;
}
Unfortunately, the opacity
value doesn't seem to work as intended with this syntax in my example.