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

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: Fix style 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 <html>
3 <head>
esprehn 2014/08/19 01:41:28 no html, head or body.
4 <style>
5 area:hover {
6 color: blue;
7 }
8 </style>
9 <script src="../../resources/js-test.js"></script>
10 <script>
11 description("Test return value of getComputedStyle() for area tag.");
12 window.jsTestIsAsync = true;
13 var area;
14 function runTest() {
esprehn 2014/08/19 01:41:28 onload = function() {
15 area = document.getElementById("areaTest");
16 if (window.eventSender) {
17 var target = document.getElementById("areaTest");
18 var x = target.offsetParent.offsetLeft + target.offsetLeft + target.offset Width / 2;
19 var y = target.offsetParent.offsetTop + target.offsetTop + target.offsetHe ight / 2;
20 eventSender.mouseMoveTo(x, y);
21 }
22 }
23
24 function onAreaHover() {
25 shouldBeEqualToString("window.getComputedStyle(area, null).color", "rgb(0, 0, 255)");
26 finishJSTest();
27 }
28 </script>
29 </head>
30 <body onload="runTest()">
31 <map name="imagemap1">
32 <area id="areaTest" onmouseover="onAreaHover()" shape="rect" coords="0, 0, 1 00, 100" />
esprehn 2014/08/19 01:41:28 no slashes at the end of tags.
33 </map>
34 <img src="resources/greenbox-100px.png" border="0" align="left" usemap="#image map1" />
35 </body>
36 </html>
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