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 09:21:29 UTC