darin | ec37548 | 2007-01-06 01:36:24 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>CSS 2.1 Test Suite: Effect of DOM mutations on :hover matching</title> |
| 5 | <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes"> |
| 6 | <script type="text/javascript"> |
| 7 | function remove() { |
| 8 | var node = document.getElementById("target"); |
| 9 | node.parentNode.removeChild(node); |
| 10 | } |
| 11 | </script> |
| 12 | <style> |
| 13 | div:hover { color: red; } |
| 14 | div#green { color: green; } |
| 15 | </style> |
| 16 | </head> |
| 17 | <body> |
| 18 | <div> |
| 19 | Dummy text. Dummy text. |
| 20 | <div onmouseover="setTimeout(remove, 1000)" id="target"><span>Hover this text, |
| 21 | then wait till it disappears. At that point there should be no red.</span> |
| 22 | </div> |
| 23 | </div> |
| 24 | <div id="green"> |
| 25 | Dummy text. Dummy text. |
| 26 | </div> |
| 27 | </body> |
| 28 | </html> |