In following d3.js snippet I am expecting appropriate rotate style to be applied when I use different browser. However the second style always overrides the first one.
var degrees = Math.floor( Math.random() * 360 );
box_tr.append('td')
.attr('id', 'image')
.append('img')
.attr('id', 'myimage')
.attr('src', imgurl)
.attr('style',"-webkit-transform: rotate(" + degrees + "deg);")
.attr('style',"-moz-transform: rotate(" + degrees + "deg);");
Is my expectation correct? What are the alternatives?