Bug 1535077 - Switch to using Ref and PureComponent in the SearchBox component. r...
[gecko.git] / layout / reftests / bugs / 309914-1.xul
blobc148b05af9740d35d9d31eac96e570fe169896dc
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
5 class="reftest-wait">
7 <hbox style="display: none">
8 <bindings id="testBindings" xmlns="http://www.mozilla.org/xbl"
9 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
11 <binding id="testBinding" >
12 <content>
13 <xul:label value="anon label"/>
14 <children/>
15 </content>
16 </binding>
17 </bindings>
18 </hbox>
19 <script>
20 <![CDATA[
21 var cont;
23 window.onload = function() {
24 const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
25 cont = document.getElementById("container");
27 for(var i=0; i<2; i++) {
28 var item = document.createElementNS(XUL_NS, "button");
29 cont.appendChild(item);
30 item.label = i;
33 document.documentElement.getBoundingClientRect();
35 var item = cont.firstChild;
36 //alert(item.label);
37 cont.insertBefore(item.nextSibling, item);
38 document.documentElement.removeAttribute("class");
40 ]]>
41 </script>
43 <hbox id="container" style="-moz-binding: url('#testBinding');"/>
45 </window>