Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | [SVG] in inner svg the missing size is set to viewBox, but should be 100% | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Draw | Reporter: | Regina Henschel <rb.henschel> | ||||||||
Component: | code | Assignee: | Armin Le Grand <Armin.Le.Grand> | ||||||||
Status: | CLOSED FIXED | QA Contact: | |||||||||
Severity: | Normal | ||||||||||
Priority: | P3 | CC: | Armin.Le.Grand, doneyourself, issues, jsc | ||||||||
Version: | 4.0.0-dev | Flags: | jsc:
4.0.0_release_blocker+
|
||||||||
Target Milestone: | 4.0.0 | ||||||||||
Hardware: | PC | ||||||||||
OS: | Windows 7 | ||||||||||
URL: | http://www.w3.org/TR/SVG/struct.html#SVGElementWidthAttribute | ||||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||||
Developer Difficulty: | --- | ||||||||||
Issue Depends on: | 122600 | ||||||||||
Issue Blocks: | |||||||||||
Attachments: |
|
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 |
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.