Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <map name="imagemap1"> | |
|
Inactive
2014/08/19 17:46:10
nit: Maybe we could start with the <script> tags s
| |
| 3 <area id="areaTest" onmouseover="onAreaHover()" shape="rect" coords="0, 0, 100 , 100"> | |
| 4 </map> | |
| 5 <img src="resources/greenbox-100px.png" border="0" align="left" usemap="#imagema p1"> | |
| 6 <style> | |
| 7 area:hover { | |
| 8 color: blue; | |
| 9 } | |
| 10 </style> | |
| 11 <script src="../../resources/js-test.js"></script> | |
| 12 <script> | |
| 13 description("Test return value of getComputedStyle() for area tag."); | |
| 14 window.jsTestIsAsync = true; | |
| 15 var area; | |
| 16 | |
| 17 window.onload = function () { | |
| 18 area = document.getElementById("areaTest"); | |
| 19 if (window.eventSender) { | |
| 20 var target = document.getElementById("areaTest"); | |
|
Inactive
2014/08/19 17:46:10
Isn't this the same as |area|?
| |
| 21 var x = target.offsetParent.offsetLeft + target.offsetLeft + target.offsetWi dth / 2; | |
| 22 var y = target.offsetParent.offsetTop + target.offsetTop + target.offsetHeig ht / 2; | |
| 23 eventSender.mouseMoveTo(x, y); | |
| 24 } | |
| 25 } | |
| 26 | |
| 27 function onAreaHover() { | |
| 28 shouldBeEqualToString("window.getComputedStyle(area, null).color", "rgb(0, 0, 2 55)"); | |
| 29 finishJSTest(); | |
| 30 } | |
| 31 </script> | |
| OLD | NEW |