Use margin instead of width to test for :change pseudo-selector

In Firefox it's not possible to adjust the width/height of the checkbox using css, hence the test would fail while support for :checked obviously exists. I suggest using `margin-left` and measuring `offsetLeft` instead, code attached.