Gist 9044854
✓ Published0🌍 Public
Aakre54
Last edited Feb 17, 2014
Created on Feb 17, 2014
This visualization displays the media queries from all stylesheets on the page as a flat list of text strings, extracted directly from the browser’s CSSOM. It shows each unique media condition—such as screen widths or print rules—in the order they appear across linked and embedded stylesheets. The code uses the native `document.styleSheets` collection and iterates over `cssRules`, filtering for rules that have a `media` property and pushing the first media query string into an array. No external libraries are used; it relies solely on vanilla JavaScript DOM APIs.
AI-generated description