layout/reftests/abs-pos/relative-row-animation-1.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!DOCTYPE HTML>
     2 <title>Testcase, bug 845837</title>
     3 <meta charset="UTF-8">
     4 <!--
     5 https://bugzilla.mozilla.org/show_bug.cgi?id=845837
     6 -->
     8 <div style="height: 20px"></div>
    10 <table border>
    11   <tr id="tr" style="position: relative">
    12     <td>hello
    13 </table>
    15 <script>
    16 var tr = document.getElementById("tr");
    17 tr.offsetTop;
    18 tr.style.top = '20px';
    19 tr.offsetTop;
    20 tr.style.fontSize = '100px';
    21 tr.offsetTop;
    22 tr.style.fontSize = '';
    23 tr.offsetTop;
    24 tr.style.top = '0px';
    25 tr.offsetTop;
    26 // Just check that we have no relative positioning applied when we're done,
    27 // since we don't currently support relative positioning on table rows.
    28 </script>

mercurial