test_activation.xhtml (1015B)
1 <?xml version="1.0"?> 2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?> 3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?> 4 <?xml-stylesheet href="data:text/css, 5 6 %23box { 7 background: blue; 8 } 9 10 %23box:-moz-window-inactive { 11 background: cyan; 12 } 13 14 " type="text/css"?> 15 <!-- 16 Test for the :-moz-window-inactive pseudoclass 17 --> 18 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 19 sizemode="fullscreen"> 20 21 <script type="application/javascript" 22 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 23 24 <box id="box" height="100"/> 25 26 <script> 27 SimpleTest.waitForExplicitFinish(); 28 29 newwindow = window.browsingContext.topChromeWindow.openDialog("window_activation.xhtml", "_blank","chrome,width=300,height=200", window); 30 31 function complete() 32 { 33 newwindow.close(); 34 SimpleTest.finish(); 35 } 36 37 </script> 38 39 40 <body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/> 41 42 </window>