Styling default slot in webcomponents
问题 In webcomponents, we have two type of slots (named slots and default slots). We can easily style named slots by using syntax slot[name]::slotted(*) . But is there any way that we can style default slots because they don't have any name associated? The code is something like this and i'm using Angular Elements. <div class="topbar-item"> <slot class="icon" name="icon"></slot> <span class="text"> <slot></slot> <-- This is the slot i want to add styles, only if the slot has some data assigned.