3 ms·
> And yes, I abuse the slot attribute even when I'm only using CSS, without JS. In CSS, how do you target <div slot="hero-blurb"> based on the "hero-blurb" slo
by mikae1 10mo ago
> And yes, I abuse the slot attribute even when I'm only using CSS, without JS.
In CSS, how do you target <div slot="hero-blurb"> based on the "hero-blurb" slot?
div[slot="hero-blurb"]?
- verisimilidude 10mo agoYes, though often I’ll omit the tag, and just target [slot=“hero-blurb”]. Depends on the situation.