rc = `/media/counting.mp4?pipe=trickle(100:d1:r2)&random=${Math.random()}`;
    });
    video.currentTime = 10;
    assert_buffering_state(false);
    const promise = video.play();
    assert_buffering_state(true);
    video.src = "";
    // Wait for the video to abort trying to play
    try {
        await promise;
    } catch (err) {}
    await video.pause();
    assert_buffering_state(false);
}, "Test :has(:buffering) invalidation");
</script>
