[html5] r2820 - [] (0) Change how we define the handling of 'cursor' for <area>, to handle area [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Feb 13 12:03:49 PST 2009
Author: ianh
Date: 2009-02-13 12:03:48 -0800 (Fri, 13 Feb 2009)
New Revision: 2820
Modified:
index
source
Log:
[] (0) Change how we define the handling of 'cursor' for <area>, to handle area { cursor: inhert }. (credit: db)
Modified: index
===================================================================
--- index 2009-02-13 19:54:00 UTC (rev 2819)
+++ index 2009-02-13 20:03:48 UTC (rev 2820)
@@ -57822,16 +57822,29 @@
<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>
+
+
+
<h4 id=tool-bars-0><span class=secno>10.3.5 </span>Tool bars</h4>
<p>When a <code><a href=#menus>menu</a></code> element's <code title=attr-menu-type><a href=#attr-menu-type>type</a></code> attribute is in the <a href=#tool-bar-state title="tool bar state">tool bar</a> state, the element is
Modified: source
===================================================================
--- source 2009-02-13 19:54:00 UTC (rev 2819)
+++ source 2009-02-13 20:03:48 UTC (rev 2820)
@@ -63447,16 +63447,29 @@
<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>
+
+
+
<h4>Tool bars</h4>
<p>When a <code>menu</code> element's <code
More information about the Commit-Watchers
mailing list