2010-09-14 13:20:32 -07:00
|
|
|
<!-- This test makes sure that we resize SVG content correctly after the
|
|
|
|
container width is dynamically modified. -->
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<script>
|
|
|
|
function go() {
|
|
|
|
document.getElementById("wrapper").style.width = "200px";
|
2010-09-15 23:45:19 -07:00
|
|
|
|
2010-09-16 16:56:06 -07:00
|
|
|
// Use a setTimeout to delay snapshot, to hopefully workaround
|
|
|
|
// random orange bug 596478.
|
2010-09-15 23:45:19 -07:00
|
|
|
setTimeout(
|
|
|
|
function() { document.documentElement.removeAttribute("class"); },
|
2010-09-16 16:56:06 -07:00
|
|
|
200);
|
2010-09-14 13:20:32 -07:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body onload="go()">
|
|
|
|
<div id="wrapper"
|
|
|
|
style="width: 100px; height: 200px; border: 2px dashed green">
|
|
|
|
<img src="squaredCircle-viewBox-noSize.svg">
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|