Truly independent web browser
<!DOCTYPE html>
<link rel="match" href="../expected/oversized-svg-background-viewport-ref.html">
<style>
body { margin: 0; }
div {
width: 40px;
height: 40px;
background-position: -100px -100px;
}
#wide, #scaled-wide {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20000' height='676' viewBox='0 0 20000 676'%3E%3Crect x='80' y='80' width='80' height='80' fill='green'/%3E%3C/svg%3E");
}
#tall {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='676' height='20000' viewBox='0 0 676 20000'%3E%3Crect x='80' y='80' width='80' height='80' fill='green'/%3E%3C/svg%3E");
}
#without-viewbox {
background-position: -170px -100px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20000' height='676'%3E%3Crect x='80' y='80' width='80' height='80' fill='green'/%3E%3C/svg%3E");
}
#different-viewbox {
background-position: -5100px -100px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20000' height='676' viewBox='0 0 10000 676'%3E%3Crect x='80' y='80' width='80' height='80' fill='green'/%3E%3C/svg%3E");
}
#scaled-wide {
transform: scale(0.5, 0.75);
transform-origin: 0 0;
}
</style>
<div id="wide"></div>
<div id="tall"></div>
<div id="without-viewbox"></div>
<div id="different-viewbox"></div>
<div id="scaled-wide"></div>