[Webkit-unassigned] [Bug 16075] setRotate method in SVGTransform does apparently nothing.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 8 13:36:38 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=16075
------- Comment #3 from drj at pobox.com 2008-02-08 13:36 PDT -------
(In reply to comment #2)
> Hm, I'm not entirely sure about the testcase.
Hm, I see there might be problems with that testcase. Here's another:
<?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?
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.
Of course, one might consider that it's a bug that it works in Firefox and not
in Safari.
--
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