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