https://issues.apache.org/ooo/show_bug.cgi?id=122594

            Bug ID: 122594
        Issue Type: DEFECT
           Summary: [SVG] in inner svg the missing size is set to viewBox,
                    but should be 100%
           Product: Draw
           Version: AOO400-dev
          Hardware: PC
               URL: http://www.w3.org/TR/SVG/struct.html#SVGElementWidthAt
                    tribute
                OS: Windows 7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 80913
  --> https://issues.apache.org/ooo/attachment.cgi?id=80913&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to