Skip to content

Truly independent web browser

800 B
Raw Blame
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../../expected/svg/green-square-100-ref.html" />
<svg width="100" height="100">
    <clipPath id="c">
        <rect id="clip-rect" width="100" height="100" />
    </clipPath>
    <rect width="100" height="100" fill="green" />
    <rect width="100" height="100" fill="red" clip-path="url(#c)" />
</svg>
<script>
    requestAnimationFrame(() => {
        requestAnimationFrame(() => {
            document.getElementById("clip-rect").remove();
            requestAnimationFrame(() => {
                if (window.internals)
                    internals.signalTestIsDone("PASS");
                else
                    document.documentElement.classList.remove("reftest-wait");
            });
        });
    });
</script>
</html>