https://bugs.documentfoundation.org/show_bug.cgi?id=96066

            Bug ID: 96066
           Summary: ODF does not allow negative values in attribute
                    fo:padding, but LO writes negative values
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Draw
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: rb.hensc...@t-online.de

Created attachment 120792
  --> https://bugs.documentfoundation.org/attachment.cgi?id=120792&action=edit
Example produced with LO 5.1

How to produce an example document: Start with an Impress or Draw document.
Insert an image. Switch to text edit mode (press F2) and enter some text. Open
Format > Text and set the 'text anchor' to center/bottom and the 'Spacing to
Borders' part 'Bottom' to -2cm. Save the document.

The entered text will be below the image, so it can be used as description of
the image. This allows to attach text to a drawing object without grouping.

Unpack the document and open the file content.xml. You will find an element
style:style with style:family="graphic" and child <style:graphic-properties>.
Therein you will find the attributes "draw:textarea-vertical-align="bottom" and
"fo:padding="-2cm".

Now look into the specification part 1, section "20.211 fo:padding-bottom". It
specifies, "The fo:padding-bottom attribute has the data type nonNegativeLength
18.3.20."

And you find the same restriction, when you follow the link to [XSL]. There you
can read, "Unlike margin properties, values for padding properties cannot be
negative."

OpenOffice.org has written negative values since the beginning, although in ODF
1.1 it is already of attribute type "nonNegativeLength".

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to