Joschi Kuphal 吉: Pls help me w/ this: When and why would you want to have width & height attributes explicitly set on an #SVG element (in add. to viewBox)?

@jkphl width&height and viewBox do different things — w/h are specified with units and set the dimensions of the container. viewBox is unitless (user units) and defines the portion of the canvas displayed. More on the MDN wiki

updated: — 1 comments 2 likes