Gitlab logo svg not rendered in Inkscape

Bug #1658754 reported by Hachmann
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

The file https://gitlab.com/gitlab-com/gitlab-artwork/raw/master/logo/logo.svg is displayed correctly in Firefox, but only shows an empty page in Inkscape (0.91 + 0.92 tested).

Only upon ungrouping all the groups, the image shows up.

I assume it has something to do with the masking, whose color is 'unset' (update: set on the mask, but not on the <use> element). Not sure if FF does it right, or if Inkscape does (and what the function of a mask without a color would be... a clip seems to be more suitable).

=====
SVG source was created with:
  Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch
(same as test case from older duplicate bug #1599723)

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

Attaching GitLab logo SVG file as currently available to the bug report - external links can can get lost, or the SVG source of the linked file might change.

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

The fill color of the mask is not 'Unset' - it is 'white', defined by a presentation attribute on the mask definition (the container which holds the <use> reference to the path defining the mask geometry):

                        <mask id="mask-2" sketch:name="path22" fill="white">
                            <use xlink:href="#path-1"></use>
                        </mask>

It works as expected in Inkscape (tested with 0.48.5, 0.91 and lp:inkscape/0.92.x) if the fill presentation attribute is defined for the <use> element (a "clone") inside the mask definition, instead of its parent container (see attached modified version of the test case):

                        <mask id="mask-2" sketch:name="path22">
                            <use xlink:href="#path-1" fill="white"></use>
                        </mask>

tags: added: masking styles svg
Revision history for this message
Hachmann (marenhachmann) wrote :

Thank you, su_v! (it was 'unset' after ungrouping)

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

Quoting confirmation from irc (#inkscape-devel):

20:23 Mc : Tavmjong: maybe you can give a quick look at https://bugs.launchpad.net/bugs/1658754 ? (<mask fill="white"><use xlink:href="#path-1" /></mask> gives different result than <mask><use xlink:href="#path-1" fill="white"/></mask> )
20:36 Tavmjong : Mc: I believe that logo.svg is correct. The path referenced by the use element in the mask should inherit the white.
20:37 Tavmjong : Mc: It's kind of messy SVG....
20:37 Mc : but why doesnt the white fill cascade ?
20:42 Tavmjong : Mc: I meant that Firefox (and Chrome) render it correctly... the white does cascade.

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

Hi, this issue has been reported on GitLab: https://gitlab.com/inkscape/inkscape/issues/635

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.