Thanks for implementing this, it's awesome

I found a couple issues for DevTools:
- Bug 2047874 - Wrong color displayed in color swatch for relative color 
using sibling-index() <https://bugzilla.mozilla.org/show_bug.cgi?id=2047874>
- Bug 2047871 - Unable to calculate contrast information for relative color 
with sibling-index() computation 
<https://bugzilla.mozilla.org/show_bug.cgi?id=2047871>


On Thursday, June 11, 2026 at 1:48:28 AM UTC+2 [email protected] wrote:

> *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/1dabe0d5-6fcf-40d4-adae-1a056e823d36n%40mozilla.org.

Reply via email to