Truly independent web browser
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../expected/repeated-svg-background-scale-change-ref.html">
<style>
body {
margin: 0;
}
#box {
width: 100px;
height: 100px;
transform-origin: 0 0;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 2'%3E%3Ccircle cx='1' cy='1' r='1' fill='green'/%3E%3C/svg%3E");
background-size: 20px 20px;
}
</style>
<div id="box"></div>
<script>
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.getElementById("box").style.transform = "scale(2)";
requestAnimationFrame(() => {
requestAnimationFrame(() => {
if (window.internals)
internals.signalTestIsDone("PASS");
else
document.documentElement.classList.remove("reftest-wait");
});
});
});
});
</script>
</html>