- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Thu, 28 Sep 2023 19:40:31 +0000
- To: public-css-archive@w3.org
@tabatkins Your expected behavior should actually be for this CSS:
```css
div { counter-increment: foo }
div::before { content: counters(foo, ".") }
```
However, the testcase was incrementing on the pseudo-element, not the element itself, and the pseudo-element is in the subtree, so I think it should actually produce
```
1 (body > div::before)
1.1 (body > div > :first-child::before)
1.2 (body > div > :first-child > :first-child::before)
1.3 (body > div > :first-child > :last-child::before)
2 (body > div > :last-child::before)
3 (body > div > :last-child > :first-child::before)
4 (body > div > :last-child > :last-child::before)
```
--
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9212#issuecomment-1739902753 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 28 September 2023 19:40:34 UTC