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

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 UTC