Re: Problems/Question with Cougar

Imagination's End writes:

 > > TD { background : red }
 > > in my style sheet, and <TD BGCOLOR="blue"> in my table, which color
 > > should this table cell get?
 > 
 > That makes senses, but, what happens if you have:
 > 
 > <TD STYLE=" TD { background: red }" BGCOLOR="blue">
 > 
 > What color SHOULD the cell get.

The background should be red. This is covered in [1]:

 "The UA may choose to honor other stylistic attributes (e.g. 'ALIGN')
  as if a 'STYLE' attribute had been used. When in conflict with other
  stylistic attributes, the 'STYLE' attribute should win."

[1] http://www.w3.org/pub/WWW/TR/WD-css1#cascading-order

Regards,

-h&kon

Hakon W Lie, W3C/INRIA, Sophia-Antipolis, France
http://www.w3.org/people/howcome  howcome@w3.org

Received on Monday, 26 August 1996 20:01:26 UTC