Fix a few bugs with scaling in HTML-CS mode.
Fix scaling for SVG (similar to HTML-CSS fixes).  Issue #703