Annotation of CSS/CSS2.1-test-suite/cooked-tests/bz/t051103-dom-hover-02-c-io.xht, revision 1.1
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>
! 6: <link rel="help"
! 7: href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
! 8: <script type="text/javascript">
! 9: function remove() {
! 10: var node = document.getElementById("target");
! 11: node.parentNode.removeChild(node);
! 12: }
! 13: </script>
! 14: <style>
! 15: div:hover { color: red; }
! 16: div#green { color: green; }
! 17: </style>
! 18: </head>
! 19: <body>
! 20: <div>
! 21: Dummy text. Dummy text.
! 22: <div id="target" onmouseover="setTimeout(remove, 1000)"><span>Hover this text,
! 23: then wait till it disappears. At that point there should be no red.</span>
! 24: </div>
! 25: </div>
! 26: <div id="green">
! 27: Dummy text. Dummy text.
! 28: </div>
! 29: </body>
! 30: </html>
Webmaster