W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

[whatwg] getSelection().modify() in vertical writing modes

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 16 Jun 2011 10:20:42 -0700
Message-ID: <BANLkTin2Dii_06TEROr_GWG+KMzn05sg0oraatf5s+XDKzH+rQ@mail.gmail.com>
On Wed, Jun 15, 2011 at 6:55 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> It seems like maintaining the semantics of 'character' and 'line' is the way
> to go then. ?i.e. modify('move', 'right', character') moves caret visually
> downwards and modify('move', 'right', 'line') moves caret visually to the
> left (to the next line) in LTR text in a block with writing-mode:
> vertical-rl.

If it's helpful, the CSS Writing Modes spec defines the "line-left"
and "line-right" directions, which react properly to vertical writing
modes.  You may be able to reference/copy the definitions there.

~TJ
Received on Thursday, 16 June 2011 10:20:42 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC