Re: [csswg-drafts] [selectors-4] Disallow pseudo-elements inside :has() (#7463)

In https://github.com/w3c/csswg-drafts/issues/7346 I use the example:

```css
::page-transition(id):not(:has(:>> incoming-image)) :>> outgoing-image {
  /* … */
}
```

…to mean "select the ::outgoing-images in ::page-transitions that don't have an ::incoming-image".

I guess the problem with `::marker` and `::first-line` is that their existence and content can be defined by CSS, creating a loop.

Is there a way around this? Maybe some pseudo elements can be marked as "CSS-dynamic" cannot be used in `:has`, but others can.

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


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

Received on Thursday, 7 July 2022 09:22:05 UTC