Presentation attributes (fill, stroke) of <defs> not inherited by child elements of <mask>

Bug #1346677 reported by Hoj
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Medium
Unassigned

Bug Description

I'm not sure it's bug, but report it.

In Google Chrome or Internet Explorer, attached SVG file is shown like attached ie.png file.
When I import it to Inkscape (0.48.4, 0.48.5 and 0.91pre1) Inkscape misses some elements like attached imported.png file.

Platform is Windows 8.1 x64.

Tags: masking svg
Revision history for this message
Hoj (solum5013) wrote :
su_v (suv-lp)
tags: added: masking
Revision history for this message
su_v (suv-lp) wrote :

Diff:

$ diff -u BloodCat.svg BloodCat-inkscape-compatible.svg
--- BloodCat.svg 2014-07-22 02:30:42.000000000 +0200
+++ BloodCat-inkscape-compatible.svg 2014-07-22 10:45:56.000000000 +0200
@@ -2,19 +2,19 @@
 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="255" height="380" viewBox="0 0 255 380" stroke-width="8">
  <defs fill="#fff" stroke="#fff">
   <mask id="mTongue">
- <path d="M27 10c-30 130 116 130 86 0" stroke="#000"/>
+ <path d="M27 10c-30 130 116 130 86 0" stroke="#000" fill="#fff"/>
   </mask>
   <mask id="mBody">
- <polygon points="-210,0 -280,404 280,404 210,0"/>
+ <polygon points="-210,0 -280,404 280,404 210,0" fill="#fff"/>
   </mask>
   <mask id="mFoot">
- <polygon points="-200,0 -200,-300 200,-300 200,0"/>
+ <polygon points="-200,0 -200,-300 200,-300 200,0" fill="#fff"/>
   </mask>
   <mask id="mFootline">
- <ellipse cx="0" cy="-100" rx="95" ry="120"/>
+ <ellipse cx="0" cy="-100" rx="95" ry="120" fill="#fff"/>
   </mask>
  </defs>
- <g fill="#000" stroke="#000" transform="scale(.3), translate(424, 4)">
+ <g fill="#000" stroke="#000" transform="scale(.3) translate(424, 4)">
   <g id="ear" transform="translate(0, 263)">
    <path d="M-420 0c0-350 160-350 350 0" fill="#d50c0f"/>
    <path d="M-420 0c0-350 160-350 290 0"/>
@@ -54,10 +54,10 @@
    </g>
    <g id="beard" transform="translate(-412, 440)">
     <path id="beardD" d="M0 0q50-12 80-6"/>
- <use xlink:href="#beardD" transform="rotate(-10),translate(0, 41)"/>
- <use xlink:href="#beardD" transform="rotate(-20),translate(-10, 82)"/>
+ <use xlink:href="#beardD" transform="rotate(-10) translate(0, 41)"/>
+ <use xlink:href="#beardD" transform="rotate(-20) translate(-10, 82)"/>
    </g>
    <use xlink:href="#beard" transform="scale(-1,1)"/>
   </g>
  </g>
-</svg>
\ No newline at end of file
+</svg>

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

Reproduced with 0.48.5 and current trunk r13455 on OS X 10.7.5.

Needs review by SVG expert (mask color, separator in list of transforms).

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
tags: added: svg
Revision history for this message
su_v (suv-lp) wrote :

Second issue (commas as separator in list of transforms) also reported in bug #1365058

su_v (suv-lp)
summary: - Some missing element with importing svg
+ Presentation attributes (fill, stroke) of <defs> not inherited by child
+ elements of <mask>
Revision history for this message
Hoj (solum5013) wrote :

Still same on 0.92.1 r15371

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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