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

@sambandaru commented on this pull request.



> @@ -731,6 +731,15 @@ <h2>
             selection by <var>granularity</var>.
             </li>
           </ol>
+          <p>
+            The <dfn>resolved text direction</dfn> at a <a>boundary point</a>
+            is <a data-xref-type="css-value"
+            data-xref-for="direction">ltr</a> if the bidi embedding level of

Fixed. The definition now uses UAX#9's actual terminology with direct links:

"embedding direction" (BD3): The L/R direction derived from the level
"embedding level" (BD2): The numeric nesting depth
BD3 states: "It is L if the embedding level is even, and R if the embedding level is odd", which is exactly what we define here.

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

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

Received on Thursday, 30 April 2026 05:40:54 UTC