Skip to content

Truly independent web browser

1.1 KB
Raw Blame
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../../expected/svg/pattern-css-transform-restyle-two-referencers-ref.html" />
<style>
    body {
        margin: 0;
    }
</style>
<svg width="300" height="100">
    <pattern id="p" width="200" height="100" patternUnits="userSpaceOnUse">
        <rect width="100" height="100" fill="red" />
        <rect x="100" width="100" height="100" fill="rgb(0, 128, 0)" />
    </pattern>
    <rect width="100" height="100" fill="url(#p)" />
    <rect x="200" width="100" height="100" fill="url(#p)" />
</svg>
<script>
    requestAnimationFrame(() => {
        requestAnimationFrame(() => {
            document.getElementById("p").style.transform = "translate(-100px, 0)";
            requestAnimationFrame(() => {
                requestAnimationFrame(() => {
                    if (window.internals)
                        internals.signalTestIsDone("PASS");
                    else
                        document.documentElement.classList.remove("reftest-wait");
                });
            });
        });
    });
</script>
</html>