working on fixing broken resize tests
refactored svgAttr to be more generic