W3C home > Mailing lists > Public > public-css-testsuite@w3.org > May 2010

Re: gtalbot /text-align-007 to 013 need correction

From: Bruno Fassino <fassino@gmail.com>
Date: Thu, 13 May 2010 09:01:55 +0200
Message-ID: <AANLkTin2s8bIGnSUIZoh3flG2_66tlzZuS1yvjjDdck9@mail.gmail.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:52:01 GMT