tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

1021564-4.html (935B)


      1 <!--
      2     Any copyright is dedicated to the Public Domain.
      3     http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 <!DOCTYPE html>
      6 <html lang="en" class="reftest-wait">
      7 <meta charset="utf-8">
      8 <title>When the filtered element's BBox relative to the page changes, the filtered element needs to be invalidated</title>
      9 
     10 <style>
     11 
     12 #spacer {
     13  height: 100px;
     14 }
     15 
     16 #filtered {
     17  width: 100px;
     18  height: 100px;
     19  filter: url(#filter);
     20 }
     21 
     22 </style>
     23 
     24 <svg height="0">
     25  <defs>
     26    <filter id="filter" filterUnits="userSpaceOnUse"
     27            x="0" y="0" width="100" height="100"
     28            color-interpolation-filters="sRGB">
     29      <feFlood flood-color="lime"/>
     30    </filter>
     31  </defs>
     32 </svg>
     33 
     34 <div id="spacer"></div>
     35 
     36 <div id="filtered"></div>
     37 
     38 <script>
     39 
     40 window.addEventListener("MozReftestInvalidate", function () {
     41  document.getElementById("spacer").style.height = "50px";
     42  document.documentElement.removeAttribute("class");
     43 });
     44 
     45 </script>