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

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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

mercurial