Firefox fixes:
- When getting SVG width or height, use parent to get clientWidth or clientHeight if <svg> clientWidth or clientHeight is 0.
- Set document height to 100%.