2 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
3 <?xml-stylesheet href=
"/tests/SimpleTest/test.css" type=
"text/css"?>
4 <window xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
5 xmlns:
html=
"http://www.w3.org/1999/xhtml"
6 title=
"Test for Bug 372685">
8 https://bugzilla.mozilla.org/show_bug.cgi?id=372685
11 <script type=
"application/javascript" src=
"/MochiKit/packed.js"></script>
12 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
14 <menuitem id=
"a" style=
"display: -moz-stack;">
15 <box id=
"b" style=
"display: -moz-popup; ">
16 <box id=
"c" style=
"position: fixed;"></box>
20 <script class=
"testbody" type=
"application/javascript">
23 function removestyles(i){
24 document.getElementById('a').removeAttribute('style');
25 var x=document.getElementById('html_body').offsetHeight;
26 is(
0,
0,
"this is a crash test, so always ok if we survive this far");
30 setTimeout(removestyles,
200);
33 SimpleTest.waitForExplicitFinish();
38 <body id=
"html_body" xmlns=
"http://www.w3.org/1999/xhtml">
39 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=372685">Mozilla Bug
372685</a>
45 addLoadEvent(do_test);