layout/reftests/bugs/309914-1.xul

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     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;
    31   }
    33   document.documentElement.getBoundingClientRect();
    35   var item = cont.firstChild;
    36   //alert(item.label);
    37   cont.insertBefore(item.nextSibling, item);
    38   document.documentElement.removeAttribute("class");
    39 }
    40 ]]>
    41 </script>
    43 <hbox id="container" style="-moz-binding: url('#testBinding');"/>
    45 </window>

mercurial