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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/area-computedStyle.html
diff --git a/LayoutTests/fast/css/area-computedStyle.html b/LayoutTests/fast/css/area-computedStyle.html
new file mode 100644
index 0000000000000000000000000000000000000000..8062bf3f4d5c8f7f2b7722f879c0ae927f08be65
--- /dev/null
+++ b/LayoutTests/fast/css/area-computedStyle.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script>
+description("Test return value of getComputedStyle() for area tag.");
+window.jsTestIsAsync = true;
+var area;
+
+window.onload = function() {
+ area = document.getElementById("areaTest");
+ if (window.eventSender) {
+ var x = area.offsetParent.offsetLeft + area.offsetLeft + area.offsetWidth / 2;
+ var y = area.offsetParent.offsetTop + area.offsetTop + area.offsetHeight / 2;
+ eventSender.mouseMoveTo(x, y);
+ }
+}
+
+function onAreaHover() {
+ shouldBeEqualToString("window.getComputedStyle(area, null).color", "rgb(0, 0, 255)");
+ finishJSTest();
+}
+</script>
+<map name="imagemap1">
+ <area id="areaTest" onmouseover="onAreaHover()" shape="rect" coords="0, 0, 100, 100">
+</map>
+<img src="resources/greenbox-100px.png" border="0" align="left" usemap="#imagemap1">
+<style>
+area:hover {
+ color: blue;
+}
+</style>
« 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