*Summary*:
The sibling-index() 
<https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/sibling-index>
 
and sibling-count() 
<https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/sibling-count>
 
CSS functions allow an element to be styled using its index among its 
siblings and its total count of siblings (including itself), respectively. 
These functions produce integers and can be used with elements anywhere 
that an integer is allowed, including in calculations.

We intend to enable these functions in *Firefox Nightly* builds behind the 
*layout.css.tree-counting-functions.enabled* pref.

*Bug*: 
Bug 1953973 - [css-values] Add sibling-count() and sibling-index() 
<https://bugzilla.mozilla.org/show_bug.cgi?id=1953973>

*Specification*: 
https://drafts.csswg.org/css-values-5/#tree-counting

*Standards Body*: 
CSSWG / W3C

*Platform Coverage*: 
All

*Preference*:
*layout.css.tree-counting-functions.enabled* — Bug 2045705 
<https://bugzilla.mozilla.org/show_bug.cgi?id=2045705> to enable in Nightly

*DevTools Bug*: 
N/A

*Extensions Bug*: 
N/A

*Use Counter*: 
N/A

*Standards-Positions Discussion*: 
https://github.com/mozilla/standards-positions/issues/1194 — Positive

*Other Browsers*:
- Blink: Shipped since Chrome 138
- WebKit: Shipped since Safari 26.2

*web-platform-tests*:
https://wpt.fyi/results/css/css-values/tree-counting

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/73aae361-e58a-443c-981c-2f757bc459d5n%40mozilla.org.

Reply via email to