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

With ‘:has()’ it should be possible to style elements based on number of children, 
although a little bit cumbersome:


‘’’css
.container:has(:last-child:nth-child(3)) {
   background: green;
}
‘’’

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


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

Received on Monday, 15 August 2022 09:32:11 UTC