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.