Skip to content

Truly independent web browser

773 B
Raw Blame
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../../expected/svg/green-square-100-ref.html" />
<div id="g" style="display: none"></div>
<svg width="100" height="100">
    <linearGradient id="g">
        <stop offset="0" stop-color="green" />
    </linearGradient>
    <rect width="100" height="100" fill="url(#g)" />
</svg>
<script>
    requestAnimationFrame(() => {
        requestAnimationFrame(() => {
            document.querySelector("div").id = "other";
            requestAnimationFrame(() => {
                if (window.internals)
                    internals.signalTestIsDone("PASS");
                else
                    document.documentElement.classList.remove("reftest-wait");
            });
        });
    });
</script>
</html>