Comment 0 for bug 166885

Revision history for this message
jimmac (jimmac) wrote : viewBox with preserveAspectRatio="none" misinterpreted

After strugling with different renderings between
inkscape and librsvg, it turns out the viewbox
attribute seems to be misinterpreted in Inkscape.

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

Tested with the sample case SVG -
http://www.w3.org/TR/SVG/images/coords/ViewBox.svg.
Editing the viewbox to be stretched by 50% on the X axis:

<svg width="150px" height="200px"
     viewBox="0 0 1500 1000" preserveAspectRatio="none"
     xmlns="http://www.w3.org/2000/svg" version="1.1">

rsvg render corresponds to the w3c result
http://www.w3.org/TR/SVG/images/coords/ViewBox-Width150.png

Attaches is rsvg output and inkscape output.