refactor extract css.Units util

Also fix some small issues:
- `font-size` -> `fontSize`
- `fontSize` can be non-pixel in IE
fix #739 consider borders/paddings in getStyle(width|height) in IE