W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2006

[xhtml2] ismap and coordinate values.

From: <karl@w3.org>
Date: Thu, 17 Aug 2006 03:28:13 -0000
To: www-html-editor@w3.org
Message-Id: <20060817032819.BCF244F5C3@homer.w3.org>

Hi,
This is a QA Review comment for "XHTML 2.0"
http://www.w3.org/TR/2006/WD-xhtml2-20060726/
2006-07-26
8th WD

About http://www.w3.org/TR/2006/WD-xhtml2-20060726/mod-csImgMap.html

In the specification, it is said

	"coords = Coordinates"

    "* rect: left-x, top-y, right-x, bottom-y.
    * circle: center-x, center-y, radius.
    * poly: x1, y1, x2, y2, ..., xN, yN. "

	
Values of coords attribute is given in 
http://www.w3.org/TR/2006/WD-xhtml2-20060726/abstraction.html#dt_Coordinates

	"Coordinates 	Comma separated list of Lengths 
	used in defining areas."

Going to Length

	"Length 	Either a number, representing a number of 
	pixels, or a percentage, representing a percentage of 
	the available horizontal or vertical space. Thus, the 
	value "50%" means half of the available space."
	
Then from the example, I gather it could be

in pixels

<p src="navbar1.png" srctype="image/png" usemap="#map1"> 
    <nl id="map1">
      <label>Navigate the site:</label>
      <li href="guide.html" shape="rect" 
          coords="0,0,118,28">
          Access Guide
      </li> 

in percentages

<p src="navbar1.png" srctype="image/png" usemap="#map1"> 
    <nl id="map1">
      <label>Navigate the site:</label>
      <li href="guide.html" shape="rect" 
          coords="0%,0%,20%,28%">
          Access Guide
      </li> 

- How does it interact with the style attribute in CSS? is it the size once rendered on the viewport? or the original size of the object?
- It would be good to give an example with percentage as well. It might be not obvious for authors.




-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***
Received on Thursday, 17 August 2006 03:28:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:55 GMT