Test canvas size with an untainted canvas

See https://github.com/openlayers/ol3/pull/1928/files#r11324611, which this pull request fixes.