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

Re: Precedence within a stylesheet

From: Hakon Lie <howcome@w3.org>
Date: Fri, 19 Sep 1997 22:53:37 +0200 (MET DST)
Message-Id: <199709192053.WAA12330@stovner.a.sol.no>
To: Douglas Rand <drand@sgi.com>
Cc: www-style@w3.org
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."

[1] http://www.w3.org/TR/REC-CSS1#cascading-order

(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
howcome@w3.org      http://www.w3.org/people/howcome
World     W      i     d     e       Web  Consortium
Received on Friday, 19 September 1997 16:53:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:44 UTC