Re: [csswg-drafts] [css-values] Proposal: `children-count()` function (#11068)

> if I just want to count the elements of class `.dairy`, I couldn't.

See #9572 for `sibling-count(.dairy)`

>  why there shouldn't be a general count() function

Having to count among all elements in the page seems more expensive than just counting among children or siblings. Also adding/removing one element could invalidate the styles of all other elements, etc.

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


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

Received on Tuesday, 17 December 2024 15:19:08 UTC