Re: [csswg-drafts] [selectors] Number-of-siblings pseudoclass proposal (#1176)

@Loirooriol  Which of these two approaches has better performance?

```css
.some-thing:not(:has(> nth-child(4))) > li > a { /* 3 or less elements */ }
```

vs

```css
.some-thing:has(> :last-child:nth-child(-n + 3)) > li > a { /* 3 or less elements */ }
```

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


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

Received on Tuesday, 19 November 2024 09:28:18 UTC