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

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

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Wed, 10 Aug 2011 16:41:22 -0700
Message-ID: <CABNRm63g4i8Qg7NwrMyD78K+kjv+j2dvK4EP1wsZV=4pjD2o0g@mail.gmail.com>
On Wed, Aug 10, 2011 at 4:31 PM, Ehsan Akhgari <ehsan at mozilla.com> wrote:

> On 11-06-27 5:30 PM, Ryosuke Niwa wrote:
>> FYI, I also posted this question on public-html-ig-jp at w3.org, and I got
>> exactly one response from Koji, who was supportive of my proposal.
>> Given that, I'm inclined to say that the consensus is to modify('move',
>> 'left'/'right', 'character') should move the caret in the direction of
>> line-left and line-right and modify('move', 'left'/'right', 'line') should
>> move the caret in the block direction (left for backward direction and
>> right
>> for forward direction).  As Koji mentioned, it matches native-speaker's
>> intuition and it matches the concept of left/right in text-align property.
> This part looks good to me, too.


> What was the consensus on backward/forward though?  (I don't know if bidi
> vertical text even makes sense...)

I think forward and backward should move caret/selection logically.  i.e.
forward, character moves vertically in vertical writing mode and forward,
line moves horizontally in vertical writing mode.

- Ryosuke
Received on Wednesday, 10 August 2011 16:41:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:35 UTC