7

This function is part of the CSS Functions and Values Level 5 specification, along with sibling-count(), which gives you the total number of siblings. Both functions are still experimental, so check caniuse before using them in your project. Currently, Chrome, Edge, and Safari have the most support, but other browsers might not fully support them yet.

no comments (yet)
sorted by: hot top new old
there doesn't seem to be anything here
this post was submitted on 01 May 2026
7 points (100.0% liked)

CSS

783 readers
10 users here now

founded 2 years ago
MODERATORS