Support for visibility property

Bug #166181 reported by Emptyweevil
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Wishlist
Unassigned

Bug Description

Inkscape hides components using "display: none",
however other SVG producers (notably Apache FOP)
sometimes use "visibility: hidden". The differences in
the context of Inkscape are trivial, but in the case of
FOP, which uses a hidden rectangle the size of the page
as a link to the next page, the differences are
significant enough.

If you can, peruse the output of FOP for a multi-page
document and you will observe that all pages aside from
the right half of the last page are all blue, obscuring
the content.

I can give you an example if you really need, but this
should be enough to give you an idea:

<g id="Page-1" style="font-family:sanserif;font-size:12"
   transform="translate(0,0.0)">
    <rect width="612.0" x="0.0" height="792.0" y="0.0"
          style="fill:none;stroke:black"/>
    <text x="72.0" y="80.0"
style="font-family:serif;font-size:10.0">
        some text here and so on...
    </text>
<!-- more text -->
<a xlink:href="#svgView(viewBox(0, 0.0, 612, 792))"
xlink:type="simple"
   xlink:actuate="onRequest" xlink:show="replace"
   xmlns:xlink="http://www.w3.org/1999/xlink">
    <rect width="306.0" x="0.0" height="792.0" y="0.0"
          style="fill:blue;visibility:hidden"/>
</a>
</g>

Tags: svg
Revision history for this message
Peter Moulder (pjrm) wrote :

I'm considering doing a buggy implementation of the
visibility property, where visibility:hidden would hide all
descendent objects too (even descendents that requested
visibility:visible).

Would such a change be overall an improvement?

I'm not sufficiently familiar with nr_arena to do visibility
correctly.

Changed in inkscape:
importance: Low → Wishlist
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

Related discussion:
* Bug #166042 (sf1061934) “visible child in hidden parent”
  https://bugs.launchpad.net/inkscape/+bug/166042

Revision history for this message
su_v (suv-lp) wrote :

Attaching test case from bug description as SVG file to ease testing/comparing with current browsers.

Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report.

Moved to: https://gitlab.com/inkscape/inbox/issues/2177
Closed by: https://gitlab.com/jhofinger

Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.