<svg xmlns='http://www.w3.org/2000/svg'> <rect width='100' height='100' fill='black'> <animateColor attributeName="fill" by='green' dur='3s' fill='freeze' /> </rect> <text x='10' y='120'>The rect should animate from black to green over 3 seconds</text> </svg>