summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/svg-integration/filter-html-dynamic-01.xhtml
blob: 7a6a4ab07c837543399642f05fcbbe695fe4e24b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:svg="http://www.w3.org/2000/svg">
<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>