W3C home > Mailing lists > Public > www-style@w3.org > October 2011

Alignment of paragraphs with unicode-bidi: plaintext

From: Simon Montagu <smontagu@smontagu.org>
Date: Sun, 30 Oct 2011 22:28:41 +0200
Message-ID: <4EADB379.4030702@smontagu.org>
To: public-i18n-bidi@w3.org, "www-style@w3.org" <www-style@w3.org>
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.
Received on Sunday, 30 October 2011 20:29:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:06 UTC