W3C home > Mailing lists > Public > public-i18n-bidi@w3.org > July to September 2010

Re: [css3-text] text-align and bidi

From: Aharon (Vladimir) Lanin <aharon@google.com>
Date: Sat, 25 Sep 2010 23:54:17 +0200
Message-ID: <AANLkTikDGyKfDUXkOi33i_wsgBXpkg9HBYp91_DzFHT0@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>, W3C style mailing list <www-style@w3.org>, "public-i18n-bidi@w3.org" <public-i18n-bidi@w3.org>
text-align:match-parent (see past discussion below) does not seem to have
made it into http://dev.w3.org/csswg/css3-text/#text-align.

Aharon

On Mon, May 24, 2010 at 12:16 AM, fantasai <fantasai.lists@inkedblade.net>wrote:

> Adding www-style. The discussion started with the alignment
> of <select> and <option>, see thread here:
>  http://lists.w3.org/Archives/Public/public-i18n-bidi/2010AprJun/0030.html
>
> On 05/23/2010 08:40 AM, Aharon (Vladimir) Lanin wrote:

[...] I should mention that [...] we need a
>
>  text-align:inherit value that finally actually works. It would be
>> defined as applying the parent element's "bottom-line" alignment: left,
>> right, center, or justify (as opposed to start, end, or the "unnamed
>> default" value). Thus, for
>>
>> <body style="text-align:inherit>
>> <div dir="rtl">
>> hello
>> </div>
>> </body>
>>
>> hello would be left-aligned.
>>
>> This turns out to be quite useful in many places when one needs to set
>> the dir on a block element, but does not want the element's alignment to
>> be affected, and does not want to use an explicit "left" or "right",
>> since that would depend on the the overall page direction.
>>
>
> Your suggestion for a 'match-parent' keyword that computes to the parent's
> effective alignment seems like a good idea, though.
>
> ~fantasai
>
Received on Saturday, 25 September 2010 21:55:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 25 September 2010 21:55:35 GMT