Re: [csswg-drafts] [css-conditional-5][css-nesting-1] Feature detection for nesting (#8399)

> [#](https://github.com/w3c/csswg-drafts/issues/8399#issuecomment-1445128344) Safari TP doesn't seem to work at all :
> 
> ```js
> CSS.supports('selector(&)')
> // false
> ```

Hmm, that looks like a bug to me, given Safari TP does support that selector. Searching the WebKit bug tracker, I found this bug filed for it: https://bugs.webkit.org/show_bug.cgi?id=252301

---

> [#](https://github.com/w3c/csswg-drafts/issues/8399#issuecomment-1445128344) There is also no way to detect support for the even more relaxed syntax where selectors can start with an identifier.

If one could nest inside of `selector()`, it would be possible:

```js
CSS.supports('selector(div { span })');
```

I think this shortcoming should be plugged.

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


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

Received on Monday, 27 February 2023 10:10:14 UTC