W3C home > Mailing lists > Public > w3c-wai-hc@w3.org > October to December 1997

Re: CSS 2: priorities in cascading order

From: Hakon Lie <howcome@w3.org>
Date: Mon, 22 Dec 1997 21:56:57 +0100 (MET)
Message-Id: <199712222056.VAA06291@stovner.a.sol.no>
To: Jon Gunderson <jongund@staff.uiuc.edu>
Cc: WAI HC Working Group <w3c-wai-hc@w3.org>

 > JRG: What about children and sub classing if you but !required in the BASE
 > selector would any child of BASE then retain the required attribute.  If
 > you put in a !required in the H1 selector, would any child of H1 also be
 > forced to use the required selector?

No. In CSS1, the inherited value is only used if no declarations apply
to the element/property combination -- i.e. only as a last resort.
However, the proposed CSS2 "inherit" value on all properties will make
it possible to strengthen the inherited value:

  BODY { color: red }
  H1 { color: inherit ! accessibility }  

The last rule will ensure the color of the H1 element is the same as
its parent. 



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 Monday, 22 December 1997 15:57:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:35:01 UTC