OLD | NEW |
(Empty) | |
| 1 <!-- quirks mode --> |
| 2 <script src="../../resources/js-test.js"></script> |
| 3 <style> |
| 4 :hover#t1, |
| 5 :hover.c2, |
| 6 :hover[a3] { background-color: green } |
| 7 </style> |
| 8 <div id="t1">Green background when hovered</div> |
| 9 <div id="t2" class="c2">Green background when hovered</div> |
| 10 <div id="t3" a3>Green background when hovered</div> |
| 11 <script> |
| 12 description("Quirks mode - simple selectors right of :hover"); |
| 13 |
| 14 function moveTo(element) { |
| 15 eventSender.mouseMoveTo(element.offsetLeft + 1, element.offsetTop + 1); |
| 16 } |
| 17 |
| 18 var transparent = "rgba(0, 0, 0, 0)"; |
| 19 var green = "rgb(0, 128, 0)"; |
| 20 |
| 21 shouldBeDefined("window.eventSender"); |
| 22 |
| 23 shouldBe("getComputedStyle(t1).backgroundColor", "transparent"); |
| 24 moveTo(t1); |
| 25 shouldBe("getComputedStyle(t1).backgroundColor", "green"); |
| 26 |
| 27 shouldBe("getComputedStyle(t2).backgroundColor", "transparent"); |
| 28 moveTo(t2); |
| 29 shouldBe("getComputedStyle(t2).backgroundColor", "green"); |
| 30 |
| 31 shouldBe("getComputedStyle(t3).backgroundColor", "transparent"); |
| 32 moveTo(t3); |
| 33 shouldBe("getComputedStyle(t3).backgroundColor", "green"); |
| 34 </script> |
OLD | NEW |