[Webkit-unassigned] [Bug 16075] setRotate method in SVGTransform does apparently nothing.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 8 15:10:28 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16075


zimmermann at kde.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #4 from zimmermann at kde.org  2008-02-08 15:10 PDT -------
Hi again,

> Hm, I see there might be problems with that testcase.  Here's another:
thanks for your work, that testcase is valid :-)

> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html 
>   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>WebKit bug 16075</title>
> </head>
> <body>
> <svg version="1.1"
>      xmlns="http://www.w3.org/2000/svg">
>   <g transform='rotate(10)' id='b'>
>   <text x='50' y='50' font-size='20' fill='red'>
>     Bob
>   </text>
>   </g>
> </svg>
> <script>
> g=document.getElementById('b')
> g.transform.baseVal.getItem(0).setRotate(0, 50, 50)
> </script>
> </body>
> </html>
> 
> The plain SVG draws the text "Bob" rotated at a smallish angle (10 degrees). 
> The script then attempts to change the rotation to 0 so that the text should be
> displayed level (horizontally).
> 
> Safari: text is rotated.
> Firefox: text not rotated.
> 
> This suggests that setRotate has apparently no effect.
> 
> Is this testcase any more useful?
Yes much better - this is fixed in Safari trunk since some days.
All dynamic updating should work faster now!

> All this attribute synchronisation stuff is quite interesting but I don't
> consider it germane to this bug.  It was a mistake to rely on the attributes
> for the original testcase.
The SVG attribute synchronisation is interessting for sure, but it's not
spec'ed - and I'm not sure wheter SVG DOM changes should be represented in the
attribute values.

> Of course, one might consider that it's a bug that it works in Firefox and not
> in Safari.
You mean the attribute synchronisation or the testcase you posted?
The testcase is valid, and it's fixed now. The attribute sync is not
implemented and it's unlikely that we'll do that, unless specified by SVG 1.1

Thanks for your help,
closing bug now!

Please try more cases like this - I'm always interessted in 'dynamic update'
bugs.

Greetings,
Niko


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list