This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13453 - Scaling of images and image maps
Summary: Scaling of images and image maps
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.w3.org/TR/2011/WD-html5-20...
Whiteboard:
Keywords: a11y, a11ytf
Depends on:
Blocks:
 
Reported: 2011-07-29 14:24 UTC by Michael Cooper
Modified: 2011-08-17 23:37 UTC (History)
7 users (show)

See Also:


Attachments

Description Michael Cooper 2011-07-29 14:24:19 UTC
The spec states "For historical reasons, the coordinates must be interpreted relative to the displayed image, even if it stretched using CSS or the image element's width and height attributes." 

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.
Comment 1 Maciej Stachowiak 2011-07-29 19:45:16 UTC
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.
Comment 2 Michael[tm] Smith 2011-08-04 05:35:18 UTC
mass-move component to LC1
Comment 3 Ian 'Hixie' Hickson 2011-08-17 23:36:36 UTC
EDITOR'S RESPONSE: This is an Editor'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.
Comment 4 contributor 2011-08-17 23:37:42 UTC
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&to=6503