[Libreoffice-bugs] [Bug 133487] New: z-index wrong for shape with style:run-through="background"

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu May 28 23:57:19 UTC 2020


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

            Bug ID: 133487
           Summary: z-index wrong for shape with
                    style:run-through="background"
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rb.henschel at t-online.de

Created attachment 161386
  --> https://bugs.documentfoundation.org/attachment.cgi?id=161386&action=edit
Example with wrong z-index

Open attached document. You see a red triangle in background, then a blue
ellipse in the middle and a yellow rectangle in front. So for the z-index you
would expect
red index < blue index < yellow index. But when opening the file you will find
red (2), blue (0) and yellow (1).

For z-index ODF 1.3 says in 19.231, part 3 of the spec:
"The draw:z-index values increase from back to front."
And especially for the case style:run-through:
"For a shape on which the style:run-through 20.351 attribute with value
foreground is in effect, producers should not generate a draw:z-index value
that is smaller than the value of any draw:z-index on a shape on which the
style:run-through attribute with value background is in effect."

Because negative values are not allowed, the z-index values should be
red(0), blue(1), yellow(2), for example.

The ODF 1.2 spec had not such clear rules, but only states "The draw:z-index
attribute defines a rendering order for shapes in a document instance."
It becomes more precise in ODF 1.3 with issue
https://issues.oasis-open.org/browse/OFFICE-2122. The implementation in LO 7.0
needs to be adapted for ODF 1.3.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200528/b76cbc25/attachment.htm>


More information about the Libreoffice-bugs mailing list