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

ambiguity? in specificity rules

From: Al Gilman <asgilman@iamdigex.net>
Date: Fri, 30 Aug 2002 18:16:03 -0400 (EDT)
Message-Id: <5.1.0.14.2.20020830180409.01df43d0@pop.iamdigex.net>
To: www-style@w3.org




Where it says

<quote
cite="http://www.w3.org/TR/CSS21/cascade.html#specificity">

   6.4.3 Calculating a selector's specificity

    A selector's specificity is calculated as follows:
      * count 1 if the selector is a 'style' attribute rather than a
        selector, 0 otherwise (= a) (In HTML, values of an element's
        "style" attribute are style sheet rules. These rules have no
        selectors, so a=1, b=0, c=0, and d=0.)
</quote>

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.

Please clarify.  In which of the above cases does a 'style' element come
under the low specificity of "non-CSS presentational hints"?

Al Gilman
/for PF Working Group <http://www.w3.org/WAI/PF/>
Received on Wednesday, 4 September 2002 08:33:40 GMT

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