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

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

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Wed, 15 Dec 2010 14:09:15 -0500
To: fantasai <fantasai.lists@inkedblade.net>
CC: MURAKAMI Shinyu <murakami@antenna.co.jp>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <A592E245B36A8949BDB0A302B375FB4E0AA8B1BD35@MAILR001.mail.lan>
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. 


-----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

Received on Wednesday, 15 December 2010 19:12:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:54 UTC