<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>169548</bug_id>
          
          <creation_ts>2017-03-13 03:52:48 -0700</creation_ts>
          <short_desc>Spec change: &lt;img ismap&gt; coordinates should be from image edge, not border edge</short_desc>
          <delta_ts>2017-05-22 02:27:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>FromImplementor, WebExposed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters (:zcorpan)">zcorpan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1287130</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2017-03-13 03:52:48 -0700</bug_when>
    <thetext>Demo: http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3800

Expect click on border in the top-left corner to get coordinates 0,0. WebKit measures from the border edge instead.

whatwg/html issue: https://github.com/whatwg/html/issues/438
whatwg/html change: https://github.com/whatwg/html/pull/529

web-platform-test: https://github.com/w3c/web-platform-tests/pull/5118

The test passes in Chromium and Gecko; fail in WebKit and Edge.

Comment from Travis (Edge) https://github.com/w3c/html/issues/492#issuecomment-285819148

&gt; Definitely makes sense just to align with Chrome/Firefox on this...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1289685</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-03-20 19:45:53 -0700</bug_when>
    <thetext>Likely the code in appendServerMapMousePosition(). Looks like link has some extra logic there:
  // The origin (0,0) is at the upper left of the content area, inside the
  // padding and border.
  mapPoint -= toLayoutBox(layoutObject)-&gt;contentBoxOffset();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1289686</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-03-20 19:46:15 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Likely the code in appendServerMapMousePosition(). Looks like link has some
&gt; extra logic there:
&gt;   // The origin (0,0) is at the upper left of the content area, inside the
&gt;   // padding and border.
&gt;   mapPoint -= toLayoutBox(layoutObject)-&gt;contentBoxOffset();

s/link/Blink</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1311263</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2017-05-22 02:27:33 -0700</bug_when>
    <thetext>https://github.com/w3c/web-platform-tests/pull/5118 has now landed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>