[Webkit-unassigned] [Bug 51795] @transform not updated after changes are made to SVGTransformList
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun May 22 08:24:30 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=51795
--- Comment #4 from Dirk Schulze <krit at webkit.org> 2011-05-22 08:24:30 PST ---
You may misinterpret the results:
<svg xmlns="http://www.w3.org/2000/svg" onload="run()">
<rect width="100" height="100" fill="red"/>
<rect id="transform" width="50" height="50" fill="green"/>
<script type="text/ecmascript"><![CDATA[
function run() {
// Scale the second rect by factor 2
var rect = document.getElementById("transform");
rect.setAttribute("transform", "matrix(2,0,0,2,0,0)");
// Check if setAttribute influences SVGAnimatedTransformList
var matrix = rect.transform.baseVal.getItem(0).matrix;
console.log("matrix("+matrix.a+","+matrix.b+","+matrix.c+","+
matrix.d+","+matrix.e+","+matrix.f+")");
}
]]></script>
</svg>
If it would not work, you'd see some red on the SVG and the output on the console wouldn't be 'matrix(2,0,0,2,0,0)'. But it works on all versions of webkit.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list