Gecko Compatibility

This PR addresses 2 problems:

- invalid `window.devicePixelRatio` stubbing leading to failing tests
- invalid constructor argument detection leading to invalid element selection

![](http://i.imgur.com/fyxJiag.gif)
^ Hop the bugs!