<!DOCTYPE html>
<base href="http://www.example.com/">
<style>
#target {
  width: 100px;
  height: 100px;
  background-color: red;
  filter: url(#filter);
}
</style>
<svg>
  <filter id="filter" x="0" y="0" width="1" height="1" color-interpolation-filters="sRGB">
    <feFlood flood-color="green"/>
  </filter>
</svg>
<div id="target"></div>
