Annotation of CSS/CSS2.1-test-suite/cooked-tests/bz/t051103-dom-hover-01-c-io.xht, revision 1.2

1.1       ihickson    1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
                      2:                       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
                      3: <html xmlns="http://www.w3.org/1999/xhtml">
                      4:   <head>
                      5:     <title>CSS 2.1 Test Suite: Effect of DOM mutations on :hover matching</title>
1.2     ! fantasai    6:   <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky.edu"/>
1.1       ihickson    7:     <link rel="help"
                      8:           href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
                      9:     <script type="text/javascript">
                     10:       function remove() {
                     11:         var node = document.getElementById("target");
                     12:         node.parentNode.removeChild(node);
                     13:       }
                     14:     </script>
                     15:     <style>
                     16:       div#green { color: red; }
                     17:       div:hover { color: green !important; }
                     18:     </style>
                     19:   </head>
                     20:   <body>
                     21:     <div id="target" onmouseover="setTimeout(remove, 1000)">Hover this text,
                     22:        then wait till it disappears.  At that point there should be no red.
                     23:     </div>
                     24:     <div id="green">
                     25:       This should end up green.
                     26:     </div>
                     27:   </body>
                     28: </html>

Webmaster