Truly independent web browser
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../../expected/svg/green-square-100-ref.html" />
<svg width="100" height="100">
<linearGradient id="g" gradientUnits="userSpaceOnUse" x1="-100" x2="100">
<stop id="s0" offset="1" stop-color="red" />
<stop id="s1" offset="1" stop-color="green" />
</linearGradient>
<rect width="100" height="100" fill="url(#g)" />
</svg>
<script>
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.getElementById("s0").setAttribute("offset", "0.5");
document.getElementById("s1").setAttribute("offset", "0.5");
requestAnimationFrame(() => {
if (window.internals)
internals.signalTestIsDone("PASS");
else
document.documentElement.classList.remove("reftest-wait");
});
});
});
</script>
</html>