Re: [w3c/selection-api] Fix selection.modify() to use resolved text direction instead of inline base direction (PR #357)

sambandaru left a comment (w3c/selection-api#357)

> Am I missing something? It doesn't seem to me like Safari 16.4 and Firefox 153 behave the same for me.
> 
> https://vinhill.github.io/webtests/357-selection-bidi-back-forward.html
> 
> * In first ltr paragraph, click between `בג`, press `left` button. Safari and Chrome select `ב` and Firefox `ג`
> * In second rtl paragraph, click between `ab`, press `left` button. Safari and Chrome select `b` and Firefox `a`

Okay, Safari uses visual movement when the modify() type is "move" and logical movement the type is "extend". I will add a wpt for "extend" as well and file a bug in webkit.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/pull/357#issuecomment-4563226497
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/selection-api/pull/357/c4563226497@github.com>

Received on Thursday, 28 May 2026 10:41:55 UTC