For quite a while I have been looking for a way to “mirror” my CSS media queries in JavaScript, but without duplicating the actual queries. Of course, you can use matchMedia to evaluate a media query in JavaScript, but then you have to maintain your breakpoints in two places – not ideal. Paul Hayes devised a clever method in his fork of the matchMedia polyfill, using transitions on dummy elemen

