tor-browser

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

background-position-2a.html (616B)


      1 <!DOCTYPE html>
      2 <html lang="en" class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>Changes to background-position should invalidate properly.</title>
      5 
      6 <style>
      7 
      8 body {
      9  margin: 0;
     10 }
     11 
     12 #background {
     13  width: 100px;
     14  height: 100px;
     15  background-image: url(image_rgrg-256x256.png);
     16  background-repeat: no-repeat;
     17  background-position: 0 0;
     18 }
     19 
     20 </style>
     21 
     22 <div id="background"></div>
     23 
     24 <script>
     25 
     26 function doTest() {
     27  document.querySelector("#background").style.backgroundPosition = "-140px 0";
     28  document.documentElement.removeAttribute("class");
     29 }
     30 document.addEventListener("MozReftestInvalidate", doTest);
     31 
     32 </script>