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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13453</bug_id>
          
          <creation_ts>2011-07-29 14:24:19 +0000</creation_ts>
          <short_desc>Scaling of images and image maps</short_desc>
          <delta_ts>2011-08-17 23:37:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/2011/WD-html5-20110525/the-map-element.html#image-maps</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11ytf</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Cooper">cooper</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>laura.lee.carlson</cc>
    
    <cc>mike</cc>
    
    <cc>mjs</cc>
    
    <cc>public-html-a11y</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51758</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Cooper">cooper</who>
    <bug_when>2011-07-29 14:24:19 +0000</bug_when>
    <thetext>The spec states &quot;For historical reasons, the coordinates must be interpreted relative to the displayed image, even if it stretched using CSS or the image element&apos;s width and height attributes.&quot; 

This wording is ambiguous about various scaling mechanisms and how they do or do not affect scaling of image map regions. Images may be scaled by HTML attributes, author CSS, user CSS, browser zoom, and perhaps other mechanisms. The HTML accessibility task force could not achieve a common interpretation of which scaling mechanisms would be applied before overlaying the image map with the areas relative to the resized image, vs which scaling mechanisms would be applied in such a way that imagemap areas would scale along with the image. If this is interpreted inconsistently, it will lead to major accessibility and usability problems on sites.

Therefore this statement needs clarification and expansion to address all use cases clearly. We will attempt to provide suggested wording as a follow-on comment to this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51794</commentid>
    <comment_count>1</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2011-07-29 19:45:16 +0000</bug_when>
    <thetext>I think the correct approach here is:

- Scaling from CSS width/height (regardless of source) and the img width and height attributes is applied before interpreting the image map coordinates.

- Scaling from CSS transforms or UA-controlled zoom features (such as a UI-level full-page zoom feature, or something like iOS punch-to-zoom) are applied after interpreting the image map coordinates.

The reason for applying UA features after interpreting the image map is that sites have no way to account for this. The reason for applying CSS transforms after interpreting the image map is that there is no legacy behavior to preserve in this case, and CSS transforms can also impose translation, rotation and skew which should definitely *not* be applied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54008</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:35:18 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55374</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-17 23:36:36 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with comment 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55375</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-17 23:37:42 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6503.
Check-in comment: Be more precise about what counts as scaling for image map coordinates.
http://html5.org/tools/web-apps-tracker?from=6502&amp;to=6503</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>