<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <head> <script> function boom() { document.getElementById("div").style.display = "none"; document.documentElement.style.display = "-moz-inline-grid"; } </script> </head> <body onload="boom();"> <xul:treeitem style="display: -moz-inline-grid;"><xul:hbox><span><div id="div"></div></span></xul:hbox></xul:treeitem> </body> </html>