[html5] r2454 - [giow] (2) coordinates for ismap='' clicks near borders

whatwg at whatwg.org whatwg at whatwg.org
Tue Nov 25 22:32:03 PST 2008


Author: ianh
Date: 2008-11-25 22:32:03 -0800 (Tue, 25 Nov 2008)
New Revision: 2454

Modified:
   index
   source
Log:
[giow] (2) coordinates for ismap='' clicks near borders

Modified: index
===================================================================
--- index	2008-11-26 06:27:26 UTC (rev 2453)
+++ index	2008-11-26 06:32:03 UTC (rev 2454)
@@ -11631,8 +11631,11 @@
      event was dispatched as the result of a real
      pointing-device-triggered <code title=event-click>click</code>
      event on the <code><a href=#the-img-element>img</a></code> element, then let <var title="">x</var> be the distance in CSS pixels from the left edge
-     of the image to the location of the click, and let <var title="">y</var> be the distance in CSS pixels from the top edge
-     of the image to the location of the click. Otherwise, let <var title="">x</var> and <var title="">y</var> be zero.</li>
+     of the image's left border, if it has one, or the left edge of
+     the image otherwise, to the location of the click, and let <var title="">y</var> be the distance in CSS pixels from the top edge
+     of the image's top border, if it has one, or the top edge of the
+     image otherwise, to the location of the click. Otherwise, let
+     <var title="">x</var> and <var title="">y</var> be zero.</li>
 
      <li>Let the <dfn id=hyperlink-suffix><var>hyperlink suffix</var></dfn> be a U+003F
      QUESTION MARK character, the value of <var title="">x</var>

Modified: source
===================================================================
--- source	2008-11-26 06:27:26 UTC (rev 2453)
+++ source	2008-11-26 06:32:03 UTC (rev 2454)
@@ -12388,10 +12388,12 @@
      pointing-device-triggered <code title="event-click">click</code>
      event on the <code>img</code> element, then let <var
      title="">x</var> be the distance in CSS pixels from the left edge
-     of the image to the location of the click, and let <var
+     of the image's left border, if it has one, or the left edge of
+     the image otherwise, to the location of the click, and let <var
      title="">y</var> be the distance in CSS pixels from the top edge
-     of the image to the location of the click. Otherwise, let <var
-     title="">x</var> and <var title="">y</var> be zero.</li>
+     of the image's top border, if it has one, or the top edge of the
+     image otherwise, to the location of the click. Otherwise, let
+     <var title="">x</var> and <var title="">y</var> be zero.</li>
 
      <li>Let the <dfn><var>hyperlink suffix</var></dfn> be a U+003F
      QUESTION MARK character, the value of <var title="">x</var>




More information about the Commit-Watchers mailing list