- From: Florian Rivoal <florianr@opera.com>
- Date: Fri, 04 May 2012 14:05:53 +0200
- To: www-style@w3.org
Hi,
If I am reading the spec right, when the hanging-punctuation
property is set to force-end, and text-align is left in ltr text
or right in rtl text, if effectively causes a single line to be
justified.
The spec does not say if this single line justification
is expected to follow the justification method determined
by text-justify or not. I think it should follow text-justify.
If text-align is justify, my understanding is that
hanging-punctuation:force-end and hanging-punctuation:allow-end would give
the same result. Is that correct?
If text-align is right in ltr text or left in rtl text, I am not
entirely sure what the expected behavior is. In the following
examples, the '|' character marks where the padding starts.
text-align:right; hanging-punctuation:none;
| some words.|
text-align:right; hanging-punctuation:force-end;text-justify:inter-word;
| some words|.
| some words|.
|some words|.
|s o m e w o r d s|.
The first interpretation shifts the line.
The second uses justification, but without putting any text further left
than you would have without hanging-punctuation:force-end;
The third justifies using the whole line.
The fourth justifies using the whole line, without respecting
justify:inter-word;
If text-align is center or <string>, I am even more at loss when trying
to imagine what the expected behavior is.
An alternative to all this would be that force-end never does anything
unless text-align is justify, and that the example give in the spec
assumes text-align:justify.
- Florian
Received on Friday, 4 May 2012 12:06:32 UTC