Closed Bug 307717 Opened 19 years ago Closed 19 years ago

gradients on text elements wrong when using currentTranslate/Scale

Categories

(Core :: SVG, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: holger, Unassigned)

References

Details

Attachments

(5 files)

changing currentTranslate/Scale causes gradients applied to text elements, to be
scale / translated incorrectly.( this is just a guess: it seems
currentTranslate/Scale are applied twice somehow )
Attached image testcase
in this example, currentScale is set to 0.5, the gradient on the text seems to
fill only 1/2 of the text.
I can't reproduce this bug on a current (nightly) build.  What build are you
using, Holger?
i was testing with 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050907
Firefox/1.6a1
and now i tested with 
1.5 beta 1

i see this on the trunk and the branch, i will upload a screenshot soon.
Attached image screenshot of testcase
Attached image screenshot 2
setting currentScale to 0.25 shows it more clearly...
this seems not directly connected to currentScale/Translate , 
i see the same problem here,

http://www.w3.org/TR/SVG/images/filters/feComponentTransfer.svg

i know its not connected to filters, the text identity is filled with the same
gradient as the top rect. does this look correct in your build ?
notice the gradient on the text starts with green turns blue and finally black.
after translating the image to the right, the gradient on the text starts with
red turns green, then blue, then black, but its much shorter then the gradient
on the rect.
I can't reproduce this on Linux/Cairo, so I suspect that we have a GDIPlus
problem .  I don't have a Windows/GDI build environment, so I'll take a look and
see if anything jumps out at me, but I really can't debug this one very easily.
confirming its a GDI issue, just tested on linux and it looks good.

this bug is not only connected to currentTranslate/Scale ,
but also changes to the viewBox and viewport causes the gradient to "change". 

additionally ive tested some older builds, and its allready there for a long time,
sorry for not spotting this earlier ;-)

if you have any idea how i could help track down the bug, just let me know...
Holger, thanks for the offer.  I'm cc'ing tor on this bug since he did the
GDIPlus gradient code, so perhaps he has an idea.  I'll walk through the GDIPlus
code and see if anything jumps out at me.
could this be connected to the patch for bug #291785 ?
*** Bug 309168 has been marked as a duplicate of this bug. ***
Marking wontfix. We have no plans to continue development of the GDI+ backend.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: