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

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: Remove tags 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 <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>
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