layout/reftests/bugs/983084-3.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <html class="reftest-wait">
     2     <head>
     3         <style>
     4           div {
     5             transition: opacity 0.1s;
     6           }
     7         </style>
     8         <script>
     9             function showItem() {
    10                 var el = document.getElementById("two");
    11                 getComputedStyle(el).opacity; // flush styles
    12                 el.style.opacity = 1;
    13                 document.addEventListener("transitionend", function() {
    14                   document.documentElement.removeAttribute("class");
    15                 }, false);
    16             }
    17             window.addEventListener("MozReftestInvalidate", showItem, false);
    18         </script>
    19     </head>
    20     <body>
    21         <div id="one" style="width:50px; height:50px; background-color:blue; position:absolute"></div>
    22         <div id="two" style="width:500px; height:500px; background-color:red; opacity:0.5"></div>
    23     </body>
    24 </html>

mercurial