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: <>
To: www-style@w3.org

Where it says


   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.)

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 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:03 UTC