gecko-dev/layout/reftests/border-image/svg-as-border-image-4.html
Florian Quèze 85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00

27 lines
640 B
HTML

<html class="reftest-wait">
<head>
<title>test of svg-as-border-image</title>
<style type="text/css">
div {
width: 400px;
height: 100px;
margin: 30px;
border-width: 30px;
border-style: solid;
border-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><circle cx="50%" cy="50%" r="50%" fill="red"/></svg>') 5% stretch;
}
</style>
<script>
function resizeDiv() {
document.getElementById('borderdiv').style.width = '100px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', resizeDiv);
</script>
</head>
<body>
<div id="borderdiv"></div>
</body>
</html>