W3C home > Mailing lists > Public > www-style@w3.org > December 2010

Re: [css3-text] text-justify:distribute behavior

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 15 Dec 2010 01:20:49 -0800
Message-ID: <4D088871.3050508@inkedblade.net>
To: Koji Ishii <kojiishi@gluesoft.co.jp>
CC: MURAKAMI Shinyu <murakami@antenna.co.jp>, "www-style@w3.org" <www-style@w3.org>
On 12/14/2010 04:00 PM, Koji Ishii wrote:
>
>> Actually, I was thinking something like this:
>>
>>  | text-align-last: [ start | end | left | right | center ] || justify
>>  |
>>  | If 'justify' is combined with an alignment keyword, then that alignment
>>  | is used as the fallback alignment when all expansion opportunities in
>>  | the line are exhausted. If no alignment keyword is given, the fallback
>>  | alignment is 'center' when 'text-justify' is 'distribute' and 'start'
>>  | otherwise.
>
> Hmm. How does this solve centering the first line when it has no expand opportunities? i.e., this layout:
> +-------------+
> |      A      |
> | w w w w w w |
> +-------------+

text-align-last is used as the fallback alignment when there are no
expansion opportunities in the line. By the definition I gave above,
setting it to 'justify' would center the text when text-justify is
'distribute'.

>> Unbaked thought: maybe we need a shorthand for text-align+text-justify+text-align-last.
>
> I love this. Please bake it :)

Ok, that might require a later reply then. Baking takes time. :P

~fantasai
Received on Wednesday, 15 December 2010 09:21:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:35 GMT