Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!--
Any copyright is dedicated to the Public Domain.
-->
<head>
<style>
div{
left: 10px;
top: 10px;
position: absolute;
width : 100px;
height : 100px;
margin : 10px;
background : red;
filter:url(#flood);
}
</style>
</head>
<body style="margin:0">
<script>
window.addEventListener('load',function(e){
var div = document.createElement('div');
document.body.appendChild(div);
},false);
</script>
<svg:svg width="0" height="0">
<svg:filter id="flood" x="0" y="0" width="100%" height="100%" filterUnits="userSpaceOnUse">
<svg:feFlood flood-color="lime"/>
</svg:filter>
</svg:svg>
</body>
</html>