New CSS Class Prefix Selector Heads to Selectors Level 5 Spec
A proposed .prefix-* wildcard selector for CSS classes has been formally adopted into the Selectors Level 5 draft, offering a cleaner alternative to verbose substring attribute selectors.
All posts in this stream, newest first.
A proposed .prefix-* wildcard selector for CSS classes has been formally adopted into the Selectors Level 5 draft, offering a cleaner alternative to verbose substring attribute selectors.
A deep dive from CSS-Tricks maps out how modern CSS pseudo-classes like :focus-visible, :has(), and :user-invalid now handle logic that used to require JavaScript, with new media element states on the way.