Re: [csswg-drafts] [css-conditional-4][selectors-4] How should selector supports test react to partially-implemented selectors? (#3936)

I don't think this is particularly urgent to fix since no UAs implement those, but I would probably suggest either:

 * Adding another function to the CSS namespace (`CSS.supportsSelector`?) that directly takes a selector.
 * `CSS.supports()` and `@supports` supports the same selectors that `<style>` and `<link>`.
 * `CSS.supportsSelector` uses the same syntax as accepted in `querySelector`.

But maybe that's not even an issue since `querySelector` already throws for invalid selectors, so if it's only supported there it won't throw?

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

Received on Wednesday, 15 May 2019 22:33:03 UTC