Remix.run Logo
cubefox 15 hours ago

I was forced to use this years ago because there is only a :nth-of-type selector, but no :nth-of-class. So whenever you need nth-of-class, switch to made-up tags and use nth-of-type. (A tag is a type.)

senfiaj 10 hours ago | parent [-]

There is N-th child selector with filter, for example you can write :nth-child(3 of .red)

https://waspdev.com/articles/2025-06-29/css-features-web-dev...

cubefox 8 hours ago | parent [-]

Cool! I guess this now also makes nth-of-type superfluous.

senfiaj 7 hours ago | parent [-]

IMHO this also makes custom tags no longer very useful beyond custom HTML components (JS is also required for that). The standard tags provide good semantics, SEO and accessibility out of the box.