mq-polyfill
mq-polyfill copied to clipboard
CSSOM-valid and jsdom/Jest-compatible matchMedia server-side polyfill.
The `addListener` and `removeListener` methods of `MediaQueryList` are deprecated and using them now causes linting errors as seen below. ![image](https://user-images.githubusercontent.com/5466341/98810971-0f406880-23ee-11eb-9cd4-32c0f22afe82.png) I'd like to request adding support for the `addEventListener` and...
- instead of polyfilling it oneself or introducing potentially confusing code - and the /polyfill import can also be recommended for Jest environments for even greater simplicity See [`window-resizeto`](https://github.com/agilgur5/window-resizeto)'s docs...
Update the example in the readme to follow the API in JSDOM repo: Ref: https://github.com/jsdom/jsdom
🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨 To enable Greenkeeper, you need to make sure that a [commit status](https://help.github.com/articles/about-statuses/) is reported on all...
Whenever passing a float as the value of a `max-width` query, `matches` returns `false` even when the test should pass. Tested this with both `px` and `em` based queries. **Expected...
Hi there. Just want to thank you for creating this repo. I was trying to polyfill `matchMedia` to jsdom based on https://github.com/paulirish/matchMedia.js but had no luck. Not sure what you...