W3C home > Mailing lists > Public > www-international@w3.org > October to December 2014

Re: [css-text] Fallback alignment for unexpandable text

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Thu, 23 Oct 2014 17:55:33 +0000
To: fantasai <fantasai.lists@inkedblade.net>
CC: "www-style@w3.org" <www-style@w3.org>, CJK discussion <public-i18n-cjk@w3.org>, WWW International <www-international@w3.org>
Message-ID: <A35A9392-82D5-41DB-8FD1-0EFE91C8B93C@gluesoft.co.jp>
I agree with A.

* Word does A
* Excel does A
* A jQuery plugin for distribute[1] does A

Quickly searched but didnít find other cases.

[1] http://liginc.co.jp/web/js/jquery/51134

/koji

On Oct 23, 2014, at 2:32 PM, fantasai <fantasai.lists@inkedblade.net> wrote:

> The CSSWG agreed to remove some special-cased behavior for the last line
> for 'text-justify: distribute' now that we have a 'text-align: justify-all'
> syntax. We have another special behavior, though, which is its behavior
> when the text is unexpandable: it is centered.
> 
> In all cases justification falls back to whatever was specified for
> 'text-align-last'. However, if that value is also 'justify', then we need
> to come up with something else. Currently that is center-alignment for
> 'distribute' and start-alignment for everything else.
> 
> Possibilities for fallback alignment:
>  A. Justification always falls back to center.
>  B. Justification always falls back to start-alignment.
>  C. Justification fallback depends on 'text-justify' as currently.
> 
> I don't think B is a good idea because it's in fact quite common in
> CJK to justify the last (often only) line of text and want it to fall
> back to centering. I also prefer to fully decouple 'text-justify'
> from fallback alignment, so my preference is A.
> 
> Thoughts from others?
> 
> Note: We can extend text-align to take an explicit fallback alignment
> in the future in any case. This would just be the default.
> 
> ~fantasai
> 
Received on Thursday, 23 October 2014 17:56:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:38 UTC