This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
This one is a real brain teaser. ?
Kilian Valkhof published Detecting media query support in CSS and JavaScript and I had to read it a few times to understand its logic.
In short: that's how you can detect if a browser supports prefers-reduced-data
CSS media query:
/* Apply if prefers-reduced-data is supported */
@media not all and (prefers-reduced-data), (prefers-reduced-data) {
...
}
In long: read Killian's post.
Reply to Stefan
This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

Stefan Judis | Sciencx (2021-07-25T17:00:00+00:00) How to detect media query support (#snippet). Retrieved from https://www.scien.cx/2021/07/25/how-to-detect-media-query-support-snippet/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.