Re: [css3-text] interaction of hanging-punctuation:force-end, text-align and text-justify

On 05/04/2012 02:02 PM, Florian Rivoal wrote:
> On Fri, 04 May 2012 20:23:25 +0200, Koji Ishii <kojiishi@gluesoft.co.jp> wrote:
>
>>> If text-align is center or <string>, I am even more at loss when trying to imagine what the
>>> expected behavior is.
>>
>> I hope it's clear now, UA measures string without the ending stop, and center the line, if "force-end".
>
> Do you mean this?
>
> |    ab c de    |,
>
> text-align: "." center; hanging-punctuation:force-end;
> |  1234.56    |,
> |     1.2     |,

No. You have to understand that hanging-punctuation *does not* mean
that the punctuation is forced outside the line box.

It means that the punctuation is considered to have a zero advance width
*when* it is defined to "hang".

That is all. Period.

This has the *side-effect* of placing it outside the line box in certain
cases, such as
   a) a line that is full of content because it has lots of content
   b) a line that is full of content because it is justified
   c) a line that is end-aligned
But this is a side-effect. It is the *goal* of hanging-punctuation, but
it is not the mechanism by which it works.

~fantasai

Received on Saturday, 5 May 2012 00:03:59 UTC