W3C home > Mailing lists > Public > www-style@w3.org > May 2010

(unknown charset) Re: [css3-text-layout] New editor's draft - margin-before/after/start/end etc.

From: (unknown charset) Zack Weinberg <zweinberg@mozilla.com>
Date: Sun, 30 May 2010 13:33:13 -0700
To: (unknown charset) "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: (unknown charset) HĂ„konWiumLie <howcome@opera.com>, <www-style@w3.org>
Message-ID: <20100530133313.2fe8146c@moxana.local>
"Andrew Fedoniouk" <news@terrainformatica.com> wrote:

> Are you saying that you know precise algorithm that allows
> you to detect display:ltr and display:ttb runs of say Chinese
> characters?

If you are unfamiliar with UAX#9, I doubt this discussion is going
anywhere useful.  But at a high level, the details of the algorithm are
irrelevant.  There must be *some* algorithm, or the characters could
not be drawn at all!  My position is just that styling based on writing
direction should observe the result of that algorithm, rather than just
one of its inputs (@dir).

> If "yes" then what would be such split on the phrase:
> "I live in Sheraton hotel" where only "Sheraton" is written
> in Latin? And what exactly you want to do with the result?

UAX#9 specifies the behavior in this case.

> Selector like "::rtl p" tells me that you have
> <p>aleph bet alpha beta</p> placed in some virtual container that
> gets somehow RTL directionality automatically? How exactly?


> And why it is not the <p> element itself?

Because direction changes do not necessarily line up with element

Received on Sunday, 30 May 2010 20:33:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:35 UTC