It's currently not possible to style a slot based on whether or not it has a slotted element without using javascript.
Todays wish is for a :has-slotted
pseudo-class, so that we can conditionally apply styles based on whether the slot has slotted content or not.
https://johannesodland.github.io/2024/12/21/web-wish-21-has-slotted.html
=> More informations about this toot | More toots from johannes@front-end.social
text/gemini
This content has been proxied by September (3851b).