2 <script src='../../resources/js-test.js'
></script>
4 description("SVG scale transform with negative scale values should be correctly converted to strings.");
6 var svg
= document
.createElementNS('http://www.w3.org/2000/svg', 'svg');
7 var g
= document
.createElementNS('http://www.w3.org/2000/svg', 'g');
8 var transform
= svg
.createSVGTransform();
9 transform
.setScale(-2, -4);
11 var list
= g
.transform
.baseVal
;
12 list
.appendItem(transform
);
14 shouldBeEqualToString("g.getAttribute('transform')", "scale(-2 -4)");