Page MenuHome

viewBox attribute in exported svg wrong
Closed, ResolvedPublic

Description

The viewBox attribute in the exported svg contains px which is wrong

<svg width="2048px" height="2048px" viewBox="0px 0px 2048px 2048px"
xmlns="http://www.w3.org/2000/svg" version="1.1">

the viewBox above should be viewBox="0 0 2048 2048"

see http://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute

Details

Type
Bug

Event Timeline

I think I disagree, the doc is a bit fuzzy on this point, but imho viewBox components are units (http://www.w3.org/TR/SVG/coords.html#Units) and as such, they may or may not have units specifiers…