W3C home > Mailing lists > Public > www-style@w3.org > November 2013

Re: [css-text] 'hanging-punctuation' comments

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Wed, 13 Nov 2013 04:36:31 -0500
To: "Kang-Hao (Kenny) Lu" <kanghaol@opera.com>
CC: WWW Style <www-style@w3.org>, MURAKAMI Shinyu <murakami@antenna.co.jp>
Message-ID: <CEA9678F.4D138%kojiishi@gluesoft.co.jp>
On 11/13/13 1:26 PM, "Kang-Hao (Kenny) Lu" <kanghaol@opera.com> wrote:
>Why is that "," in
>>>  |我要,|   ('text-align' is 'left')
>>>  |吃飯。|
>not at the end edge? And why is this "," in
>    |我  要|, ('text-align' is 'justify')
>    |吃飯。|
>at the end edge?

Both are at the end edge.

To determine the line break, UA adds characters until it doesn't fit to
the width.
1. 我要 -- Width is 2em, Still fits to 3em
2. 我要, -- Width is 2em, still fits to 3em

   Note that at this step, the comma is at end edge, so it's not measured.
3. 我要,吃 -- Width is 4em, doesn't fit, so break at #2
   Note that at this step, the comma is NOT at the end edge, so it's

Does this make sense?

Received on Wednesday, 13 November 2013 09:36:37 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:34 UTC