Re: [csswg-drafts] [mediaqueries] Merge error handling section into evaluating section (#7595)

Before this change, it was possible to detect non-supported media queries by checking for `"not all"`, as developers, including myself, have [documented in blog posts](https://blog.tomayac.com/2019/09/16/not-all-is-nothing-finding-out-if-the-browser-supports-a-given-media-query/#testing-if-a-browser-understands-a-media-query) like this. 

```js
window.matchMedia('(prefers-color-scheme: dark)').media
// '(prefers-color-scheme: dark)'

// This check no longer works.
window.matchMedia('(hahaha-lol: not-a-thing)').media
// Before: 'not all'
// Now: '(hahaha-lol: not-a-thing)'
```

Is this a potential web compatibility issue, as feature-detecting code like the above now breaks?

(CC: @mathiasbynens in the context of this [DevTools CL](https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4774209)) 

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


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

Received on Wednesday, 16 August 2023 17:41:05 UTC