W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

Re: [csswg-drafts] [selectors-4] New selector based on the amount of child elements (#5694)

From: Rami Yushuvaev via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Nov 2020 23:12:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-722024484-1604531548-sysbot+gh@w3.org>
@emilio Another example is to add an **axes** system to a [Polar Chart](https://www.google.com/search?q=polar+chart&newwindow=1&sxsrf=ALeKk03iy1ScBxqfjBdoAgSQmIsW_8kj5A:1604530535112&source=lnms&tbm=isch&sa=X&ved=2ahUKEwiLks6E_unsAhWS66QKHZq2DyIQ_AUoAXoECAwQAw&biw=1920&bih=969) which is like a Pie Chart but with equal slices. To add radial axes you need to know how many child items you have, and the new `:nth-children()` pseudo-class will provide the ability to add **n** axes based on the HTML --> `tbody:nth-children(n)`.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 4 November 2020 23:12:35 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC