Skip to content

Commit

Permalink
[at] (1) Define what the various coordinates actually _are_.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@584 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 10, 2007
1 parent 000bb71 commit 28b859d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
18 changes: 15 additions & 3 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -13708,7 +13708,12 @@ interface <dfn id=imagedata>ImageData</dfn> {
<p>In the <a href="#circle" title=attr-area-shape-circle>circle state</a>,
<code><a href="#area0">area</a></code> elements must have a <code
title=attr-area-coords><a href="#coords">coords</a></code> attribute
present, with three integers, the last of which must be non-negative.
present, with three integers, the last of which must be non-negative. The
first integer must be the distance in CSS pixels from the left edge of the
image to the center of the circle, the second integer must be the distance
in CSS pixels from the top edge of the image to the center of the circle,
and the third integer must be the radius of the circle, again in CSS
pixels.

<p>In the <a href="#default" title=attr-area-shape-default>default
state</a> state, <code><a href="#area0">area</a></code> elements must not
Expand All @@ -13718,13 +13723,20 @@ interface <dfn id=imagedata>ImageData</dfn> {
<p>In the <a href="#polygon" title=attr-area-shape-poly>polygon state</a>,
<code><a href="#area0">area</a></code> elements must have a <code
title=attr-area-coords><a href="#coords">coords</a></code> attribute with
at least six integers, and the number of integers must be even.
at least six integers, and the number of integers must be even. Each pair
of integers must represent a coordinate given as the distances from the
left and the top of the image in CSS pixels respectively, and all the
coordinates together must represent the points of the polygon, in order.

<p>In the <a href="#rectangle" title=attr-area-shape-rect>rectangle
state</a>, <code><a href="#area0">area</a></code> elements must have a
<code title=attr-area-coords><a href="#coords">coords</a></code> attribute
with exactly four integers, the first of which must be less than the
third, and the second of which must be less than the fourth.
third, and the second of which must be less than the fourth. The four
points must represent, respectively, the distance from the left edge of
the image to the top left side of the rectangle, the distance from the top
edge to the top side, the distance from the left edge to the right side,
and the distance from the top edge to the bottom side, all in CSS pixels.

<p>When user agents allow users to <a href="#following1" title="following
hyperlinks">follow hyperlinks</a> created using the <code><a
Expand Down
20 changes: 17 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -11724,7 +11724,12 @@ interface <dfn>ImageData</dfn> {
<p>In the <span title="attr-area-shape-circle">circle state</span>,
<code>area</code> elements must have a <code
title="attr-area-coords">coords</code> attribute present, with three
integers, the last of which must be non-negative.</p>
integers, the last of which must be non-negative. The first integer
must be the distance in CSS pixels from the left edge of the image
to the center of the circle, the second integer must be the distance
in CSS pixels from the top edge of the image to the center of the
circle, and the third integer must be the radius of the circle,
again in CSS pixels.</p>

<p>In the <span title="attr-area-shape-default">default state</span>
state, <code>area</code> elements must not have a <code
Expand All @@ -11733,13 +11738,22 @@ interface <dfn>ImageData</dfn> {
<p>In the <span title="attr-area-shape-poly">polygon state</span>,
<code>area</code> elements must have a <code
title="attr-area-coords">coords</code> attribute with at least six
integers, and the number of integers must be even.</p>
integers, and the number of integers must be even. Each pair of
integers must represent a coordinate given as the distances from the
left and the top of the image in CSS pixels respectively, and all
the coordinates together must represent the points of the polygon,
in order.</p>

<p>In the <span title="attr-area-shape-rect">rectangle state</span>,
<code>area</code> elements must have a <code
title="attr-area-coords">coords</code> attribute with exactly four
integers, the first of which must be less than the third, and the
second of which must be less than the fourth.</p>
second of which must be less than the fourth. The four points must
represent, respectively, the distance from the left edge of the
image to the top left side of the rectangle, the distance from the
top edge to the top side, the distance from the left edge to the
right side, and the distance from the top edge to the bottom side,
all in CSS pixels.</p>

<p>When user agents allow users to <span title="following
hyperlinks">follow hyperlinks</span> created using the
Expand Down

0 comments on commit 28b859d

Please sign in to comment.