Apache OpenOffice (AOO) Bugzilla – Issue 122594
[SVG] in inner svg the missing size is set to viewBox, but should be 100%
Last modified: 2017-05-20 11:42:14 UTC
Created attachment 80913 [details] inner svg element without width/height but with viewBox Open attached document in Browser and in AOO. Notice, that the black rectangle is centered in the blue rectangle in browser, but left aligned in AOO. The error is in SvgSvgNode::decomposeSvgNode. If the element svg has got no width/height the width/height of the viewBox attribute is used. Then the check "if(aTarget.equal(*getViewBox()))" is true. In result the sequence is appended immediately and the preserveAspectRatio attribute is not evaluated. Correct behavior is to use the default width="100%" and height="100%", see link to specification.
ALG: Even more complicated, but showstoppers have prio. Will have a look ASAP. Grepping, though.
Created attachment 80928 [details] example with relative size in width and height The display is wrong too, when a relative size is set explicitly. Compare graphic in Browser and AOO.
Created attachment 80939 [details] Already had something, adding
grant showstopper flag
ALG: Checked again, comitted, done.
"alg" committed SVN revision 1498895 into trunk: i122594 correctly handle iner svg node when no width/height or percent is given
*** Issue 122593 has been marked as a duplicate of this issue. ***
ALG: #122593# is pretty much the same, adding here, too.
"alg" committed SVN revision 1499006 into trunk: i122594 Added same handling for outer SVG element
verify on Rev. 1499347 on Windows 7