Re: Alignment of paragraphs with unicode-bidi: plaintext

As far as I remember, aligning according to paragraph direction (for
text-align:start and end) was what we had sketched out in our meetings, but
it had never appeared in the actual writing modes spec. I had figured that
it presented some sort of problem in the spec, and since I was never 100%
sure about that aspect, I did not bring it up.

Here is the last formulation that I can find of it:

If the element's text-align or text-align-last is start or end, for every
line box contained completely within the element, the alignment is
determined by the paragraph level of the containing UBA paragraph that got
its paragraph level from this element.

Aharon

On Sun, Oct 30, 2011 at 10:35 PM, fantasai <fantasai.lists@inkedblade.net>wrote:

> On 10/30/2011 01:28 PM, Simon Montagu wrote:
>
>> As far as I can see, there is no explicit specification in CSS Writing
>> Modes Module Level 3 of what effect "unicode-bidi:
>> plaintext" should have on the default alignment of paragraphs.
>>
>> When implementing "unicode-bidi: plaintext" for Gecko, I took it for
>> granted that each paragraph in the element would
>> determine its directionality by the heuristic in the UBA, and then
>> determine the start of the line box depending on the
>> directionality of the paragraph.
>>
>> I just noticed that recent versions of Chrome behave differently:
>> directionality is determined for each paragraph separately,
>> but alignment is determined by the first paragraph in the element, and
>> all subsequent paragraphs get the same alignment.
>>
>> As I said, there doesn't seem to be anything in the spec to say which
>> approach is correct. I think the behaviour in Gecko is
>> more intuitive and useful, but then I would, wouldn't I? Either way, it
>> is probably worth adding something to the spec to make
>> it explicit.
>>
>
> There was a proposal earlier that unicode-bidi: plaintext should cause each
> "paragraph" to have its start/end alignment set independently, so that
>
> <pre>
> a long paragraph in an
> ltr language
> A LONG PARAGRAPH IN AN RTL
> LANGUAGE
> another paragraph in an ltr language
> ANOTHER PARAGRAPH IN AN RTL
> LANGUAGE
> ,/pre>
>
> would have the rtl pieces aligned right and the ltr pieces aligned left.
>
> I can't remember why we abandoned it atm...
>
> ~fantasai
>
>

Received on Monday, 31 October 2011 16:14:54 UTC