this post was submitted on 01 May 2026
1 points (100.0% liked)

CSS

773 readers
1 users here now

founded 2 years ago
MODERATORS
 

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 controversial new old
there doesn't seem to be anything here