OLD | NEW |
1 <head> | 1 <style> |
2 </head> | 2 .img { content: attr(blank); width: 100px; height: 100px;} |
3 <img id="image" height="100" width="100" src="" usemap="#map"> | 3 </style> |
| 4 <img src="" usemap="#map" class="img"> |
4 <map name="map"><area shape="poly" coords="0,0,0,100,100,100,100,0" href="javasc
ript:void(document.getElementById('result').innerHTML='PASS: Area clicked.')"></
map> | 5 <map name="map"><area shape="poly" coords="0,0,0,100,100,100,100,0" href="javasc
ript:void(document.getElementById('result').innerHTML='PASS: Area clicked.')"></
map> |
5 <p>crbug.com/466116: Image maps not working when alt content displayed. Click on
the rectangle to test. </p> | 6 <p>crbug.com/485414: Inline content data shouldn't prevent fallback content in a
n image from displaying and responding to hit tests. Click on the rectangle to t
est. </p> |
6 <div id="result">FAIL: Area not clicked.</div> | 7 <div id="result">FAIL: Area not clicked.</div> |
7 <script> | 8 <script> |
8 if (window.testRunner) { | 9 if (window.testRunner) { |
9 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
10 eventSender.mouseMoveTo(50, 50); | 11 eventSender.mouseMoveTo(50, 50); |
11 eventSender.mouseDown(); | 12 eventSender.mouseDown(); |
12 eventSender.mouseUp(); | 13 eventSender.mouseUp(); |
13 } | 14 } |
14 </script> | 15 </script> |
OLD | NEW |