<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg">
<text x="50" y="50">Expected: matrix(1, 0, 0, 1, 0, 0)</text>
<text id="log" x="50" y="80">Actual: TEST FAILED!</text>
<script>
function printMatrix (m) {
return 'matrix(' + [m.a, m.b, m.c, m.d, m.e, m.f].join(', ') + ')';
}
var matrix = document.documentElement.createSVGMatrix();
matrix.translate(100, 100);
document.getElementById("log").firstChild.data = 'Actual: ' + printMatrix(matrix);
</script>
</svg>