Two new CSS functions. sibling-index() gives an element’s position among its siblings, starting at 1, and sibling-count() gives how many there are. Both return plain numbers you can use in calc().
0 reposts1 like
Two new CSS functions. sibling-index() gives an element’s position among its siblings, starting at 1, and sibling-count() gives how many there are. Both return plain numbers you can use in calc().
0 reposts1 like
Safari and Firefox both fail it inside a keyframes block when the list then changes. Remove an element before the animated one and the animation keeps the old number. Outside keyframes, the same removal updates correctly everywhere. Verdict: Hold. cleared.page/2026-08/