<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'
      xmlns:xbl='http://www.w3.org/ns/xbl'
      xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <head>
    <title>XBL 2.0 Test Suite: Handler test - modifiers </title>
    <style type='text/css'>
    </style> 
    <xbl xmlns="http://www.w3.org/ns/xbl">
      <binding id="b1" element="#testnone">
        <handlers>
          <handler id="hand1" event="click" button="0" modifiers="none">
            document.getElementById('testnone').setAttribute("style", "background-color: green");
          </handler>
   
        </handlers>
      </binding>
      <binding id="b2" element="#testalt">
        <handlers>
          <handler id="hand2" event="click" button="0" modifiers="alt">
            document.getElementById('testalt').setAttribute("style", "background-color: green");
          </handler>
        </handlers>
      </binding>
      <binding id="b3" element="#testnoctrl">
        <handlers>
          <handler id="hand4" event="click" button="0" modifiers="any -control">
            document.getElementById('testnoctrl').setAttribute("style", "background-color: green");
          </handler>
        </handlers>
      </binding>
      <binding id="b4" element="#altnoaccel">
        <handlers>
          <handler id="hand5" event="click" button="0" modifiers="+accel">
            document.getElementById('altnoaccel').setAttribute("style", "background-color: green");
         </handler>
        </handlers>
      </binding>
    </xbl>
  </head>
  <body> 
    <h1> Test by clicking on the headers with mouse button 1, with the correct modifier keys pressed/active. If the modifiers work, text background turns green. </h1>
    <h1 id="testnone"> No modifier keys. Should turn green if no modifiers are pressed. </h1><br/>
    <h1 id="testalt"> ALT pressed. Should turn green if clicked while holding down the ALT key (only). </h1> <br/>
    <h1 id="testnoctrl">CTRL not pressed. This should turn green if you click on it without the CONTROL key being pressed, regardless of other modifiers. </h1><br/>
    <h1 id="altnoaccel">Only the system accelerator key pressed. This should turn green when clicked with ONLY the system accelerator key pressed (e.g. CTRL in Windows) </h1><br/>
  </body>
</html>
