-
Notifications
You must be signed in to change notification settings - Fork 711
[css-values-5] Why is sibling-count()
self-including?
#12062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In the Chinese context, it usually includes myself. |
@nt1m Did the previous discussions linked to by @Loirooriol cover your concerns, or do you want this issue to be further discussed? |
It's self-including because the use-cases for it all involve the total child counts. Almost any example that wants to style something based on how many children are in an element wants to know the total number, like I understand that the name (Even in English, it's a little ambiguous - if you're asked "how many siblings do you have?" I sometimes say "there's 3 of us, me and my two brothers", because people are usually actually wanting to ask how many children my parents have, but are talking to me and so are compelled to phrase the question with me as the subject.) |
Yeah that makes sense, |
I just discovered today that
sibling-count()
is self-including today:I guess this might be an english language bias, but when people ask "how many siblings do you have?", you usually don't include yourself.
There might be a reason for this choice (perhaps simply avoiding 0 which is problematic in division and other calculations) but I couldn't find a previous issue about this. I'd personally find it surprising the first time I would use this function, but I could live with it.
The text was updated successfully, but these errors were encountered: