W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2009

[whatwg] Styling of area elements (as displayed within referencing image)

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 11 Feb 2009 11:36:25 -0800
Message-ID: <20090211193625.GA1929@pickering.dbaron.org>
On Wednesday 2009-02-11 08:39 +0000, Ian Hickson wrote:
> On Thu, 10 May 2007, L. David Baron wrote:
> >
> > The interaction of area elements with CSS styling is not defined in HTML 
> > 5.  Since area elements are particularly unusual (in that they appear an 
> > arbitrary number of times, whenever their containing map is linked to by 
> > an img), I think it should be.
> 
> Fixed. Please let me know if the new text is ok:
> 
>    http://www.whatwg.org/specs/web-apps/current-work/#image-maps-0

That text seems ambiguous in the case of values like 'cursor:
inherit' on area elements (and the possibility of future values that
also take values from the parent element).  In particular, the text:
  # has a value explicitly specified (as opposed to inheriting it
  # from the element's parent)
seems self-contradictory regarding 'cursor: inherit'.

It also seems to require (for handling cursor:inherit) that the CSS
implementation expose information about whether the property was
specified on the element.  I don't know of other cases that require
this.

What Gecko does is simply "do selector matching based on the
document tree but then value computation as though the img element
were the parent".  (I think this is a similar concept to what the
XBL2 spec requires in some cases, although I don't remember for sure.)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Wednesday, 11 February 2009 11:36:25 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:09 UTC