layout/reftests/css-transitions/transitions-inline-already-wrapped-2.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <html class="reftest-wait">
     2 <title>Test for CSS transitions and re-wrapping of inlines</title>
     3 <style type="text/css">
     4 #test { transition: 20ms color linear 0; }
     5 </style>
     6 <script type="text/javascript">
     8 window.onload = run;
    10 function run() {
    11   var test = document.getElementById("test");
    12   var unused = test.offsetWidth;
    13   unused = getComputedStyle(test, "").color;
    14   test.style.color = "green";
    15   unused = test.offsetWidth;
    16   unused = getComputedStyle(test, "").color;
    17   setTimeout(step2, 100); // give transition time to run
    18 }
    19 function step2() {
    20   document.documentElement.removeAttribute("class");
    21 }
    23 </script>
    24 <div style="width: 3em">
    25 <span id="test" style="color: red">
    26 This is some text with a transition.
    27 </span>
    28 </div>

mercurial