layout/base/crashtests/491547-2.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/crashtests/491547-2.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     1.5 +
     1.6 +<box id="a" style="display: list-item;">
     1.7 +&amp;c&amp;m&amp;q
     1.8 +<box id="b"/>
     1.9 +</box>
    1.10 +
    1.11 +<style xmlns="http://www.w3.org/1999/xhtml">
    1.12 +#a::first-letter {float: right; color: red;}
    1.13 +</style>
    1.14 +
    1.15 +<script xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
    1.16 +function run() {
    1.17 +  for (var i = 0; i < 20; i++) {
    1.18 +    document.documentElement.offsetWidth;
    1.19 +    doe();
    1.20 +    document.documentElement.offsetWidth;
    1.21 +    undoe();
    1.22 +  }
    1.23 +}
    1.24 +function doe() {
    1.25 +  document.getElementById('a').style.direction = 'rtl';
    1.26 +  document.getElementById('b').style.direction = 'ltr';
    1.27 +}
    1.28 +function undoe() {
    1.29 +  document.getElementById('a').style.direction = 'ltr';
    1.30 +  document.getElementById('b').style.direction = 'rtl';
    1.31 +}
    1.32 +setTimeout(run, 100);
    1.33 +]]></script>
    1.34 +</window>

mercurial