Skip to content

Commit

Permalink
[] (0) Change how we define the handling of 'cursor' for <area>, to h…
Browse files Browse the repository at this point in the history
…andle area { cursor: inhert }. (credit: db)

git-svn-id: http://svn.whatwg.org/webapps@2820 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 13, 2009
1 parent 99040be commit aba7493
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 14 deletions.
27 changes: 20 additions & 7 deletions index
Expand Up @@ -57822,13 +57822,26 @@ object[align=bottom] {

<h4 id=image-maps-0><span class=secno>10.3.4 </span>Image maps</h4>

<p>When a user is designating a shape on an <a href=#image-map>image map</a>,
if that shape's <code><a href=#the-area-element>area</a></code> element's 'cursor' property has a
value explicitly specified (as opposed to inheriting it from the
element's parent), then the user agent is expected to use that value
as the cursor. Otherwise, the user agent is expected to use the
computed value of the 'cursor' property from the <code><a href=#the-img-element>img</a></code> or
<code><a href=#the-object-element>object</a></code> element.</p>
<p>Shapes on an <a href=#image-map>image map</a> are expected to act, for the
purpose of the CSS cascade, as elements independent of the original
<code><a href=#the-area-element>area</a></code> element that happen to match the same style rules
but inherit from the <code><a href=#the-img-element>img</a></code> or <code><a href=#the-object-element>object</a></code>
element.</p>

<p>For the purposes of the rendering, only the 'cursor' property is
expected to have any effect on the shape.</p>

<p class=example>Thus, for example, if an <code><a href=#the-area-element>area</a></code>
element has a <code title=attr-style><a href=#the-style-attribute>style</a></code> attribute that
sets the 'cursor' property to 'help', then when the user designates
that shape, the cursor would change to a Help cursor.</p>

<p class=example>Similarly, if an <code><a href=#the-area-element>area</a></code> element had a
CSS rule that set its 'cursor' property to 'inherit' (or if no rule
setting the 'cursor' property matched the element at all), the
shape's cursor would be inherited from the <code><a href=#the-img-element>img</a></code> or
<code><a href=#the-object-element>object</a></code> element of the <a href=#image-map>image map</a>, not from
the parent of the <code><a href=#the-area-element>area</a></code> element.</p>



Expand Down
27 changes: 20 additions & 7 deletions source
Expand Up @@ -63447,13 +63447,26 @@ object[align=bottom] {

<h4>Image maps</h4>

<p>When a user is designating a shape on an <span>image map</span>,
if that shape's <code>area</code> element's 'cursor' property has a
value explicitly specified (as opposed to inheriting it from the
element's parent), then the user agent is expected to use that value
as the cursor. Otherwise, the user agent is expected to use the
computed value of the 'cursor' property from the <code>img</code> or
<code>object</code> element.</p>
<p>Shapes on an <span>image map</span> are expected to act, for the
purpose of the CSS cascade, as elements independent of the original
<code>area</code> element that happen to match the same style rules
but inherit from the <code>img</code> or <code>object</code>
element.</p>

<p>For the purposes of the rendering, only the 'cursor' property is
expected to have any effect on the shape.</p>

<p class="example">Thus, for example, if an <code>area</code>
element has a <code title="attr-style">style</code> attribute that
sets the 'cursor' property to 'help', then when the user designates
that shape, the cursor would change to a Help cursor.</p>

<p class="example">Similarly, if an <code>area</code> element had a
CSS rule that set its 'cursor' property to 'inherit' (or if no rule
setting the 'cursor' property matched the element at all), the
shape's cursor would be inherited from the <code>img</code> or
<code>object</code> element of the <span>image map</span>, not from
the parent of the <code>area</code> element.</p>



Expand Down

0 comments on commit aba7493

Please sign in to comment.