W3C home > Mailing lists > Public > www-style@w3.org > September 2002

Re: ambiguity? in specificity rules

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 4 Sep 2002 13:36:09 +0000 (GMT)
To: Al Gilman <asgilman@iamdigex.net>
Cc: "www-style@w3.org" <www-style@w3.org>, Bert Bos <Bert.Bos@sophia.inria.fr>
Message-ID: <Pine.LNX.4.21.0209041331560.22886-100000@dhalsim.dreamhost.com>

On Fri, 30 Aug 2002, Al Gilman wrote:
> 
> Question:  Does this rule apply only to 'style' elements in HTML and XHTML,
> to any element whose element type name is 'style,' or to the class of
> elements which resemble the html4:style element in the following ways:
> 
> (1) take as their content text matching the description as type="text/css"
> 
> (2) implicitly bind the content to a selector which matches the immediate
> parent in the parse tree of the 'style' element in question.

It applies to the latter. If the language says "it's a CSS style
attribute" then it applies. In this respect it is similar to the 'class'
attribute and the dot notation.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 4 September 2002 09:36:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:16 GMT