Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/svg/smil/reftest.list
<!--
Any copyright is dedicated to the Public Domain.
-->
class="reftest-wait">
<title>Test animation of the "in" and "result" <string> attributes on "filter" elements</title>
<script xlink:href="smil-util.js" type="text/javascript"/>
<defs>
<filter id="filt">
<feFlood flood-color="red" result="flood1"/>
<feFlood flood-color="lime" result="nowhere">
<animate attributeName="result"
calcMode="discrete"
begin="0s" dur="0.5s"
from="nowhere" to="flood2"
fill="freeze"/>
</feFlood>
<feOffset in="flood1">
<animate attributeName="in"
calcMode="discrete"
begin="0s" dur="0.5s"
from="flood1" to="flood2"
fill="freeze"/>
</feOffset>
</filter>
</defs>
<rect width="100%" height="100%" fill="red"/>
<rect width="100%" height="100%" fill="red" filter="url(#filt)"/>
<script type="text/javascript">
function doTest() {
setTimeAndSnapshot(1, true);
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</svg>