Re: [csswg-drafts] [css-values] Proposal: add sibling-count() and sibling-index() (#4559)

I think this is a great way altogether to get more data-arrays into css natively, and I can imagine this being usefull not just for color only. I currently would love to see a matrix-based solution for referring css color values and variable font-weights dynamically so color-contrast () can be succesfully applied because it knows "which cases" are in play. It's more like a game-engine that generates the styling dynamically based on these kinds of circomstances that check "the count and a list".

My only critique is the naming. I think sibling-count makes sense to me, it's the sibling-index that is too close of resemblence. It's like "sign up" or "sign in" I guess, but naming matters. I would say sibling-count and sibling-store if one is a getter, the other the setter. That would make clear one already has data, the other stores it. Otherwise I might have not interpreted this proposal correctly, but I think I'm right on this.

-- 
GitHub Notification of comment by alolalo
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4559#issuecomment-832920846 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 5 May 2021 18:40:15 UTC