layout/base/crashtests/491547-2.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 2
michael@0 3 <box id="a" style="display: list-item;">
michael@0 4 &amp;c&amp;m&amp;q
michael@0 5 <box id="b"/>
michael@0 6 </box>
michael@0 7
michael@0 8 <style xmlns="http://www.w3.org/1999/xhtml">
michael@0 9 #a::first-letter {float: right; color: red;}
michael@0 10 </style>
michael@0 11
michael@0 12 <script xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
michael@0 13 function run() {
michael@0 14 for (var i = 0; i < 20; i++) {
michael@0 15 document.documentElement.offsetWidth;
michael@0 16 doe();
michael@0 17 document.documentElement.offsetWidth;
michael@0 18 undoe();
michael@0 19 }
michael@0 20 }
michael@0 21 function doe() {
michael@0 22 document.getElementById('a').style.direction = 'rtl';
michael@0 23 document.getElementById('b').style.direction = 'ltr';
michael@0 24 }
michael@0 25 function undoe() {
michael@0 26 document.getElementById('a').style.direction = 'ltr';
michael@0 27 document.getElementById('b').style.direction = 'rtl';
michael@0 28 }
michael@0 29 setTimeout(run, 100);
michael@0 30 ]]></script>
michael@0 31 </window>

mercurial