W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2021

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

From: Cpt. Commander via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 May 2021 18:40:13 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-832920846-1620240011-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:23 UTC