<svg xmlns="http://www.w3.org/2000/svg" fill="blue"> <style>.v { fill: green }</style> <g> <set attributeName="class" to="v" begin="1s"/> <rect width="100" height="100"/> </g> </svg>