5 ms·
Is creating your own pseudo-selectors really possible? I like to think I'm pretty up to date on modern CSS but I've never heard of this.
by benrbray 6y ago
Is creating your own pseudo-selectors really possible? I like to think I'm pretty up to date on modern CSS but I've never heard of this.
- runarberg 6y agoI might be wrong but I think GP is talking about shadow parts[1] my-element::part(custom-selector) { /* ... */ } 1: https://developer.mozilla.org/en-US/docs/Web/CSS/::part https://developer.mozilla.org/en-US/docs/Web/CSS/::part
- deleted 6y ago[deleted]
- IggleSniggle 6y agoWell, I wouldn't recommend it, but certainly you can programmatically apply a pseudo-element or pseudo-class and programmatically define behavior around those things.