Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
haktan
· 1y ago · 0 comments
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.
Comments
[–]
california-og
1y ago
Did you try counter()? There's also the upcoming sibling-index()