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

I think I understand now. So,
  text-align-last: center justify;
changes the fallback alignment of all lines, not only the last line, right? I assumed it affects only to the last line and thus was wondering how to change the rests.

It works then. I personally prefer starting from minimum and then add features incrementally as needs come in, so changing the behavior of "distribute" looks more appealing to me. I like less tests.

But your proposal works good and fulfill the requirements too. Either works for me. 


Regards,
Koji

-----Original Message-----
From: fantasai [mailto:fantasai.lists@inkedblade.net] 
Sent: Wednesday, December 15, 2010 6:21 PM
To: Koji Ishii
Cc: MURAKAMI Shinyu; www-style@w3.org
Subject: Re: [css3-text] text-justify:distribute behavior

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 19:12:37 UTC