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

Re: [Selectors4] :dir()

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Fri, 30 Sep 2011 12:28:21 +0200
Message-Id: <4B359C9C-27A7-4B0E-A109-C0595588B423@crissov.de>
To: W3C Style <www-style@w3.org>
Daniel Glazman:
> Le 30/09/11 10:57, Christoph Päper a écrit :
>> 
>> When there is a small, fixed set of possible arguments one should consider not using arguments at all. That means, ‘:ltr’ etc. seem the better choice.
> 
> Because the text direction is going to remain limited to horizontal
> in the future? The set of directions is not small…

It is not, it is. Anyhow, if the selector is supposed to be extensible in the future, a more appropriate design would be something like

  :direction(<line progression start>, <glyph progression start>)
⇒
  :direction(top, left)  {/* eurographic */}
  :direction(top, right) {/* semitographic */}
  :direction(right, top) {/* sinographic */}
  :direction(left, top)  {/* Mongolian */}
  …

or, to deal with boustrophedon,

  :direction(
    <line progression start>, 
    <glyph progression start in first/odd line>,
    <glyph progression start in second/even line>
  )

or something more complex to deal with (in-/outwards, [counter]clockwise) spiral text etc. or block progression, which usually is the same as line progression.
Received on Friday, 30 September 2011 10:29:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:44 GMT