Fix #1559: offsetWidth is rounded to whole pixel, use style['width'] instead

All unit tests passing, so appears that padding and borders are still
calculated correctly.
Merge pull request #1605 from PaulL1/1559_render_container_width

Fix #1559: offsetWidth is rounded to whole pixel, use style['width'] instead