Ouput all the page's media queries in a list
- by alecrust
Using JavaScript, what would be the best way to output a list containing all media queries that are being applied to the current page.
I assume this would need to filtering to find embedded media queries i.e.
<link rel="stylesheet" media="only screen and (min-width: 30em)" href="/css/30em.css">
as well as media queries located in CSS…