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

[whatwg] Control over selection direction

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Thu, 13 Jan 2011 08:45:10 -0800
Message-ID: <AANLkTindApdqRxRGu6o7fz+kpLLxz1tTCLvbz+Wka5JP@mail.gmail.com>
On Thu, Jan 13, 2011 at 1:26 AM, Ryosuke Niwa <ryosuke.niwa at gmail.com>wrote:

> On Thu, Jan 13, 2011 at 12:52 AM, Marijn Haverbeke <marijnh at gmail.com>wrote:
>
>> > This sounds good to me.  I used the term "forwards" and "backwards"
>> > for the DOM Range spec, which I think make more sense.  I also think
>> > selectionDirection is a better property name, as Ojan suggests.
>>
>> Coincidentally, that was exactly what I was going to propose at first,
>> but then I found the "top"/"bottom" thing made the concepts slightly
>> easier to explain ("where is the anchor" vs "if it goes in this
>> direction, that means the anchor is ...").
>>
>
> I don't like "top"/"bottom" because it seems to imply certain visual
> orientation. (e.g. I think RTL text in vertical writing mode flows bottom
> up).  To make terms agnostic of text direction and writing mode, I'd prefer
> "forwards" / "backwards".
>
> - Ryosuke
>
>
>
Received on Thursday, 13 January 2011 08:45:10 UTC

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