sibling-index() and sibling-count() can be used as integers in CSS property values to style elements based on their position among its siblings, or the total number of siblings respectively. These functions can be used directly as integer values, but more interestingly inside calc() expressions. Example: li { margin-left: calc(10px * sibling-index()); }
From the explainer: "Authors have been asking for a convenient way of styling elements based on their DOM position among their siblings as well as the total number of siblings. Example use cases for this are staggered animations setting the animation- or transition-delay based on the sibling position, and building a radial menu."
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
No milestones specified