1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/334829-1a.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 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 textnode. Appending a space should do the trick. 1.19 + div.firstChild.data += " "; 1.20 + 1.21 + // Now flush our reflow 1.22 + document.body.offsetWidth; 1.23 + 1.24 + var node = document.createElementNS("http://www.w3.org/1999/xhtml", 1.25 + "span"); 1.26 + div.appendChild(node); 1.27 + node.appendChild(document.createTextNode("This text should appear")); 1.28 + } 1.29 + </script> 1.30 +</head> 1.31 + 1.32 +<body onload="runTest()"> 1.33 +<div id="testDiv" style="width: 0; -moz-binding: url(#test)">This is text in a div</div> 1.34 + 1.35 +</body> 1.36 +</html>