Re: Precedence within a stylesheet

Douglas Rand writes:

 > The reason it isn't clear is that the spec. doesn't ever seem to
 > make what is (to me) an obvious limitation on rule matching.  That
 > is that the leaf node specified in the selector (in this case just
 > the single element) must be a match for the element being looked
 > up.

This is stated in [1]:

 "Find all declarations that apply to the element/property in question.
  Declarations apply if the selector matches the element in question. If
  no declarations apply, the inherited value is used."


(We should probably have defined "match" in the terminology section,
but we seem to have the same understanding of the term so I don't
believe that's the source of confusion.)



H      k   o   n      W   i   u   m       L   i   e
World     W      i     d     e       Web  Consortium

Received on Friday, 19 September 1997 16:53:46 UTC