[css3-text] hanging-punctuation: force-end

During the test case review, current description for hanging-punctuation: force-end value[1] turned out to be insufficient.

In addition to the condition defined by ''allow-end'', ''force-end'' hangs punctuation when such punctuation appear at the last character of a line.

Because it requires expansion, text-align must be justify for it to work properly. Otherwise this value is the same as ''allow-end''.

I'm still investigating whether it should hang or not if it's also the last character before hard-break. I guess it should not, but I can't find good reference that describes the behavior for the case yet.

The ''force-end'' behavior is described in JLREQ 3.8.2 Reduction and Addition of Inter-Character Space[2], by the last a few sentences of (note 1).

> Furthermore, as shown at the end of line 1 and 5 of [Fig.181],
> if possible the full stops (cl-06) or commas (cl-07) are placed at
> the line end (the 18th position). In DTP there are examples of
> hanging punctuation like in line 3, but this may be regarded as
> unnecessary processing.

That said, JLREQ does not recommend this behavior, nor JIS X4051 does. I heard there are some real use cases though, I'll talk to who knows the use cases and get back to this list.

[1] http://dev.w3.org/csswg/css3-text/#hanging-punctuation
[2] http://www.w3.org/TR/jlreq/#en-subheading2_8_2


Regards,
Koji

Received on Tuesday, 22 March 2011 12:02:03 UTC