HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2820

SVNBugCommentTime (UTC)
2820Change how we define the handling of 'cursor' for <area>, to handle area { cursor: inhert }. (credit: db)2009-02-13 20:03
Index: source
===================================================================
--- source	(revision 2819)
+++ source	(revision 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

|