Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gregoriol
· 1y ago · 0 comments
CSS is becoming a programming language and not just a style sheet. Don't worry about performance, soon you'll be able to run assembly in it.
Comments
[–]
haktan
1y ago
Yet recently I couldn't find a way to count cousin elements using has and nth-of-type. JS still is needed when use case gets a little complex.
[–]
california-og
1y ago
Did you try counter()? There's also the upcoming sibling-index()