Skip to content

When group <g> element has gradient fill, child text elements inherit it #10

@TrevorPage

Description

@TrevorPage

In following example, text should be white (when viewed in Inkscape) but is actually shown with the gradient:

<g
   id="abcd"
   transform="matrix(0.73981966,0,0,0.7515789,11.907041,9.6662007)"
   style="fill-opacity:1;fill:url(#linearGradient3843)">


         <text
     xml:space="preserve"
     style="font-size:64.37111664px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:-1.34106481px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Helvetica;-inkscape-font-specification:Helvetica"
     x="160.09323"
     y="50.767563"
     id="text3071"
     sodipodi:linespacing="125%"
     transform="scale(1.0079161,0.99214609)"><tspan
       sodipodi:role="line"
       id="tspan3073"
       x="160.09323"
       y="50.767563"
       style="font-size:53.64259338px;fill:#ffffff">1234</tspan></text>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions