- From: Bruno Fassino <fassino@gmail.com>
- Date: Thu, 13 May 2010 09:01:55 +0200
- To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
On Wed, May 12, 2010 at 11:00 PM, Arron Eicholz <Arron.Eicholz@microsoft.com> wrote: > > Author specified styles still have to deal with cascade. And the cascade is this > > tr (text-align: right (author style)) > th (initial style for 'text-align', inheritance happens, default styles are then applied. text-align: center, not specified in author styles) > > Inheritance only occurs when you do not have the property explicitly defined on child. Or when you explicitly use the 'inherit' keyword. In this case the UA stylesheet defines the style and therefore overwrites the inheritance. > What is interesting here is that some browsers (like Firefox) have deliberately chosen to implement the default "text-align: center" for th in a way _not_ equivalent to an UA style, probably for compatibility reasons. IE prior to IE7 behaved in that way as well. An attempt to mark this behavior as a bug in Gecko has been closed as "invalid" (the UA default stylesheet is indeed not "normative"). Regards, Bruno -- Bruno Fassino http://www.brunildo.org/test
Received on Thursday, 13 May 2010 07:02:28 UTC