W3C home > Mailing lists > Public > www-style@w3.org > May 2005

Re: Correct alignment inheritance behavior for dir="rtl"

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 31 May 2005 17:54:04 +0200
To: Matt Wright <mw@mattwright.com>
Cc: www-style@w3.org
Message-ID: <20050531155404.GA6746@ridley.dbaron.org>
On Monday 2005-05-16 13:12 -0600, Matt Wright wrote:
> I am trying to determine the proper alignment behavior for a page that has
> dir="rtl" (right to left language) in the opening HTML tag. I have created a
> test case at:
> http://www.mattwright.com/aligntest.html
> In my opinion, on this test page all of the table elements should be aligned
> left and right, with nothing in the center, (which is how it is displayed in
> IE). However, both Firefox and Opera place the second 'bar' right aligned in
> the left table cell.  Can anyone here confirm which is proper behavior
> according to specs? I am trying to decide whether to open a bug regarding
> this issue in Bugzilla.

This is actually an HTML issue rather than a CSS issue, since the
behavior of HTML's align attribute on divs (the way it affects blocks or
tables that don't fill the width of their container) can't be described
in CSS.  In terms of CSS, the align attribute on divs acts as both
'text-align' and as a magical setting of 'margin-left: auto' and/or
'margin-right: auto' on certain block descendants.

There's already a Mozilla bug on it:


L. David Baron                                <URL: http://dbaron.org/ >
          Technical Lead, Layout & CSS, The Mozilla Foundation

Received on Tuesday, 31 May 2005 15:54:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:18 UTC