The Future of CSS: Target Multiple Classes with the Class Prefix Selector

To target multiple classes that share the same prefix, you'd typically have to resort to brittle attribute selectors or add extra base classes to your markup. To make things easier, CSS is getting a new selector: The Class Prefix Selector (.prefix-*).
12 points by cdrnsf 63 days ago www.bram.us 7 comments

Summary

CSS is introducing a new selector, the Class Prefix Selector, which simplifies targeting multiple classes with the same prefix. This change aims to reduce reliance on complex attribute selectors and additional base classes, streamlining your styling process.

Comments (7 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open