Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: LayoutTests/fast/css/area-computedStyle.html

Issue 442563002: Fix getComputedStyle() for area element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to use rebaseline Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description("Test return value of getComputedStyle() for area tag.");
5 window.jsTestIsAsync = true;
6 var area;
7
8 window.onload = function() {
9 area = document.getElementById("areaTest");
10 if (window.eventSender) {
11 var x = area.offsetParent.offsetLeft + area.offsetLeft + area.offsetWidth / 2;
12 var y = area.offsetParent.offsetTop + area.offsetTop + area.offsetHeight / 2 ;
13 eventSender.mouseMoveTo(x, y);
14 }
15 }
16
17 function onAreaHover() {
18 shouldBeEqualToString("window.getComputedStyle(area, null).color", "rgb(0, 0, 2 55)");
19 finishJSTest();
20 }
21 </script>
22 <map name="imagemap1">
23 <area id="areaTest" onmouseover="onAreaHover()" shape="rect" coords="0, 0, 100 , 100">
24 </map>
25 <img src="resources/greenbox-100px.png" border="0" align="left" usemap="#imagema p1">
26 <style>
27 area:hover {
28 color: blue;
29 }
30 </style>
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/image-map2-expected.txt ('k') | LayoutTests/fast/css/area-computedStyle-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698