summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/filters/dynamic-filter-invalidation-02.svg
blob: b424e0734e5a55daa7ab59d72611ae36f9d7ab28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="run_test();">
  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=769942 -->
  <script>

function run_test() {
  document.documentElement.getBoundingClientRect();
  document.getElementById("setFilterOnThis").setAttribute('filter', 'url(#filter)');
  document.documentElement.removeAttribute("class");
}

  </script>
  <filter id="filter" x="20%" y="20%" width="100%" height="100%">
    <feFlood flood-color="lime"/>
  </filter>
  <rect width="100%" height="100%" fill="lime"/>
  <rect x="20" y="20" width="100" height="100" fill="red"/>
  <rect width="100" height="100" fill="white" id="setFilterOnThis"/>
</svg>