layout/reftests/bugs/334829-1b.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/334829-1b.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.5 +<head>
     1.6 +  <bindings xmlns="http://www.mozilla.org/xbl">
     1.7 +    <binding id="test">
     1.8 +      <content>
     1.9 +        <span><children/></span>
    1.10 +      </content>
    1.11 +    </binding>
    1.12 +  </bindings>
    1.13 +  <script type="application/x-javascript">
    1.14 +    function runTest() {
    1.15 +      var div = document.getElementById("testDiv");
    1.16 +
    1.17 +      // First we have to make sure that we've looked up the primary frame for
    1.18 +      // the previous child span.  Appending text to it should do the trick.
    1.19 +      div.firstChild.
    1.20 +          appendChild(document.createTextNode("This is text in a div "));
    1.21 +
    1.22 +      // Now flush out reflow
    1.23 +      document.body.offsetWidth;
    1.24 +
    1.25 +      var node = document.createElementNS("http://www.w3.org/1999/xhtml",
    1.26 +                                          "span");
    1.27 +      div.appendChild(node);
    1.28 +      node.appendChild(document.createTextNode("This text should appear"));
    1.29 +    }
    1.30 +  </script>
    1.31 +</head>
    1.32 +
    1.33 +<body onload="runTest()">
    1.34 +<div id="testDiv" style="width: 0; -moz-binding: url(#test)"><span></span></div>
    1.35 +
    1.36 +</body>
    1.37 +</html>

mercurial