x_equals(rect2.width.animVal.value, 150, epsilon);
    assert_equals(rect2.width.baseVal.value, 150);

    // Switch to new target while animation is running.
    // The effect is that rect1 is now reset to the initial state, before any animation was applied to it.
    // Compatible with FF. In Opera it only works when not driving the timeline using setCurrentTime.
    rootSVGElement.ownerDocument.getElementById("an1").setAttributeNS(xlinkNS, "xlink:href", "#target2");
}

function sample3() {
    assert_app